Sub topic 2
Linear regulators, dropout, and heat
This chapter assumes you know Ohm's law, can build a simple circuit on a breadboard, and have uploaded a sketch to an Arduino board. A regulator is a part that holds a voltage steady while the input voltage and load current change.
Linear regulators and dropout
A linear regulator lowers a higher input voltage to a fixed output voltage by burning the extra energy as heat. Dropout voltage is the smallest difference between input and output at which the regulator still holds its output steady. A standard part may need 2 V or more of headroom. A low-dropout (LDO) part may need only 0.1 to 0.3 V.
Heat calculation
The regulator dissipates power equal to the voltage drop times the load current:
P = (Vin - Vout) × I
def ldo_dissipation_w(v_in, v_out, current_a):
return (v_in - v_out) * current_a
def runtime_hours(capacity_mah, avg_current_ma, derate=0.7):
return capacity_mah * derate / avg_current_ma
print(ldo_dissipation_w(9.0, 5.0, 0.100)) # 0.4
print(runtime_hours(2000, 50)) # 28.0A 9 V battery feeding a 5 V LDO at 100 mA wastes 0.4 W as heat. The regulator's efficiency is roughly Vout / Vin, or 56 percent here.
Switching regulators: buck, boost, and buck-boost
A switching regulator stores energy in an inductor and releases it in short pulses. Efficiency typically runs 85 to 95 percent, so less energy becomes heat. The three common types are:
- Buck: output lower than input.
- Boost: output higher than input.
- Buck-boost: output can be higher or lower than input.
Switching regulators add electrical noise and cost more parts than linear regulators.
Choosing the right regulator for your battery and load
Input and output capacitors for stable regulation
Place a 10 µF capacitor between the input and ground, close to the regulator. Place a second 10 µF capacitor on the output. Ceramic capacitors often need a minimum value to keep the regulator stable, so check the datasheet before you choose a type.
Building a current budget for your project
List every part's average current, add them up, and add a 20 to 30 percent margin. Then use the runtime formula from the first section to check the result against your battery's capacity.
Exercise
A 1500 mAh battery powers a board that draws an average of 60 mA. Using a 0.7 derate, how many hours does it last?
Show answer
1500 × 0.7 / 60 = 17.5 hours.