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.
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.
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.
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.
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.
| Regulator | Type | Current | Dropout | Typical use |
|---|---|---|---|---|
| 78xx / 79xx | Fixed positive / negative | 1 A (78L: 0,1 A) | 2 V | 5, 12, 15 V from a rectifier |
| LM317 / LM337 | Adjustable positive / negative | 1,5 A | 1,5–3 V | Bench supplies, non-standard voltages, current sources |
| AMS1117 | Adjustable or fixed low-dropout | 1 A | 1,1–1,3 V | 3.3 V from 5 V on microcontroller boards |
| MCP1700 / HT7333 | LDO | 0,25 A | 0,2 V | Battery equipment, quiescent current of a few µA |
| LM2940 | LDO | 1 A | 0,5 V | Automotive, with reverse and transient protection |
Related: rectifier with filter, Zener regulator, buck and boost converters and LEDs.