Sub topic 6
Linear regulators, dropout, and heat
This chapter assumes you know Ohm's law and power (P = V × I), have read the earlier chapters on battery ratings and why projects need regulated voltage, and can upload a sketch to an Arduino board. By the end you will be able to predict how hot a linear regulator gets, check whether a battery leaves enough headroom for it, and decide when a linear regulator is the wrong part.
What a linear regulator does
A linear regulator takes an input voltage that is higher than the output you want and holds the output steady. It does this by acting like a variable resistor in series with the load. An internal control loop compares the output to a reference and adjusts how hard a pass transistor conducts. If the load draws more current or the input rises, the regulator adjusts to keep the output where it should be.
Whatever voltage the pass element drops is not available to the load. The load current flows through it, so that dropped voltage multiplied by the current becomes heat.
Two properties follow directly from this design:
- The output voltage is always lower than the input voltage.
- The current drawn from the input equals the current delivered to the load, plus a small amount the regulator uses to run itself.
The second point matters most for batteries. A linear regulator cannot turn excess voltage into extra current. It only throws the excess away as heat.
Dropout voltage
The minimum difference between input and output that the regulator needs to stay in regulation is the dropout voltage. If the input falls below output plus dropout, the output follows the input down and is no longer regulated.
Dropout depends on the part and on the load current. Datasheets usually give it at a specified current, and it grows as current rises.
| Type | Typical dropout | Example parts | Notes |
|---|---|---|---|
| Standard (NPN pass) | about 2 V | 7805, LM317 | Cheap and common, but needs a lot of headroom |
| LDO (low dropout) | 0.1 V to 0.5 V | AMS1117-3.3, MCP1700, LD1117 | Works as a battery drains close to the output voltage |
| Very low dropout | under 0.1 V | Many modern CMOS LDOs | Often has low quiescent current, limited maximum current |
Check the dropout against the lowest battery voltage you expect. A 7805 outputs 5 V only while its input stays above about 7 V. Four AA alkaline cells start near 6.4 V and fall below that quickly, so the 7805 would stop regulating almost immediately. A 3.3 V LDO with 0.3 V dropout needs at least 3.6 V, which a single lithium-ion cell (4.2 V full, about 3.0 to 3.3 V near empty) only supplies for part of its discharge.
Heat: the calculation that decides your design
The power a linear regulator turns into heat is:
Pheat = (Vin − Vout) × Iload
This ignores the small quiescent current, which is normally negligible except in low-power designs. The following code implements the calculation and a derated runtime estimate that you will use again in later chapters.
def ldo_dissipation_w(v_in, v_out, current_a):
"""Power turned into heat by a linear regulator."""
return (v_in - v_out) * current_a
def runtime_hours(capacity_mah, avg_current_ma, derate=0.7):
"""Rough runtime, derating the rated capacity for real-world losses."""
return capacity_mah * derate / avg_current_ma
# 9 V battery feeding a 5 V linear regulator at 100 mA
print(ldo_dissipation_w(9.0, 5.0, 0.100)) # 0.4 W of heat
# 2000 mAh pack, 50 mA average draw
print(runtime_hours(2000, 50)) # 28.0 hoursIn the first example, the regulator delivers 5 V × 0.1 A = 0.5 W to the load and burns 0.4 W as heat. Of the 0.9 W drawn from the battery, only about 56% does useful work.
Efficiency of a linear regulator
Because input current equals output current, efficiency is approximately:
efficiency ≈ Vout / Vin
A 5 V output from a 9 V battery is about 56% efficient. A 3.3 V output from the same battery is about 37% efficient. The higher the input voltage compared with the output, the more energy goes to waste, and the shorter your battery lasts.
Will it overheat?
Heat must leave through the package. Datasheets give a thermal resistance in °C per watt, either junction-to-ambient (θJA) or junction-to-case. The temperature rise of the silicon above the surrounding air is:
ΔT = P_heat × θJA
A TO-220 package such as the 7805 has θJA around 50 °C/W without a heatsink. At 0.4 W, the rise is about 20 °C, which is fine. A small SOT-223 package such as the AMS1117 often has θJA of 90 °C/W or worse unless it sits on a generous copper area. At 1 W that is a 90 °C rise, and with 25 °C ambient air the junction reaches 115 °C, close to typical limits.
Most linear regulators include thermal shutdown. When the die gets too hot, the output turns off or drops until it cools, then turns on again. A project that resets every few seconds under load may be seeing this.
Use the highest battery voltage for the heat calculation, since a fresh battery gives the largest drop. Use the lowest battery voltage for the dropout check.
Worked example: 9 V battery, 5 V sensor board
Suppose a 9 V alkaline battery powers a board that draws 150 mA at 5 V through a 7805.
- Dropout check: the 7805 needs about 7 V in. A 9 V alkaline battery falls toward 7 V after delivering a modest part of its capacity, so you lose regulation early.
- Heat: (9 − 5) × 0.150 = 0.6 W. With θJA of 50 °C/W, the rise is 30 °C. That is acceptable.
- Efficiency: 5 / 9 ≈ 56%.
- Battery life: 9 V alkaline batteries have small capacity, often around 500 mAh at light loads and much less at 150 mA. The 150 mA draw empties one quickly.
The design works electrically but wastes energy and uses a poor battery for the load. A buck converter from a larger pack would be better.
Quiescent current
The quiescent current (Iq) is what the regulator draws from the input when the load is nearly zero. Classic parts such as the 7805 use about 5 mA, and the LM317 needs a few milliamps. Modern micropower LDOs such as the MCP1700 specify around 1.6 µA.
For a sensor node that sleeps most of the time at 20 µA, a 5 mA quiescent current ruins the battery life. You must compare Iq with your sleeping current, not with your active current. Later chapters on runtime and low-power design return to this.
Other behaviours to know
- Reverse current: Some regulators can be damaged if the output is held higher than the input, for example when a USB supply and a battery are both connected. Check the datasheet, and consider a diode if you need to connect two sources.
- Output capacitor requirements: Some LDOs oscillate unless the output capacitor has a particular value and equivalent series resistance (ESR). The AMS1117 and many older LDOs need a tantalum or specific ceramic. The decoupling chapter covers this.
- Fixed versus adjustable: Fixed parts such as the MCP1700-3302 output 3.3 V. Adjustable parts such as the LM317 use two resistors to set the output. Fixed parts are simpler.
- Low noise: Linear regulators produce a clean output with no switching ripple. This is a real advantage for analog sensors, audio, and radio circuits.
- Voltage drop under load: Real regulators have load regulation and line regulation specifications, usually small, on the order of tens of millivolts.
When a linear regulator is the right choice
A linear regulator suits a project when:
- the input is only slightly above the output (for example 3.7 V lithium-ion to 3.3 V),
- the current is small enough that the wasted power is acceptable,
- you need low noise,
- you want the smallest and cheapest circuit, with just one part and two capacitors.
It fits poorly when the drop is large, the current is high, or battery life is the main goal. The next chapter covers switching regulators for those cases.
Common mistakes
- Checking dropout at a fresh battery voltage and forgetting that the battery sags as it discharges, or sags under load.
- Computing heat from the nominal battery voltage instead of the maximum.
- Ignoring quiescent current in a sleeping design.
- Using a part that needs a specific output capacitor and fitting a different one.
- Assuming the board's own regulator can supply unlimited current. Boards such as the Uno have a small linear regulator that must dissipate the entire drop from VIN to 5 V.
Exercise
A 7.4 V pack (two lithium-ion cells in series) feeds a 3.3 V linear regulator that supplies 120 mA. How many watts of heat does the regulator produce, and roughly what is its efficiency?
Show answer
Heat = (7.4 − 3.3) × 0.120 = 4.1 × 0.120 = 0.492 W, about 0.49 W. Efficiency ≈ 3.3 / 7.4 ≈ 45%. A buck converter would waste much less.
Exercise
A project uses an LDO with 0.3 V dropout to make 3.3 V from a single lithium-ion cell that ranges from 4.2 V to 3.0 V. Below what battery voltage does the output leave regulation, and what does this mean for using the last part of the battery's charge?
Show answer
The regulator needs at least 3.3 + 0.3 = 3.6 V at the input. Below 3.6 V the output follows the input down. The cell has about 3.0 V to 3.6 V of its range left, so the 3.3 V rail is not regulated for that final portion. Either accept a sagging rail, use a boost or buck-boost converter, or shut the project down at 3.6 V and leave some capacity unused.
Exercise
A regulator in an SOT-223 package has θJA of 90 °C/W and dissipates 0.6 W in a 30 °C enclosure. What is the estimated junction temperature?
Show answer
ΔT = 0.6 × 90 = 54 °C, so the junction is about 30 + 54 = 84 °C. This is below the usual 125 °C limit but hot, and little margin remains if the load or ambient temperature rises.