Home / Learn Chip Programming / Power Supplies: Linear and Switching Regulators
Power Supplies: Linear and Switching Regulators
Every chip needs stable power. Learn how an LDO and a buck converter differ and how to pick one.
Theory in plain words
What it is
A linear regulator (LDO) burns the extra voltage as heat. A switching regulator (buck/boost) chops the input and uses an inductor, wasting much less.
Why we use it
A bad supply causes random resets, noisy ADC readings and burnt boards. Heat in a linear regulator is the number one hidden problem.
How it works
Linear: Pdiss = (Vin - Vout) x I. Switching efficiency is often 85 to 95 percent. Add input and output capacitors as the datasheet says and keep the loop short.
Where it is used
- Powering 3.3 V chips from 5 V, 9 V or 12 V
- Battery powered devices
- USB power (5 V) input protection
Heat calculator
From 12 V to 3.3 V at 300 mA an LDO wastes 2.6 W, enough to burn your finger. A buck converter wastes about 0.1 W.
Typical supply chain
| Source | Voltage | Notes |
|---|---|---|
| USB | 5 V, 0.5 to 3 A | add a polyfuse and a TVS diode |
| Li-ion / LiPo | 3.0 to 4.2 V | needs a charger chip and protection |
| AA x 3 | 3.0 to 4.5 V | works with 3.3 V LDO or boost |
| 12 V adapter | 12 V | use a buck to 5 V then LDO for clean 3.3 V |
| Solar + battery | varies | MPPT charger, boost or buck |
Quick quiz
1. Heat in an LDO from 12 V to 3.3 V at 0.5 A?
(12 - 3.3) x 0.5 = 4.35 W.
2. Which regulator wastes less power for a big voltage drop?
A buck converter is much more efficient.
Common questions
Heat in an LDO from 12 V to 3.3 V at 0.5 A?
4.35 W. (12 - 3.3) x 0.5 = 4.35 W.
Which regulator wastes less power for a big voltage drop?
Buck converter. A buck converter is much more efficient.