Sub topic 8
Choosing the right regulator for your battery and load
This chapter assumes you know Ohm's law and power (P = V × I). It also assumes you have read the earlier chapters on battery chemistries, battery ratings, linear regulators with dropout, and buck, boost, and buck-boost converters. Here you will combine that knowledge into a repeatable decision process.
The decision in one sentence
Pick the regulator by comparing the battery's voltage range over its whole discharge with the voltage your load needs. Then check the load current, the heat, the efficiency, and the noise tolerance.
Four questions settle most choices:
- What voltage does the load need, and how much can it vary?
- What is the battery's voltage at full charge and at the point where you stop using it?
- What is the peak load current, and what is the average?
- How much heat, noise, and idle current can the project tolerate?
Step 1: Write down the battery's voltage range
A battery does not have one voltage. A nominal rating is only the middle of a range. Use the full range, not the nominal figure.
| Battery | Full charge | Typical cutoff | Nominal |
|---|---|---|---|
| 4 × AA alkaline | about 6.4 V (fresh, no load) | about 3.6 to 4.0 V | 6.0 V |
| 4 × AA NiMH | about 5.6 V | about 4.0 V | 4.8 V |
| 1S Li-ion/LiPo | 4.2 V | about 3.0 to 3.3 V | 3.7 V |
| 2S Li-ion/LiPo | 8.4 V | about 6.0 to 6.6 V | 7.4 V |
| 9 V alkaline | about 9.6 V | about 6 V | 9 V |
Cutoff values depend on the cell, the load, and the protection circuit. Check your datasheet. The voltage at the cutoff point matters most, because that is where a regulator can fail to hold its output.
Step 2: Compare the range with the target voltage
Take the target output, for example 5 V or 3.3 V. Then place it against the battery range. Three cases result.
- The battery is always above the target by more than the regulator's dropout. A buck converter or a linear regulator can work.
- The battery is always below the target. You need a boost converter.
- The battery crosses the target during discharge. You need a buck-boost converter, or a design change such as a different cell count.
Step 3: Check the linear option with a heat calculation
If the battery is always above the target, a linear regulator is the simplest choice. It needs only a part and two capacitors. But it turns the whole voltage difference into heat. The heat is (V in − V out) × I.
Efficiency is roughly V out ÷ V in, ignoring the small quiescent current. A 9 V battery feeding a 5 V regulator wastes about 44% of the energy. At 100 mA the regulator dissipates 0.4 W, as the earlier example showed.
Use this code to compare candidates quickly:
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 ldo_efficiency(v_in, v_out):
"""Best-case efficiency of a linear regulator (ignores quiescent current)."""
return v_out / v_in
def temperature_rise_c(power_w, theta_ja_c_per_w):
"""Estimated rise of the die above the surrounding air."""
return power_w * theta_ja_c_per_w
cases = [
("9 V to 5 V", 9.0, 5.0, 0.100),
("7.4 V to 3.3 V", 7.4, 3.3, 0.200),
("4.2 V to 3.3 V", 4.2, 3.3, 0.150),
]
for name, v_in, v_out, i in cases:
p = ldo_dissipation_w(v_in, v_out, i)
eff = ldo_efficiency(v_in, v_out) * 100
rise = temperature_rise_c(p, 60.0) # 60 C/W is a typical small-package value
print(f"{name}: {p:.2f} W heat, {eff:.0f}% efficient, about +{rise:.0f} C")The thermal resistance (theta JA) of 60 °C/W is an assumption. Look up the value for your package and board layout in the datasheet. A TO-220 package without a heat sink and an SOT-23 package differ widely.
A practical rule: if the die temperature rise would exceed roughly 40 °C, or if the heat is more than about 0.5 W in a small package, choose a buck converter or reduce the input voltage.
Dropout can rule out a linear regulator
Dropout voltage is the minimum gap between input and output where the regulator still regulates. A classic 7805 needs about 2 V of headroom. An LDO may need 0.1 to 0.3 V.
Consider a single LiPo cell (3.0 to 4.2 V) feeding a 3.3 V load.
- With a 7833-style regulator needing 2 V of headroom, the input must stay above 5.3 V. A single cell never gets there, so this fails.
- With an LDO of 0.25 V dropout, the input must stay above 3.55 V. The output holds 3.3 V only until the cell falls to 3.55 V. Roughly the last 15 to 20% of the capacity cannot be used at 3.3 V.
For some loads that is fine. A load that works down to 3.0 V needs no 3.3 V rail at all in that range, so check the load's real minimum voltage.
Step 4: Check the switching option
A buck converter lowers the voltage with typical efficiency of 85 to 95% at moderate loads. Heat stays small even with a large voltage drop. The costs are:
- Switching noise on the output, usually tens of millivolts of ripple at the switching frequency.
- A larger parts list: an inductor, a diode or built-in switch, and capacitors.
- Poor efficiency at very light loads for some designs. Some parts have a quiescent current of several milliamps, which can ruin a sleep-mode design.
- Possible interference with analog readings, radio, or audio.
If noise matters, a common compromise is a buck converter followed by an LDO. The buck does the large drop efficiently. The LDO then cleans the output and wastes only a small voltage difference.
Step 5: Check current capability
Compare the regulator's rated output current with your peak load, not the average. Wi-Fi radios, motors, and servos can draw large short bursts. A regulator rated at 500 mA can brown out the rest of the project when a radio transmits at 400 mA plus the other parts.
Leave a margin. Choose a part rated at least 1.5 times the peak current. Also remember that a linear regulator's usable current falls as it heats up, because thermal shutdown or current limiting can engage.
Also consider the battery. A weak cell with high internal resistance sags under a peak, and the input can drop below the regulator's minimum. Add input capacitance near the regulator, as covered in the capacitor chapter, and check the battery can deliver the peak.
Worked examples
Example 1: 4 × AA alkaline to an Arduino Uno
The input range is about 6.4 V down to 3.6 V. The Uno's 5 V rail needs a regulated source. Down at 3.6 V the battery is below 5 V, so a plain buck or linear regulator stops working before the cells are empty. At 5.0 V plus dropout, a 7805-style part stops regulating near 7 V, which is above the fresh pack voltage. It would never regulate properly.
A better choice: a buck-boost converter set to 5 V, or a boost converter with 3 cells. The pack then delivers its full capacity. Four alkaline cells feeding the board's VIN pin through the board's own regulator wastes capacity and runs out of headroom early.
Example 2: 2S LiPo to a 3.3 V sensor node at 20 mA
The input range is 8.4 V down to 6.0 V. A linear regulator would waste (7.4 − 3.3) ÷ 7.4, about 55% of the energy, but at 20 mA the heat is only about 0.08 W. For a short-lived bench project, an LDO is fine. For a node meant to run for weeks, a buck converter with low quiescent current saves real capacity.
Example 3: 1S LiPo to a 5 V load
The input range is 4.2 V down to 3.0 V and the target is 5 V. The battery is always below the target. Use a boost converter. Efficiency is typically 80 to 92%, and the input current is higher than the output current: at 90% efficiency, a 5 V, 200 mA load draws about 1.0 W ÷ 0.9 ≈ 1.1 W. At 3.7 V that is about 300 mA from the cell.
Common mistakes
- Using the nominal voltage instead of the full range.
- Forgetting that dropout grows with load current.
- Ignoring quiescent current, which matters when the load is mostly asleep.
- Choosing a regulator by its maximum rating instead of its datasheet curve at your actual input voltage.
- Putting a noisy switcher next to an analog sensor with no filtering.
Quick comparison
| Criterion | Linear regulator / LDO | Switching regulator |
|---|---|---|
| Parts count | Low | Higher |
| Output noise | Very low | Higher, needs filtering |
| Efficiency at big drop | Poor | Good |
| Can raise voltage | No | Boost or buck-boost only |
| Heat at high current | High | Low |
| Quiescent current | Often a few µA (LDO), more for classic parts | Varies, from a few µA to several mA |
Exercise
A 2S LiPo pack (8.4 V full, 6.0 V cutoff) powers a 5 V load that draws 150 mA. How much heat does a linear regulator dissipate at full charge, and what regulator type would you choose for a battery meant to last many hours?
Show answer
Heat is (8.4 − 5.0) × 0.150 = 0.51 W, which is high for a small package and wastes about 40% of the energy (efficiency is 5 ÷ 8.4, roughly 60%). For long runtime, choose a buck converter, because the battery is always above 5 V plus dropout and a buck converter typically wastes only 5 to 15%. If the load is noise-sensitive, follow the buck with an LDO.
Exercise
A single LiPo cell (3.0 to 4.2 V) must supply a 3.3 V microcontroller that works down to 3.0 V. Which regulator type fits, and why does a regulator with 2 V dropout not work?
Show answer
The battery range crosses the 3.3 V target, so a buck-boost converter holds 3.3 V for the entire discharge. An LDO with low dropout is a simpler option if losing the last portion of capacity is acceptable. A regulator with 2 V dropout needs at least 5.3 V input, which a single cell never reaches, so it cannot regulate 3.3 V at all.