๐๐๐ฌ๐ข๐ ๐ง ๐จ๐ ๐๐ฎ๐๐ค ๐๐จ๐จ๐ฌ๐ญ ๐๐จ๐ง๐ฏ๐๐ซ๐ญ๐๐ซ ๐ฐ๐ข๐ญ๐ก ๐๐๐ ๐๐จ๐ง๐ญ๐ซ๐จ๐ฅ๐ฅ๐๐ซ
- lms editor
- 12 minutes ago
- 6 min read
๐๐๐ฌ๐ข๐ ๐ง ๐จ๐ ๐๐ฎ๐๐ค ๐๐จ๐จ๐ฌ๐ญ ๐๐จ๐ง๐ฏ๐๐ซ๐ญ๐๐ซ ๐ฐ๐ข๐ญ๐ก ๐๐๐ ๐๐จ๐ง๐ญ๐ซ๐จ๐ฅ๐ฅ๐๐ซ
Product Link: https://www.lmssolution.net.in/product-page/design-of-buck-boost-converter-with-pid-controller
๐๐๐๐ซ๐ง ๐๐ฎ๐๐คโ๐๐จ๐จ๐ฌ๐ญ ๐๐จ๐ง๐ฏ๐๐ซ๐ญ๐๐ซ ๐๐๐ฌ๐ข๐ ๐ง
โข Design a 250 W buckโboost converterย using MATLAB and Simulinkโข Calculate the required inductor, capacitor, duty cycle, and loadโข Regulate the negative output voltage using a closed-loop controllerโข Tune the controller automatically using the MATLAB PID Tunerโข Verify voltage tracking under step changes in the reference voltage
The designed converter regulates its output near โ12 Vย with low voltage ripple and accurately follows a changing voltage reference.
#MATLAB #Simulink #BuckBoostConverter #PIDController #PowerElectronics #ConverterDesign #ControlSystems
๐๐๐ฌ๐ข๐ ๐ง ๐จ๐ ๐๐ฎ๐๐ค ๐๐จ๐จ๐ฌ๐ญ ๐๐จ๐ง๐ฏ๐๐ซ๐ญ๐๐ซ ๐ฐ๐ข๐ญ๐ก ๐๐๐ ๐๐จ๐ง๐ญ๐ซ๐จ๐ฅ๐ฅ๐๐ซ ๐ข๐ง ๐๐๐๐๐๐Product Link: https://www.lmssolution.net.in/product-page/design-of-buck-boost-converter-with-pid-controller
Design a 250 W buckโboost converterย in MATLAB/Simulink. Learn converter parameter selection, duty-cycle control, PID Tuner-based plant identification, closed-loop voltage regulation, and reference tracking. The output is regulated near โ12 Vย with low ripple.

๐๐๐ฌ๐ข๐ ๐ง ๐จ๐ ๐๐ฎ๐๐ค ๐๐จ๐จ๐ฌ๐ญ ๐๐จ๐ง๐ฏ๐๐ซ๐ญ๐๐ซ ๐ฐ๐ข๐ญ๐ก ๐๐๐ ๐๐จ๐ง๐ญ๐ซ๐จ๐ฅ๐ฅ๐๐ซ ๐ข๐ง ๐๐๐๐๐๐Product Link: https://www.lmssolution.net.in/product-page/design-of-buck-boost-converter-with-pid-controller
๐๐ง๐ญ๐ซ๐จ๐๐ฎ๐๐ญ๐ข๐จ๐ง
A buckโboost converterย is a DCโDC power converter capable of operating in both step-down and step-up modes. In the conventional inverting configuration, its output voltage has the opposite polarity to the input voltage.
This MATLAB and Simulink model demonstrates the complete design and closed-loop control of a 250 W buckโboost converter. The converter is designed to produce a regulated output voltage of approximately โ12 Vย from a DC input operating between 27 V and 32 V.
The model also demonstrates controller tuning using the MATLAB PID Tuner, plant identification, voltage regulation, and reference-voltage tracking.
๐๐ฒ๐ฌ๐ญ๐๐ฆ ๐๐ฏ๐๐ซ๐ฏ๐ข๐๐ฐ
The converter consists of the following main components:
โข DC input voltage sourceโข IGBT with antiparallel diodeโข Energy-storage inductorโข Freewheeling diodeโข Output filter capacitorโข Resistive loadโข Voltage and current measurement blocksโข PWM or pulse generatorโข Closed-loop voltage controllerโข Powergui blockโข Scope for observing voltage, current, and power
The switching device is controlled by a pulse generator operating at the selected switching frequency. The output voltage is measured and compared with the reference voltage to generate the controller error.
๐๐๐ฌ๐ข๐ ๐ง ๐๐๐ซ๐๐ฆ๐๐ญ๐๐ซ๐ฌ
Parameter | Value |
Converter rated power | 250 W |
Minimum input voltage | 27 V |
Maximum input voltage | 32 V |
Nominal operating voltage | 30.7 V |
Required output voltage | โ12 V |
Switching frequency | 10 kHz |
Initial duty cycle | 0.307 |
Selected load resistance | Approximately 0.6 ฮฉ |
Converter type | Inverting buckโboost converter |
The inductor and output capacitor values are calculated before developing the Simulink model. These components influence current ripple, output-voltage ripple, transient performance, and converter stability.
๐๐ข๐ฆ๐ฎ๐ฅ๐ข๐ง๐ค ๐๐จ๐๐๐ฅ ๐๐จ๐ฆ๐ฉ๐จ๐ง๐๐ง๐ญ๐ฌ
Component | Purpose |
DC voltage source | Supplies the converter input voltage |
IGBT switch | Controls energy transfer through high-frequency switching |
Inductor | Stores and releases magnetic energy |
Diode | Provides the required current path when the switch turns off |
Output capacitor | Reduces output-voltage ripple |
Resistive load | Represents the connected electrical load |
Pulse generator | Produces switching pulses for the IGBT |
Voltage sensor | Measures the output voltage |
Current sensor | Measures the load current |
Product block | Calculates output power from voltage and current |
Scope | Displays voltage, current, and power |
Powergui | Configures the Specialized Power Systems simulation |
๐๐จ๐ซ๐ค๐ข๐ง๐ ๐๐ซ๐จ๐๐๐ฌ๐ฌ
01) Switch-ON Condition
When the IGBT is turned ON:
โข The DC source supplies current to the inductorโข Energy is stored in the inductorโข The diode remains reverse-biasedโข The output capacitor supplies the load temporarily
02) Switch-OFF Condition
When the IGBT is turned OFF:
โข The inductor releases its stored energyโข Current flows through the diodeโข The output capacitor and load receive energyโข The output voltage develops with negative polarity
03) Duty-Cycle Regulation
The duty cycle determines the relationship between the input and output voltage. A constant duty cycle of approximately 0.307ย is initially applied to test the open-loop converter.
Open-loop operation produces an output near the required voltage, but accurate regulation cannot be maintained under operating changes. Therefore, closed-loop control is introduced.
๐๐ฉ๐๐ง-๐๐จ๐จ๐ฉ ๐๐๐ฌ๐ญ๐ข๐ง๐
The initial Simulink model operates using a fixed duty cycle.
Open-Loop Setting | Value |
Input voltage | 30.7 V |
Duty cycle | 0.307 |
Switching frequency | 10 kHz |
Desired output voltage | โ12 V |
The open-loop output remains near the desired operating region. However, voltage error and ripple remain because the duty cycle is not automatically adjusted.
The limitations of open-loop control include:
โข Inability to correct steady-state voltage errorโข Poor response to reference-voltage changesโข Sensitivity to input-voltage variationโข Sensitivity to load variationโข Lack of automatic voltage regulation
๐๐จ๐ง๐ญ๐ซ๐จ๐ฅ ๐๐ญ๐ซ๐๐ญ๐๐ ๐ฒ
The closed-loop controller receives the difference between the reference voltage and measured output voltage.
The control process includes:
Measuring the converter output voltage
Comparing it with the negative reference voltage
Generating the voltage error
Processing the error through the controller
Producing the required duty-cycle command
Applying the command to the pulse generator
Regulating the IGBT switching operation
Maintaining the required output voltage
Because the converter output has negative polarity, the feedback sign and controller gains must be selected carefully.
๐๐๐ ๐๐ฎ๐ง๐๐ซ ๐๐ง๐ ๐๐ฅ๐๐ง๐ญ ๐๐๐๐ง๐ญ๐ข๐๐ข๐๐๐ญ๐ข๐จ๐ง
The controller is tuned using the MATLAB PID Tuner and plant-identification tools.
Tuning procedure
Open the controller block
Select the controller tuning option
Launch the PID Tuner application
Select plant identification
Generate inputโoutput data from the Simulink model
Apply a duty-cycle variation to excite the converter
Collect the converter response
Estimate the plant model
Compare measured and identified responses
Tune the controller response
Update the controller block
Simulate the complete closed-loop system
Identification settings described in the model
Identification Parameter | Value |
Initial excitation level | 0.15 |
Final excitation level | 0.45 |
Excitation amplitude | 0.30 |
Identified plant form | First-order transfer-function model |
The measured identification data and estimated plant response are compared in the PID Tuner. A close overlap indicates that the identified model represents the converter response adequately for controller tuning.
๐๐จ๐ง๐ญ๐ซ๐จ๐ฅ๐ฅ๐๐ซ ๐๐๐ข๐ง๐ฌ
The tuning procedure produces the following reported controller gains:
Controller Parameter | Tuned Value |
Proportional gain, Kp | โ0.01572 |
Integral gain, Ki | โ0.0677 |
The demonstrated tuning provides proportional and integral gains. A derivative gain was not specified in the transcript, although the MATLAB PID Tuner is used for the tuning workflow.
The negative gain values arise from the negative-polarity output and the selected feedback configuration.
๐๐ข๐ฆ๐ฎ๐ฅ๐๐ญ๐ข๐จ๐ง ๐๐๐ฌ๐ฎ๐ฅ๐ญ๐ฌ
After updating the controller parameters and running the simulation, the converter output settles near the required negative voltage.
Result | Observed Performance |
Regulated output voltage | Approximately โ12 V |
Output-voltage ripple | Approximately ยฑ0.1 V |
Reference tracking | Successful |
Closed-loop stability | Stable response reported |
Step-response test | Output follows the changed reference |
Final reference after step | Approximately โ10 V |
Step-change time | 5 seconds |
The controller reduces the voltage error and maintains the output near โ12 V. Only a small ripple is observed around the regulated value.
๐๐๐๐๐ซ๐๐ง๐๐-๐๐จ๐ฅ๐ญ๐๐ ๐ ๐๐ซ๐๐๐ค๐ข๐ง๐
A step input is applied to evaluate the dynamic performance of the controller.
The test changes the reference voltage after 5 seconds. The output voltage follows the new command and settles near โ10 V.
This test confirms that the controller can:
โข Track different voltage commandsโข Adjust the switching duty cycle automaticallyโข Reduce steady-state voltage errorโข Maintain stable converter operationโข Respond to reference-voltage changes
๐๐ฉ๐๐ง-๐๐จ๐จ๐ฉ ๐๐ง๐ ๐๐ฅ๐จ๐ฌ๐๐-๐๐จ๐จ๐ฉ ๐๐จ๐ฆ๐ฉ๐๐ซ๐ข๐ฌ๐จ๐ง
Feature | Open-Loop Control | Closed-Loop Control |
Duty-cycle adjustment | Fixed | Automatic |
Voltage feedback | Not used | Used |
Reference tracking | Limited | Effective |
Voltage-error correction | Not available | Available |
Response to operating changes | Poorer | Improved |
Output-voltage regulation | Approximate | Accurate |
Controller tuning | Not required | PID Tuner based |
๐๐๐ฒ ๐ ๐๐๐ญ๐ฎ๐ซ๐๐ฌ
โข Complete buckโboost converter design workflowโข MATLAB-based parameter calculationโข Simulink power-electronics modelโข 250 W converter ratingโข Negative output-voltage operationโข 10 kHz switching frequencyโข IGBT-based switching stageโข Inductor and capacitor designโข Output voltage, current, and power measurementโข Open-loop duty-cycle testingโข Closed-loop voltage controlโข MATLAB PID Tuner integrationโข Plant identification using simulation dataโข Automatic controller-gain calculationโข Output regulation near โ12 Vโข Low output-voltage rippleโข Step-reference tracking analysis
๐๐ฉ๐ฉ๐ฅ๐ข๐๐๐ญ๐ข๐จ๐ง๐ฌ
This buckโboost converter control model is useful for studying:
โข Renewable-energy conversion systemsโข Battery charging and discharging interfacesโข DC microgridsโข Electric-drive power suppliesโข Portable electronic systemsโข Regulated DC power suppliesโข Automotive electronic convertersโข Industrial DC control systemsโข Solar photovoltaic converter interfacesโข Power-electronics controller tuningโข Closed-loop voltage-control techniques
๐๐๐๐ซ๐ง๐ข๐ง๐ ๐๐ฎ๐ญ๐๐จ๐ฆ๐๐ฌ
After studying this model, learners can understand:
โข How a buckโboost converter operatesโข Why the output voltage has negative polarityโข How converter components are selectedโข How the load resistance is determinedโข How the switching frequency affects operationโข How to construct the converter in Simulinkโข How to generate PWM switching signalsโข How to implement voltage feedbackโข How to identify a converter plantโข How to tune a controller using MATLAB PID Tunerโข How to evaluate output-voltage rippleโข How to test reference-voltage tracking
๐๐จ๐ง๐๐ฅ๐ฎ๐ฌ๐ข๐จ๐ง
The Design of Buck Boost Converter with PID Controller in MATLABย demonstrates the complete process of converter calculation, Simulink model development, open-loop testing, plant identification, controller tuning, and closed-loop voltage regulation.
The 250 W converterย operates from a nominal input of 30.7 Vย and regulates its output near โ12 V. The MATLAB PID Tuner-based control approach improves voltage regulation, reduces steady-state error, and enables the output to follow a changing reference command.
This model provides a clear and practical learning resource for students, researchers, and engineers working with DCโDC converters, power electronics, MATLAB, Simulink, plant identification, and closed-loop voltage control.



Comments