Closed loop of buck converter with PI controller

A closed-loop Buck converter with a PI (Proportional-Integral) controller maintains a stable and accurate output voltage
118 Downloads
Updated 30 Apr 2025

View License

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:
  1. Reference Voltage VrefV_{ref}Vref – Desired output voltage
  2. Output Voltage Feedback VoutV_{out}Vout – Measured and fed back
  3. Error Signal e(t)=VrefVoute(t) = V_{ref} - V_{out}e(t)=VrefVout
  4. PI Controller – Processes error and outputs a control signal
  5. PWM Generator – Converts control signal to a duty cycle
  6. 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 Linux
Tags Add Tags
Version Published Release Notes
1.0.0