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

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ต.ค. 2024
  • This video shows how C code control of the P&O algorithm is implemented in MATLAB SIMULINK software.
    How to design a boost converter for the photovoltaic system?
    • How to design boost co...

ความคิดเห็น • 82

  • @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 ! 👍

  • @aahat4828
    @aahat4828 3 หลายเดือนก่อน

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

  • @muhammadzakir304
    @muhammadzakir304 3 ปีที่แล้ว +1

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

    • @ahsanmehmood9229
      @ahsanmehmood9229  3 ปีที่แล้ว +1

      That video is coming soon, within a month.

  • @waleedalmohana
    @waleedalmohana 11 หลายเดือนก่อน

    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?

  • @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 11 หลายเดือนก่อน

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

  • @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.

  • @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?

  • @chingshomantuhu1099
    @chingshomantuhu1099 2 ปีที่แล้ว +1

    Why are you using 2 capacitors? Sir

    • @ahsanmehmood9229
      @ahsanmehmood9229  2 ปีที่แล้ว +1

      Where have I used two capacitors?

    • @chingshomantuhu1099
      @chingshomantuhu1099 2 ปีที่แล้ว +1

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

    • @ahsanmehmood9229
      @ahsanmehmood9229  2 ปีที่แล้ว +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 2 ปีที่แล้ว +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  2 ปีที่แล้ว

      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.

  • @desenpolat4730
    @desenpolat4730 ปีที่แล้ว

    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 ปีที่แล้ว

      +1

    • @ahsanmehmood9229
      @ahsanmehmood9229  ปีที่แล้ว

      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.

  • @chingshomantuhu1099
    @chingshomantuhu1099 2 ปีที่แล้ว

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

  • @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.

  • @SunnyKumar-of3vx
    @SunnyKumar-of3vx ปีที่แล้ว

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

    • @ahsanmehmood9229
      @ahsanmehmood9229  ปีที่แล้ว +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 ปีที่แล้ว

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

  • @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

  • @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 ..

  • @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

    • @ahsanmehmood9229
      @ahsanmehmood9229  2 ปีที่แล้ว

      I have not worked on wind turbines.

    • @Vamsi_Edits_1549
      @Vamsi_Edits_1549 2 ปีที่แล้ว

      @@ahsanmehmood9229 ohh ok sir, Thanks for your reply

  • @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???

  • @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

  • @streamclean5091
    @streamclean5091 2 ปีที่แล้ว

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

    • @ahsanmehmood9229
      @ahsanmehmood9229  2 ปีที่แล้ว

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

    • @streamclean5091
      @streamclean5091 2 ปีที่แล้ว

      @@ahsanmehmood9229 will i get steady voltage output ?

    • @ahsanmehmood9229
      @ahsanmehmood9229  2 ปีที่แล้ว +1

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

    • @streamclean5091
      @streamclean5091 2 ปีที่แล้ว

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

    • @ahsanmehmood9229
      @ahsanmehmood9229  2 ปีที่แล้ว

      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.