Page 1 of 1

PID control

Posted: Mon Feb 10, 2014 5:22 pm
by arfarfarf
Hello there!

I am currently working on a project that involves regulating a step-down power supply using PID and Kerhuel blockset. What I wanted to do is to control the output duty cycle of the PWM depending on the error input. The problem is that I can't get the PID to work using the Kerhuel blockset. The more positive the error, the higher the output duty must be. However, the duty cycle initially is at maximum and then it just keeps on decreasing until 0% even if the error is already high. I thought maybe I can get some advice on what is wrong with my model and how I could fix the problem. I have attached my Simulink model with this message. Thank you and I hope to hear from you soon!