MPPT P&O C code simulation in MATLAB | Perturb and observe method simulation

Поділитися
Вставка
  • Опубліковано 19 гру 2024

КОМЕНТАРІ • 83

  • @kum.hinabennathalalkadeval2623
    @kum.hinabennathalalkadeval2623 3 роки тому +2

    Your model is very simple, effective and straight explanation. So your video is very much helpful to me and following your concept and model. Thanks .With Regards.

  • @hinakadeval4124
    @hinakadeval4124 3 роки тому +2

    It is completely running ! 👍

  • @jessicaq.1224
    @jessicaq.1224 Місяць тому

    hello, do you have a research paper on this that I could reference? Many thanks

  • @aahat4828
    @aahat4828 5 місяців тому

    it not work at 500 irradiances...
    What is the problem may i know??

  • @waleedalmohana
    @waleedalmohana Рік тому

    for the mppt p&o algorithm code how can the code repeat it's self to reach to the mppt (where is the loop) i see the code it's work one time only

  • @mugiwara5375
    @mugiwara5375 Рік тому

    why boost converter voltage and current were not used for mppt code?

  • @dr.virendrasharma2286
    @dr.virendrasharma2286 Рік тому

    I have used MATLAB R2021a, but powergui not seen such type of condition in continuous/???

    • @ahsanmehmood9229
      @ahsanmehmood9229  Рік тому

      I used Matlab 2016.
      If simulation runs without setting to continuous mode, then it's fine.

  • @ohnoob5078
    @ohnoob5078 Рік тому

    How to make script be in siumlink?

  • @muhammadzakir304
    @muhammadzakir304 3 роки тому +1

    Great! it would be very helpful if you could make a video on the co-simualtion between PSIM and MATLAB.

  • @chingshomantuhu1099
    @chingshomantuhu1099 3 роки тому +1

    Why are you using 2 capacitors? Sir

    • @ahsanmehmood9229
      @ahsanmehmood9229  3 роки тому +1

      Where have I used two capacitors?

    • @chingshomantuhu1099
      @chingshomantuhu1099 3 роки тому +1

      @@ahsanmehmood9229 like Cin and Cout but in boost converter there is only one capacitor

    • @ahsanmehmood9229
      @ahsanmehmood9229  3 роки тому +1

      Cin is used between boost converter and PV array in photovoltaic system only. It is not the part of boost converter. The purpose of using this extra capacitor is to track MPP. Without using it, we cannot track MPP.

    • @chingshomantuhu1099
      @chingshomantuhu1099 3 роки тому +1

      Sir please help me I'm your subscribers ❣️ I'm doing this for my final project my project is " pv system with optimization algorithms"

    • @ahsanmehmood9229
      @ahsanmehmood9229  3 роки тому

      I am very busy these days, I have not even posted a video since a long time. You can check my other videos on my channel, may be they could be of some help to you.

  • @faizashah2465
    @faizashah2465 Рік тому

    Hey!!!
    It’s giving me an error of output of port1(that is m of PV Array) is not connected. How should I sort it out?
    Thanks

    • @tazeenliaquat4900
      @tazeenliaquat4900 Рік тому

      Facing same issue ,,Have you sorted it out ? Also did you face the error of Vload ?Kindly reply
      as soon as possible

  • @SunnyKumar-of3vx
    @SunnyKumar-of3vx 2 роки тому

    Can you please explain the the code that was used in the last part of the video?

    • @ahsanmehmood9229
      @ahsanmehmood9229  2 роки тому +1

      Its very simple.
      Important variable in this code is 'DArray'.
      DArray is persistent variable, i.e., it will be created only once during the whole simulation, it is same as "global variable" in C++ language. The remaining variables are created and destroyed in each iteration, but DArray is only created once and remains alive till the end of simulation.
      The purpose of DArray is to store 500 previous values of D (duty ratio). Current value of D is stored at 500th position. The "for loop" serves two purposes - to shift D back to one position in each iteration and to calculate sum of all values of DArray. So input to this code is D and output is also D.
      This part of code has been used to smoothen the waveforms (input and output) of converter.

    • @SunnyKumar-of3vx
      @SunnyKumar-of3vx 2 роки тому

      @@ahsanmehmood9229 I am very thankful for your reply sir . I will go through the explanation and will comment if I still have some doubt.

  • @chingshomantuhu1099
    @chingshomantuhu1099 3 роки тому

    Sir why I'm not getting the same output as in the video after giving Same value!? Please help me

  • @desenpolat4730
    @desenpolat4730 2 роки тому

    Hello sir, in the last part of your code it seems to me that this part "sum=sum+D" should be inside the loop. I am having a hard time to understand can you please help me ?

    • @ahmeterden7376
      @ahmeterden7376 2 роки тому

      +1

    • @ahsanmehmood9229
      @ahsanmehmood9229  2 роки тому

      No, its correct.
      Its very simple.
      Important variable in this code is 'DArray'.
      DArray is persistent variable, i.e., it will be created only once during the whole simulation, it is same as "global variable" in C++ language. The remaining variables are created and destroyed in each iteration, but DArray is only created once and remains alive till the end of simulation.
      The purpose of DArray is to store 500 previous values of D (duty ratio). Current value of D is stored at 500th position. The "for loop" serves two purposes - to shift D back to one position in each iteration and to calculate sum of all values of DArray. So input to this code is D and output is also D.
      This part of code has been used to smoothen the waveforms (input and output) of converter.

  • @shrivalliharithachalla2192
    @shrivalliharithachalla2192 3 роки тому

    Thank you sir for the detailed explanation. Can u please tell why did you create an array of size 500 with zeroes. Thanks and regards.

    • @ahsanmehmood9229
      @ahsanmehmood9229  3 роки тому +3

      MPPT P&O duty-ratio algorithm results into waveforms, which have ripples. Therefore, in order to smooth out the shape of waveforms and reduce ripples, we use controllers such as PID controller, sliding mode controller etc. But these controllers are difficult to design. Therefore, I have used this code you are referring to. This code stores and takes average of 500 samples of duty-ratio, which results in a smooth and reduced-ripples waveforms. This part of the code is not necessary. If you don't want to use it, then there is no need to use.

    • @shrivalliharithachalla2192
      @shrivalliharithachalla2192 3 роки тому

      @@ahsanmehmood9229 thank you sir.

  • @santoshbandaru3567
    @santoshbandaru3567 3 роки тому

    Good afternoon sir, can you explain design procedure for buck and buck-boost converters for PV application and considering partial shading also. Thank you.

  • @rajalakshmin4467
    @rajalakshmin4467 3 роки тому

    Sir,will u please make video on partial shading detection with boost and grid tied inverter.

    • @ahsanmehmood9229
      @ahsanmehmood9229  3 роки тому

      Sure, I will.
      Any particular algorithm or research paper you have in mind?

    • @ahsanmehmood9229
      @ahsanmehmood9229  3 роки тому

      ???

    • @rajalakshmin4467
      @rajalakshmin4467 3 роки тому

      @@ahsanmehmood9229 yes sir

    • @rajalakshmin4467
      @rajalakshmin4467 3 роки тому

      I'm doing grey wolf optimization technique but I'm not getting accurate results.

    • @rajalakshmin4467
      @rajalakshmin4467 3 роки тому

      Will u write the code for grey wolf mppt technique in matlab sir ..

  • @souravbasak6651
    @souravbasak6651 3 роки тому

    Sir what is the configuration of powergui ???

    • @ahsanmehmood9229
      @ahsanmehmood9229  3 роки тому

      It is continuous.

    • @souravbasak6651
      @souravbasak6651 3 роки тому

      Sir I made 3*3 pv array with single single module,, but can't get output.....had to add memory block before derivative....how to overcome that,...to run the array on mppt?? Can I mail you my design???

  • @souheilGAMES
    @souheilGAMES 3 роки тому

    hello sir, thank you very much every thing worked to me. but i didn't understand in the Code, why when you try to increase the voltage you used : D=Dprev - 0.0001. why the sign (-) is it + to increace the voltage. please sir can you explain little bit.

    • @ahsanmehmood9229
      @ahsanmehmood9229  3 роки тому +1

      There I am talking about to increase the array voltage. If we use + sign in place of - sign, it means we are closing the switch of boost converter, which will result in short-circuiting of PV array when D reaches close to 1. Therefore, array voltage will decrease to 0 V. Hence, you can coclude that increasing duty-ratio will decrease array voltage and decreasing duty-ratio will increase array voltage.

    • @souheilGAMES
      @souheilGAMES 3 роки тому

      @@ahsanmehmood9229 thank you very much sir, it was a great to know how it works, Sir can you do video of MATLAB/SIMULNIK of thr Fractional open circuit voltage based MPPT for PV system, i searched every place and i didn't find it , thank you very much sir wish you more succes, have a nice day.

    • @ahsanmehmood9229
      @ahsanmehmood9229  3 роки тому +1

      Okay, I'll do it as soon as find time.

    • @souheilGAMES
      @souheilGAMES 3 роки тому

      ​@@ahsanmehmood9229thank you for the response, all respect to you

  • @streamclean5091
    @streamclean5091 3 роки тому

    What if u put capacitor instead of load ? As in capacitive load

    • @ahsanmehmood9229
      @ahsanmehmood9229  3 роки тому

      It will not work, as capacitive load will behave as open circuit in steady state.

    • @streamclean5091
      @streamclean5091 3 роки тому

      @@ahsanmehmood9229 will i get steady voltage output ?

    • @ahsanmehmood9229
      @ahsanmehmood9229  3 роки тому +1

      Output voltage will be same as open circuit voltage of the PV array in steady state, and MPPT will not work.

    • @streamclean5091
      @streamclean5091 3 роки тому

      @@ahsanmehmood9229 coz I'm not getting steady voltage output when i keep capacitor instead of resistive load.

    • @ahsanmehmood9229
      @ahsanmehmood9229  3 роки тому

      Yes, it is because MPPT is trying to achieve maximum power point, but due to the absence of resistive load, it is unable to dissipate extra power, which is stored in input and output capacitors.

  • @hinakadeval4124
    @hinakadeval4124 3 роки тому

    Kindly help for pmdc motor load !

    • @ahsanmehmood9229
      @ahsanmehmood9229  3 роки тому

      Kindly ask someone other, it is not my field.

    • @hinakadeval4124
      @hinakadeval4124 3 роки тому

      @@ahsanmehmood9229 i m ready to pay u also if possible

    • @ahsanmehmood9229
      @ahsanmehmood9229  3 роки тому

      Its not about money.
      I have no experience with PMDC motor or any type of motor. You have to consult someone who has experience in this area.

    • @hinakadeval4124
      @hinakadeval4124 3 роки тому

      @@ahsanmehmood9229 Thank u very much for giving kind response.

    • @hinakadeval4124
      @hinakadeval4124 3 роки тому

      @@ahsanmehmood9229 i remember u for your kind help and refer you in my research work.

  • @sreekanthreddy345
    @sreekanthreddy345 3 роки тому

    Sir If possible make a video on fault identification of PV arrays

    • @ahsanmehmood9229
      @ahsanmehmood9229  3 роки тому

      okay, sure I will.

    • @ahsanmehmood9229
      @ahsanmehmood9229  3 роки тому

      Which research paper are you trying to implement?

    • @sreekanthreddy345
      @sreekanthreddy345 3 роки тому

      @@ahsanmehmood9229 A technique for fault detection, identification and location in solar photovoltaic systems

    • @sreekanthreddy345
      @sreekanthreddy345 3 роки тому

      (OR) An MPPT-Based Sensorless Line-Line and Line-Ground Fault Detection Technique for PV Systems

    • @sreekanthreddy345
      @sreekanthreddy345 3 роки тому

      (OR) Fault Detection, Classification and Localization
      Algorithm for Photovoltaic Array

  • @Vamsi_Edits_1549
    @Vamsi_Edits_1549 2 роки тому

    Hi sir, Will you do a video on Hybrid MPPT method which is a combination of P&O and Direct prediction method in MATLAB software with C code simulation for wind turbines