EN

Linear regulators

78xx, LM317 and LDO: output voltage, dissipation and heatsink

A linear regulator delivers a fixed voltage even when the input and load change. Inside it is a transistor acting as a variable resistance: the difference between input and output stays in it and turns into heat. They are simple, cheap and free of switching noise, but their efficiency is \(V_{out}/V_{in}\): going from 12 to 5 V at 1 A wastes 7 W.

LM317 resistors

The LM317 keeps 1.25 V between its output and the adjust pin. A divider R1–R2 sets the output voltage. R1 is usually 240 Ω (or 120 Ω) so that the divider carries at least the 3.5 to 10 mA minimum load the regulator needs.

\[ V_{out} = 1{,}25\,\text{V}\left(1 + \frac{R_2}{R_1}\right) + I_{ADJ}\,R_2 \]
LM317
V
Ω

Dissipation and heatsink

The power is the drop across the regulator times the current, plus the regulator's own current times the input voltage. The thermal resistance without heatsink shows whether the package is enough; if not, the required heatsink is calculated. Also check that at the minimum input (the ripple trough) the drop does not fall below the dropout.

Regulator and environment
V
V
V
A
V
mA
°C/W
°C/W
°C/W
°C
°C

Typical TO-220 values: RθJC ≈ 5 °C/W and RθJA ≈ 50 °C/W. SOT-223 on a copper pad: RθJA ≈ 60 to 90 °C/W; TO-92: about 160 °C/W.

LM317 as a current source

With a single resistor between the output and the adjust pin, the LM317 drives a constant current \(I = 1.25\,\text{V}/R\) through the load. It is used to feed power LEDs or charge NiMH or lead-acid batteries with limited current.

Current source
mA
V
V

Common families

RegulatorTypeCurrentDropoutTypical use
78xx / 79xxFixed positive / negative1 A (78L: 0,1 A)2 V5, 12, 15 V from a rectifier
LM317 / LM337Adjustable positive / negative1,5 A1,5–3 VBench supplies, non-standard voltages, current sources
AMS1117Adjustable or fixed low-dropout1 A1,1–1,3 V3.3 V from 5 V on microcontroller boards
MCP1700 / HT7333LDO0,25 A0,2 VBattery equipment, quiescent current of a few µA
LM2940LDO1 A0,5 VAutomotive, with reverse and transient protection

Practical details

Related: rectifier with filter, Zener regulator, buck and boost converters and LEDs.