Voltage regulator
A voltage regulator holds its output at a set voltage while its input voltage and its load change. A linear regulator, such as the 7805, does it by dropping the difference across itself as heat, so making 5 V at 0.5 A from 12 V wastes (12 − 5) × 0.5 = 3.5 W.
P = (Vin − Vout) × I
where I is the load current, so making 5 V at 0.5 A from 12 V wastes 3.5 W.
A linear regulator also needs some headroom, its dropout voltage. A switching regulator instead converts the voltage efficiently, wasting far less.
What is a voltage regulator?
A voltage regulator is a circuit, usually a single chip, that keeps its output at a set voltage however its input voltage and the current drawn from it change.
Batteries sag as they run down and plug-in supplies vary, but chips need a steady 5 V or 3.3 V. In Figure 1, a 7805 holds 5 V while its input and load change, until the input falls too low.
12 V in, 500 mA out: it holds 5 V and drops the rest, turning (12 V − 5 V) × 500 mA = 3.5 W into heat; only 42% of the power reaches the load.
How does a linear voltage regulator work?
A linear voltage regulator works with a pass transistor between input and output, acting as a variable resistance that a feedback circuit adjusts so the output stays at its set voltage.
A 7805 has three pins: input, ground and output, with a 0.33 µF capacitor on the input and 0.1 µF on the output in its datasheet. The adjustable LM317 sets its output with two resistors: 1.25 V × (1 + R2 ÷ R1). A Zener diode and a resistor make the simplest regulator of all.
What is dropout voltage?
Dropout voltage is the smallest difference between input and output at which a linear regulator still holds its output: about 2 V for a 7805, and a few tenths of a volt for an LDO.
Below its dropout voltage, the regulator can only pass the input through, less its drop, so the output sags with the input. That matters most on batteries, as Figure 2 shows.
Battery at 6 V: the 7805 has only 1 V of headroom, under its 2 V dropout, so it sags to about 4 V, and the LDO holds 5 V.
What is the difference between a linear and a switching regulator?
A linear regulator burns off the extra voltage as heat; a switching regulator chops the input on and off rapidly into an inductor and capacitor, converting the voltage with little loss.
A switching regulator can step down, a buck converter, or up, a boost converter, often at 85 to 95% efficiency. Linear regulators are simpler, cheaper and quieter, so they suit small currents and noise-sensitive circuits. Figure 3 compares them on the same load.
Linear, from 12 V: it passes the full 1 A, so it draws 12 V × 1 A = 12 W and wastes 7 W: 42% efficient.
How do you choose a voltage regulator?
To choose a voltage regulator, start from the output voltage and the most current you need, then check the input range, the heat a linear part would make, and the dropout.
If (Vin − Vout) × I is under about a watt, a linear regulator or LDO is simplest. Much more, or a battery to stretch, calls for a buck or boost converter. Add the capacitors the datasheet asks for, and a diode against reverse polarity if the input could be wired backwards.
How do you calculate a regulator’s heat and current?
To calculate a linear regulator’s heat, multiply the voltage it drops by the load current: (12 − 5) V × 0.5 A = 3.5 W. For a buck converter, divide the output power by its efficiency and the input voltage.
Example 1: a linear regulator’s heat
A 7805 makes 5 V at 250 mA from 9 V. How much heat does it make?
- Given
- a 7805 making 5 V at 250 mA from 9 V
- Find
- the heat it makes, and its efficiency
- Solution
- P = (Vin − Vout) × I = (9 V − 5 V) × 250 mA = 1 WEfficiency ≈ Vout ÷ Vin = 5 V ÷ 9 V ≈ 56%A TO-220 sheds about 1 W on its own, so: fine without a heatsink
- Answer
- 1 W of heat, 56% efficient
Example 2: the current each kind draws
A 5 V circuit draws 100 mA from a 9 V supply. How much current does a linear regulator draw from it, and a buck converter?
- Given
- a 5 V, 100 mA load on a 9 V supply
- Find
- the input current through a linear regulator, and through a 90% buck converter
- Solution
- Linear: the same current passes through, 100 mABuck: Iin = 5 V × 100 mA ÷ (0.9 × 9 V) ≈ 61.7 mA
- Answer
- Linear 100 mA; buck about 61.7 mA
Summary
Key equations
- P = (Vin − Vout) × I a linear regulator’s heat
- η ≈ Vout ÷ Vin its efficiency
- Vin ≥ Vout + Vdropout to keep regulating
- Vout = 1.25 V × (1 + R2 ÷ R1) an LM317
Key terms
- Dropout
- The headroom it needs to keep regulating.
- LDO
- A low-dropout linear regulator.
- Buck
- A switching regulator that steps down.
- Boost
- A switching regulator that steps up.
Practice problems
-
A 7805 makes 5 V at 0.5 A from 12 V. How much heat does it make?
P = (12 V − 5 V) × 0.5 A = 3.5 W.
-
What does a linear regulator do with the extra voltage?
It drops the difference across its pass transistor, which carries the full load current, so the power becomes heat.
-
A 7805 needs about 2 V of headroom. About what is the lowest input that still gives 5 V?
5 V out plus 2 V of dropout is 7 V in.
-
Which is more efficient at making 5 V from 12 V?
A linear regulator is about 5 ÷ 12 ≈ 42% efficient here; a buck converter is typically around 90%.
-
What does LDO stand for?
An LDO is a linear regulator that keeps working with only a few tenths of a volt of headroom.
FAQ
What does a voltage regulator do?
It holds its output at a set voltage while the input voltage and the load current change, so the circuit after it sees a steady supply.
What is a 7805?
A common linear regulator, usually in a TO-220 package, that makes 5 V at up to about 1 A from an input of about 7 V or more.
Why does my voltage regulator get hot?
A linear regulator turns (Vin − Vout) × I into heat. Lower the input voltage, add a heatsink, or switch to a buck converter.
What is the difference between a voltage regulator and a buck converter?
A buck converter is a switching regulator that steps a voltage down efficiently; a linear regulator wastes the difference as heat but is simpler and quieter.
Do voltage regulators need capacitors?
Usually: small capacitors on the input and output, as the datasheet specifies, keep it stable. A 7805 asks for 0.33 µF in and 0.1 µF out.
Can a voltage regulator increase a voltage?
A linear one can’t: its output is always below its input. A boost converter, a kind of switching regulator, can.
What is an LDO regulator?
A low-dropout linear regulator, which keeps regulating with as little as a few tenths of a volt between input and output.
What is an LM317?
An adjustable linear regulator: two resistors set its output from 1.25 V to about 37 V, by V = 1.25 × (1 + R2 ÷ R1), so 240 Ω and 720 Ω give 5 V.