Simulink Buck Converter Current Mode Control

I am trying to simulate a buck converter in Simulink. I want it to be controlled using current mode control. My model does not regulate to the correct voltage and I need some help. Additionally, I am unable to produce coefficients from the PID tuner that allow my system to have a good dynamic load response. (I have a feeling this is becuase there is something wrong with my model.)
My end goal is to use the PID block to tune the system response and then generate code that will then be uploaded to hardware.

1 Comment

Matthew, you can you save this model in 2017b so I can take a look at it? It can be done by File->Export to previous version.

Sign in to comment.

 Accepted Answer

Hello Matthew,
the first issue is how the PWM is generated. You are using a simulink based PWM generator as well as a simscape based PWM generator. You can delete the simulink based PWM generator and pass your duty cycle directly into the simscape block. You can always test your model with a constant .5 duty cycle to make sure it is doing what you expect before closing the loop. Have you tried that and was it working?
Regards,
Joel

More Answers (0)

Categories

Find more on Simscape Electrical in Help Center and File Exchange

Products

Release

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!