Loading header...

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.

flowchart LR IN["Input supply"] --> REG["Regulator"] --> RAIL["3.3 V rail"] RAIL --> MCU["MCU and logic"] RAIL --> SENS["Quiet sensors"] RAIL --> CAP["Local decoupling"] LOAD["Motor or radio load"] --> GND["Power return"] MCU --> AGND["Quiet reference"]

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

  1. Measure every rail at idle and worst-case load.
  2. Capture startup with an oscilloscope.
  3. Apply load steps and watch droop and ringing.
  4. Run motors, radios, and heaters while checking ADC and communication errors.
  5. Test low battery and brownout recovery.
  6. Measure regulator and MOSFET temperatures.

Common Mistakes

  • One 100 nF capacitor 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.

Mind Map

mindmap root((Embedded Power)) Core concept Stable rails Local transient current Return path control Formulas Vdrop equals I R Plinear equals Vin minus Vout times I Energy cap half C V squared Applications MCU boards Radios Motor controllers Battery products Design rules Budget peak current Decouple each IC Keep loops small Enable brownout Practical checks Scope startup Load step rails Measure temperature Test low battery Common mistakes Capacitors far away Shared noisy ground Underrated supply Ignoring dropout