Buck and boost converters
A buck converter steps a DC voltage down and a boost converter steps it up, by switching current through an inductor tens of thousands to millions of times a second. The share of each cycle the switch is on, the duty cycle D, sets the output, so an ideal buck making 5 V from 12 V runs at 5 ÷ 12 ≈ 42%.
Vout = D × Vin
for an ideal buck converter, where D is the fraction of each cycle the switch is on; an ideal boost gives Vout = Vin ÷ (1 − D).
Both are DC-DC converters, and good ones are 85 to 95% efficient.
What is a buck converter?
A buck converter is a DC-DC converter that steps a voltage down efficiently, by switching its input on and off rapidly and smoothing the pulses with an inductor and a capacitor.
Its output is the input’s average over each cycle: switched on a quarter of the time, a 12 V input gives 3 V. Figure 1 sets the duty cycle; switch it to Boost to see the opposite.
Buck, 25% duty: the switch is on 25% of each cycle, so Vout = 0.25 × 12 V = 3 V, stepped down.
How does a buck converter work?
A buck converter works in two phases: with its switch on, the input drives a rising current through the inductor to the load; with it off, the inductor keeps that current flowing through a diode.
An inductor resists any change in its current, so it smooths the pulses into a steady flow, and an output capacitor smooths what ripple remains. A controller watches the output and adjusts the duty cycle to hold it steady. Many replace the diode with a second MOSFET, a synchronous buck, to waste less. Figure 2 shows both phases.
Switch on: the supply drives current through the inductor to the load, and the inductor stores energy in its field as the current rises.
What is a boost converter?
A boost converter steps a DC voltage up, by switching an inductor across the supply to store energy and then releasing that energy through a diode on top of the input voltage.
With the switch on, current builds in the inductor; when it opens, the inductor’s voltage adds to the input’s, charging the output capacitor higher. Ideally Vout = Vin ÷ (1 − D), so 50% duty doubles the input. It cannot make energy, so it draws more current than it delivers. A boost lets one lithium cell power a 5 V USB port, as in a power bank.
What is a DC-DC converter?
A DC-DC converter turns one DC voltage into another: a buck steps it down, a boost steps it up, and a buck-boost does either.
A buck-boost suits a battery that starts above the output it must make and drains below it. Isolated converters, such as flybacks, add a transformer so the output has no direct connection to the input. Together they are called switching regulators, the efficient alternative to a linear voltage regulator.
What is a switch mode power supply?
A switch mode power supply, or SMPS, is any power supply that regulates by switching rather than by burning off the extra as heat, from a phone charger to a computer’s power supply.
It rectifies the mains, then switches it through a small transformer: a converter with isolation added. The mains inside can kill, so leave chargers closed. See power supplies for how one works, linear against switching, and how to choose one.
Why is a buck converter more efficient than a linear regulator?
A linear regulator drops the extra voltage across itself as heat, while a buck converter’s switch is either fully on or fully off, so it wastes little in either state.
An ideal switch has no voltage across it when on and no current through it when off, so it turns nothing into heat; real ones lose a little in resistance and in each transition. The bigger the step down, the bigger the difference, as Figure 3 shows. Linear regulators still suit small currents and quiet circuits, since switching adds ripple.
12 V in: a linear regulator burns the difference, (12 V − 3.3 V) × 100 mA = 870 mW, only 27% efficient, while a buck converter at a typical 90% wastes about 36.7 mW.
How do you work out a converter’s duty cycle and current?
To work out a buck converter’s duty cycle, divide the output by the input, 5 ÷ 12 ≈ 42%; for its input current, divide the output power by its efficiency and then by the input voltage.
Example 1: a buck converter’s duty cycle
What duty cycle does an ideal buck converter need to turn 12 V into 5 V?
- Given
- an ideal buck converter turning 12 V into 5 V
- Find
- its duty cycle
- Solution
- D = Vout ÷ Vin = 5 V ÷ 12 V = 41.7%
- Answer
- 41.7% duty
Example 2: a boost converter’s battery current
A boost converter makes 5 V for a 50 mA USB load from a 3.7 V lithium cell at 90% efficiency. What current does it draw from the cell?
- Given
- a boost converter making 5 V at 50 mA from a 3.7 V cell, 90% efficient
- Find
- the current it draws from the cell
- Solution
- Power out = 5 V × 50 mA = 250 mWPower in = 250 mW ÷ 0.9 = 277.8 mW, so I = 277.8 mW ÷ 3.7 V = 75.1 mA
- Answer
- 75.1 mA from the cell
Summary
Key equations
- Vout = D × Vin an ideal buck
- Vout = Vin ÷ (1 − D) an ideal boost
- Iin = Pout ÷ (η × Vin) the input current
Key terms
- Duty cycle
- The share of each cycle on.
- Buck
- Steps a voltage down.
- Boost
- Steps a voltage up.
- SMPS
- A switch mode power supply.
Practice problems
-
An ideal buck converter runs at 50% duty from 12 V. What is its output?
V_out = D × V_in = 0.5 × 12 V = 6 V.
-
An ideal boost converter runs at 50% duty from 5 V. What is its output?
V_out = V_in ÷ (1 − D) = 5 V ÷ 0.5 = 10 V.
-
Which part stores energy between switching phases in a buck converter?
Its magnetic field stores energy while the switch is on and gives it to the load while the switch is off.
-
A linear regulator makes 5 V at 100 mA from 12 V. How much heat does it waste?
(12 V − 5 V) × 0.1 A = 0.7 W, more than the 0.5 W the load uses.
-
A converter delivers 0.32 W at 80% efficiency from a 5 V input. What current does it draw?
Power in = 0.32 W ÷ 0.8 = 0.4 W, so I = 0.4 W ÷ 5 V = 80 mA.
FAQ
What is the difference between a buck and a boost converter?
A buck converter steps a DC voltage down; a boost converter steps it up. Both switch current through an inductor, and the duty cycle sets the ratio.
Is a buck converter a voltage regulator?
Yes, a switching one. A linear regulator does the same job by burning off the extra voltage as heat.
Can a buck converter increase voltage?
No. A buck’s output is always below its input; to step up, use a boost or a buck-boost converter.
What is an AC to DC converter?
A power supply that turns mains AC into low-voltage DC, usually by rectifying it and then regulating it with a switch mode stage, as in a phone charger.
What is ripple in a switching converter?
The small leftover rise and fall in the output at the switching frequency. Bigger output capacitors and inductors, or a higher frequency, reduce it.
Does a boost converter create energy?
No. Power in is at least power out, so stepping the voltage up draws more current from the input than the load takes.
What does duty cycle mean in a converter?
The fraction of each switching cycle that the switch is on. At 25%, it is on for a quarter of every cycle.