Design a Voltage Feedback Loop w/ PID Controller

7 replies · 2K views · last reply
Kasim
Messages
23
Reaction score
0
Hi

Can anybody tell me where to put a PID controller in the picture below to design a voltage feedbaxk loop?

Thanks
 
Attachments
  • Simulink schematic of a buck converter, rotated on the page: 24 V source, MOSFET switch driven by a pulse generator, diode, inductor Lf = 0.02 uH, 1 mohm resistor, and 100uF 0.5 ohm output capacitor load, with voltage and current measurements going to a scope and a continuous powergui block.
    image.jpg
    44.2 KB · Views: 459
Between line VC and the pulse generator.
Difference between measured and desired VC is error , function PID(error) controls pulse width.
 
Thanks jim.

Would the picture below be correct
 
Attachments
  • Simulink model of a buck converter: 24 V source feeding a MOSFET switch driven by a pulse generator, with a diode, inductor Lr = 0.02 uH, 1 mohm resistance, and a 100uF capacitor with 0.5 ohm load, plus a scope with voltage and current probes.
    image.jpg
    47.6 KB · Views: 466
I'd connect top of PID to left side of pulse generator, to represent controlling pulse generator's input, instead of where you have it which is its output .
And i'd add arrowheads to PID so it's intuitive that bottom is PID input and top is output.
Likewise add arrowheads to pulse generator.

The point is you let PID control the pulse width to make correct average voltage over at VC.. That's the basis of feedback control - continually measure , compare, adjust.
 
Hi Jim

Would this be ok, sorry for bothering you
 
Attachments
  • Simulink model schematic of a MOSFET converter: a 24 V source drives a pulse generator and a MOSFET, with an inductor, diode and scope showing Pulses, I_MOSFET, V_C and I_Diode, with a handwritten scribble near the MOSFET.
    image.jpg
    48 KB · Views: 467
Kasim said:
Would this be ok,

Your most recent addition looks right , but now you have two PID's.
Erase that first one you drew and it could work.