Circuit 3D

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.

7805 heat 3.5 W In 12 V Out 5 V ground

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.

Figure 1. A 7805 linear regulator, which needs about 2 V more in than out. Its output stays at 5 V whatever the input and load, while the difference becomes heat.

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.

5 V 6 V Battery 4 V 7805 5 V LDO

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.

Figure 2. A 7805, with about 2 V of dropout, and a 5 V LDO with about 0.3 V, both running from a battery as it runs down.

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.

5 W to the load 7 W wasted 12 W drawn from 12 V

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.

Figure 3. Making 5 V at 1 A, a 5 W load, with a linear regulator or a buck converter about 90% 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

  1. A 7805 makes 5 V at 0.5 A from 12 V. How much heat does it make?

  2. What does a linear regulator do with the extra voltage?

  3. A 7805 needs about 2 V of headroom. About what is the lowest input that still gives 5 V?

  4. Which is more efficient at making 5 V from 12 V?

  5. What does LDO stand for?

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.