Closed loop of buck converter with PI controller
Version 1.0.0 (37.8 KB) by
Abdelrahman Farghly
A closed-loop Buck converter with a PI (Proportional-Integral) controller maintains a stable and accurate output voltage
losed-Loop Buck Converter: Overview
Goal: Regulate the output voltage VoutV_{out}Vout to match a reference voltage VrefV_{ref}Vref by adjusting the PWM duty cycle using a PI controller.
Block Diagram Components:
- Reference Voltage VrefV_{ref}Vref – Desired output voltage
- Output Voltage Feedback VoutV_{out}Vout – Measured and fed back
- Error Signal e(t)=Vref−Voute(t) = V_{ref} - V_{out}e(t)=Vref−Vout
- PI Controller – Processes error and outputs a control signal
- PWM Generator – Converts control signal to a duty cycle
- Buck Converter Power Stage – Uses this duty cycle to regulate output
Cite As
Abdelrahman Farghly (2026). Closed loop of buck converter with PI controller (https://uk.mathworks.com/matlabcentral/fileexchange/180944-closed-loop-of-buck-converter-with-pi-controller), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2022b
Compatible with any release
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0 |