top of page

๐ƒ๐ž๐ฌ๐ข๐ ๐ง ๐จ๐Ÿ ๐๐ฎ๐œ๐ค ๐๐จ๐จ๐ฌ๐ญ ๐‚๐จ๐ง๐ฏ๐ž๐ซ๐ญ๐ž๐ซ ๐ฐ๐ข๐ญ๐ก ๐๐ˆ๐ƒ ๐‚๐จ๐ง๐ญ๐ซ๐จ๐ฅ๐ฅ๐ž๐ซ

๐ƒ๐ž๐ฌ๐ข๐ ๐ง ๐จ๐Ÿ ๐๐ฎ๐œ๐ค ๐๐จ๐จ๐ฌ๐ญ ๐‚๐จ๐ง๐ฏ๐ž๐ซ๐ญ๐ž๐ซ ๐ฐ๐ข๐ญ๐ก ๐๐ˆ๐ƒ ๐‚๐จ๐ง๐ญ๐ซ๐จ๐ฅ๐ฅ๐ž๐ซ



๐‹๐ž๐š๐ซ๐ง ๐๐ฎ๐œ๐คโ€“๐๐จ๐จ๐ฌ๐ญ ๐‚๐จ๐ง๐ฏ๐ž๐ซ๐ญ๐ž๐ซ ๐ƒ๐ž๐ฌ๐ข๐ ๐ง

โ€ข 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.


๐ƒ๐ž๐ฌ๐ข๐ ๐ง ๐จ๐Ÿ ๐๐ฎ๐œ๐ค ๐๐จ๐จ๐ฌ๐ญ ๐‚๐จ๐ง๐ฏ๐ž๐ซ๐ญ๐ž๐ซ ๐ฐ๐ข๐ญ๐ก ๐๐ˆ๐ƒ ๐‚๐จ๐ง๐ญ๐ซ๐จ๐ฅ๐ฅ๐ž๐ซ ๐ข๐ง ๐Œ๐€๐“๐‹๐€๐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.




Design of Buck boost converter with PID controller
โ‚น2,414.00โ‚น1,207.00
Buy Now


๐ƒ๐ž๐ฌ๐ข๐ ๐ง ๐จ๐Ÿ ๐๐ฎ๐œ๐ค ๐๐จ๐จ๐ฌ๐ญ ๐‚๐จ๐ง๐ฏ๐ž๐ซ๐ญ๐ž๐ซ ๐ฐ๐ข๐ญ๐ก ๐๐ˆ๐ƒ ๐‚๐จ๐ง๐ญ๐ซ๐จ๐ฅ๐ฅ๐ž๐ซ ๐ข๐ง ๐Œ๐€๐“๐‹๐€๐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:

  1. Measuring the converter output voltage

  2. Comparing it with the negative reference voltage

  3. Generating the voltage error

  4. Processing the error through the controller

  5. Producing the required duty-cycle command

  6. Applying the command to the pulse generator

  7. Regulating the IGBT switching operation

  8. 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

  1. Open the controller block

  2. Select the controller tuning option

  3. Launch the PID Tuner application

  4. Select plant identification

  5. Generate inputโ€“output data from the Simulink model

  6. Apply a duty-cycle variation to excite the converter

  7. Collect the converter response

  8. Estimate the plant model

  9. Compare measured and identified responses

  10. Tune the controller response

  11. Update the controller block

  12. 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


bottom of page