Powering Embedded Systems Correctly
Many embedded failures look like software bugs: random resets, corrupted sensor readings, locked buses, noisy ADC values, and modules that work on USB but fail in the field. A large fraction of those failures are power integrity problems.
Learning Objectives
By the end of this lesson, you should be able to estimate current budget and voltage drop, choose regulators, place decoupling and bulk capacitors, separate noisy and sensitive return paths, and verify brownout, startup, and load-step behavior.
Current Budget
List every load and its worst-case current, not just average current.
| Load | Current to budget |
|---|---|
| MCU | active current plus clock and peripheral load |
| Radio | transmit burst current |
| Motor or relay | startup or stall current |
| Sensor | warm-up and conversion current |
| LEDs | maximum duty and current setting |
Add margin because batteries age, regulators heat, and wiring drops voltage.
Voltage Drop
Wires, connectors, protection devices, and PCB traces have resistance. Voltage lost before the load is:
$$
V_\text{drop}=IR
$$
If a radio draws a 700 mA pulse through 0.4 Ohm total path resistance:
$$
V_\text{drop}=0.7\times0.4=0.28\ V
$$
That drop can reset a 3.3 V system if the regulator is near dropout.
Regulators
A linear regulator is simple and quiet, but dissipates:
$$
P_\text{linear}=(V_\text{in}-V_\text{out})I
$$
A switching regulator is efficient for large voltage drops or high current, but it adds ripple, layout sensitivity, and EMI concerns. Use linear regulators for low current, low noise, or post-regulation. Use buck converters for high current or battery life, then filter and route carefully.
Decoupling and Bulk Capacitance
Every IC power pin needs a nearby ceramic decoupling capacitor, commonly 100 nF, connected with the shortest practical loop to power and ground. Bulk capacitors near regulators, connectors, motors, and radios supply slower current bursts.
Capacitor selection must consider DC bias derating, equivalent series resistance, ripple current, regulator stability, and electrolytic lifetime.
Ground Is a Return Path
Ground is not a magic zero-voltage ocean. Current returns through physical copper, and noisy load current creates voltage differences across that copper. Keep high-current loops small, route motor and switching-regulator current away from ADC references, use a solid ground plane where possible, and avoid sharing thin ground traces between power loads and sensors.
Startup, Brownout, and Sequencing
Embedded systems must survive the moments when power is not yet valid. Check regulator startup time, reset supervisor threshold, brownout detector configuration, GPIO default states before firmware starts, back-powering through IO pins, and sequencing requirements for radios, FPGAs, displays, and sensors.
Verification Tests
- Measure every rail at idle and worst-case load.
- Capture startup with an oscilloscope.
- Apply load steps and watch droop and ringing.
- Run motors, radios, and heaters while checking ADC and communication errors.
- Test low battery and brownout recovery.
- Measure regulator and MOSFET temperatures.
Common Mistakes
- One
100 nFcapacitor somewhere on the board instead of one near each IC power pin. - Powering motors from the same thin wires as the MCU without local bulk capacitance.
- Ignoring regulator dropout during battery discharge.
- Assuming USB power behavior matches field power behavior.
- Disabling brownout detection to hide resets.
Summary
Reliable embedded power starts with a current budget, correct regulators, short decoupling loops, controlled return paths, and measured startup/load-step behavior. When a system resets or produces noisy data, verify power before rewriting firmware.
Further Reading
- Analog Devices, Power Management Fundamentals.
- Texas Instruments, Power Supply Layout Guidelines.
- STMicroelectronics, MCU Hardware Design Guidelines.