A linear regulator is the simplest way to make a clean 5 V rail — and the easiest way to cook a small chip. An LDO (low-dropout regulator) is a linear regulator whose pass device needs only a small voltage across it to stay in regulation, so it can work from an input only slightly above its output. The LM1117-5.0 is the classic example: a fixed 5 V, 800 mA LDO with a dropout of 1.2 V at full load. This guide works it out on a very common job — powering a 5 V, 500 mA board from a 12 V rail — and shows why the package, not the circuit, decides whether it survives.
Figure 1: (a) Inside the LM1117-5.0: the pass PNP carries the load current, the error amplifier compares a divided sample of the output with the 1.25 V bandgap reference and drives the pass device to hold the output at 5 V. The fixed 5 V version has the divider built in. (b) Junction temperature at 40 °C ambient for the same 500 mA load at three input voltages — the SOT-223 package is in trouble at every input above 7 V, and even the TO-220 is at its limit at 12 V. (Schematic, not to scale. Cout must be a 10 µF tantalum capacitor, as the datasheet requires.)
What dropout really means
Dropout is the smallest voltage the regulator is allowed to drop across its pass device while still regulating. For the LM1117 the datasheet guarantees 1.2 V at 800 mA of load, and at our 500 mA it is roughly 1.1 V. So the input must stay above 5 V + 1.2 V = 6.2 V — and that is a hard floor, not a suggestion. Below it the pass device saturates, the output stops being regulated and simply follows the input minus the dropout, and the ripple rejection collapses, so input ripple walks straight through to the load. That is the whole point of an LDO: an ordinary LM317 needs about 2 V of headroom, so it cannot make 5 V from a 6 V source at all, while the LM1117 can. But "low dropout" does not mean "no heat" — it only means the regulator keeps working at a smaller input-output difference. The heat is set by that difference times the current, and that is where this design goes wrong.
The heat — 3.56 W in a chip the size of a fingernail
The power the regulator must burn is the voltage it drops times the load current, plus a small term for its own quiescent current: P = (12 − 5) × 0.5 A + 12 V × 5 mA = 3.50 + 0.06 = 3.56 W. The output power is only 5 V × 0.5 A = 2.5 W, so the efficiency is 2.5 / (12 × 0.505) = 41.3% — more power becomes heat than reaches the load. Junction temperature follows Tj = Ta + P × Î¸JA, and the package's thermal resistance is the whole story. The SOT-223 version has θJA = 61.6 °C/W, so at 40 °C ambient the junction would reach 40 + 3.56 × 61.6 = 259 °C — far past the 125 °C limit, and the chip's thermal shutdown would trip long before that. The TO-220 version has θJA = 23.8 °C/W, giving 40 + 3.56 × 23.8 = 124.7 °C — technically under the limit, but with 0.3 °C of margin, which is no margin at all. A TO-220 on a 10 °C/W heatsink changes the picture: θJA becomes roughly θJC (1.5 °C/W) + 1 °C/W of interface + 10 °C/W of heatsink = 12.5 °C/W, so Tj = 40 + 3.56 × 12.5 = 84.5 °C — comfortable. The lesson is blunt: with a linear regulator, always do the thermal calculation before the circuit calculation.
Lower the input, not the load
The heat is proportional to the voltage dropped, so the cheapest fix is to feed the LDO less voltage. At 7 V in, the dissipation falls to (7 − 5) × 0.5 + 7 × 0.005 = 1.04 W, the efficiency rises to 2.5 / (7 × 0.505) = 70.7%, and even the little SOT-223 works: Tj = 40 + 1.04 × 61.6 = 103.8 °C — hot, but inside the limit. At 9 V in, P = 2.05 W, efficiency 55.0%, and the SOT-223 reaches 40 + 2.05 × 61.6 = 166 °C — it fails again, while the TO-220 without a heatsink reaches 40 + 2.05 × 23.8 = 88.7 °C and is fine. So the design rule is simple: keep the input as close to Vout + dropout as the source allows. If the source is fixed at 12 V, the professional answer is to pre-regulate with a switching buck converter — a 92% efficient buck from 12 V to 6.5 V loses only 2.5 / 0.92 − 2.5 = 0.22 W, the LDO then drops 6.5 V to 5 V and burns (6.5 − 5) × 0.5 = 0.75 W, and the total loss is 0.97 W instead of 3.56 W. The buck does the big voltage step, the LDO does the cleanup — which is exactly what PSRR is for.
PSRR — what the LDO actually cleans up
PSRR (power-supply rejection ratio) says how much input ripple reaches the output. The LM1117 manages 75 dB at 120 Hz, so 100 mV of ripple on the input becomes 100 mV × 10−75/20 = 17.8 µV at the output — the regulator is an excellent filter at mains frequencies, which is why it is so often used after a rectifier or a noisy switcher. But PSRR falls with frequency: at 10 kHz it is roughly 40 dB, so the same 100 mV becomes 1.0 mV, and at 100 kHz it is roughly 20 dB, so 100 mV becomes 10 mV. An LDO cleans up low-frequency ripple brilliantly and high-frequency switching noise only weakly — another reason the buck-plus-LDO pair works: the buck's switching noise is small to begin with, and the LDO finishes the job. One more datasheet requirement matters here: the LM1117 needs a minimum 10 µF tantalum capacitor at its output for stability and transient response. A ceramic-only output capacitor with very low ESR can reduce the phase margin of this older bipolar LDO and make it ring, so follow the datasheet — 10 µF tantalum on the output, 10 µF on the input, close to the pins.
Second worked example — a 3.3 V rail from 5 V
The same trap appears at small voltage drops when the current is high. Take the LM1117-3.3 fed from 5 V at its full 800 mA: P = (5 − 3.3) × 0.8 + 5 × 0.005 = 1.36 + 0.025 = 1.39 W. In the SOT-223 package at 25 °C ambient, Tj = 25 + 1.39 × 61.6 = 110.3 °C — inside the limit, but only just. Put the same board in a 40 °C enclosure and Tj = 40 + 1.39 × 61.6 = 125.3 °C — over the limit, and the regulator shuts down on a warm day. The TO-220 at 40 °C gives 40 + 1.39 × 23.8 = 73.0 °C and has no problem at all. Even a 1.7 V drop at full current cooks a small package in a warm box. The accuracy numbers are the good news: the output is within ±1%, line regulation is 0.2% maximum (10 mV at 5 V) and load regulation is 0.4% maximum (20 mV at 5 V), and current limiting plus thermal shutdown are built in — the chip protects itself, but a design that relies on the protection tripping is not a design.
Key points to remember
- Worked example: LM1117-5.0, 12 V to 5 V at 500 mA. Dropout 1.2 V max at 800 mA (about 1.1 V at 500 mA), so Vin must stay above 6.2 V. Dissipation P = (12 − 5) × 0.5 + 12 × 5 mA = 3.56 W; efficiency 41.3%.
- Thermal: Tj = Ta + P × Î¸JA. SOT-223 (61.6 °C/W) reaches 259 °C at 40 °C ambient — thermal shutdown. TO-220 (23.8 °C/W) reaches 124.7 °C — at the 125 °C limit with no margin. TO-220 plus a 10 °C/W heatsink reaches 84.5 °C.
- Lower the input: at 7 V in, P = 1.04 W, efficiency 70.7%, SOT-223 Tj 103.8 °C. At 9 V in, P = 2.05 W, SOT-223 Tj 166 °C (fails), TO-220 Tj 88.7 °C. Or pre-regulate with a 92% buck to 6.5 V — total loss 0.97 W instead of 3.56 W.
- PSRR 75 dB at 120 Hz: 100 mV of input ripple becomes 17.8 µV at the output; at 10 kHz (about 40 dB) it becomes 1.0 mV, and at 100 kHz (about 20 dB) 10 mV. The datasheet requires a minimum 10 µF tantalum output capacitor — do not substitute a low-ESR ceramic alone.
- Second example: LM1117-3.3 from 5 V at 800 mA burns 1.39 W. SOT-223 reaches 110.3 °C at 25 °C ambient and 125.3 °C at 40 °C — over the limit; TO-220 reaches 73.0 °C at 40 °C. Accuracy ±1%, line regulation 0.2% max, load regulation 0.4% max, with current limiting and thermal shutdown built in.
