Power and Motor Electronics

Batteries and supplies, switching converters and thermal design, and driving motors and actuators.

Every circuit needs power, and some of them need a lot of it: a motor, a heater, a bank of LEDs. This guide covers where the power comes from (cells, adapters, linear and switching regulators), how to convert it efficiently and keep it cool, and how to drive the loads that need more current than a microcontroller pin can give (DC motors, steppers, servos and solenoids). It builds on Electronics Fundamentals, especially transistors and diodes, and the finished designs in Design, Testing and Troubleshooting put it to use.

Start here: what do you need?

I need to…Go to
choose a battery or estimate how long it will lastBatteries and Power Supplies
power a project from USB, a wall adapter or a bench supplyBatteries and Power Supplies
choose a linear regulator, or find out why it is hotBatteries and Power Supplies
design a buck or boost converter, or pick its inductor and capacitorsPower Electronics: Buck, Boost and Thermal Design
work out efficiency, losses and heat in a converterPower Electronics: Buck, Boost and Thermal Design
drive a DC motor with PWM, or reverse it with an H-bridgeDriving Motors and Actuators
drive a stepper, a servo or a solenoid, and protect against flybackDriving Motors and Actuators
measure motor current, or limit it at start-upDriving Motors and Actuators

A suggested order

Start with the supply, then the converters, then the loads: motors need a good supply to work well.

  1. Batteries and Power Supplies: Cell chemistries, battery life, linear and switching regulators, bench supplies and current limiting.
  2. Power Electronics: Buck, Boost and Thermal Design: How switching converters work, choosing the inductor and capacitors, feedback dividers, efficiency and losses, heat and layout, with worked designs.
  3. Driving Motors and Actuators: Driving DC motors, steppers, servos, solenoids and relays from a microcontroller: PWM, H-bridges, MOSFETs, flyback protection and current sensing.

Quick reference: formulas

TopicFormulaPage
Linear regulator heatP = (Vin − Vout) × IBatteries and Power Supplies
Battery runtimehours ≈ mAh × 0.8 ÷ mABatteries and Power Supplies
C-rateC = I ÷ capacity (2 A on a 5 Ah pack: 0.4 C)Batteries and Power Supplies
Buck duty cycleD = Vout ÷ VinPower Electronics: Buck, Boost and Thermal Design
Buck inductor rippleΔI = (Vin − Vout) × D ÷ (f × L)Power Electronics: Buck, Boost and Thermal Design
Efficiencyη = Pout ÷ PinPower Electronics: Buck, Boost and Thermal Design
Conduction lossP = I² × RDS(on)Power Electronics: Buck, Boost and Thermal Design
Junction temperatureTJ = TA + P × θJAPower Electronics: Buck, Boost and Thermal Design
PWM average voltageVavg = D × VsupplyDriving Motors and Actuators
Motor back-EMFV = Ke × ωDriving Motors and Actuators

Calculators

Safety

  • Lithium cells can catch fire if shorted, punctured or overcharged. Use protected cells, a proper charger and a fuse, and do not charge unattended.
  • Motors store energy. A stalled motor can draw many times its running current, and the flyback spike when it is switched off can destroy a driver: fuse the supply and add flyback protection.
  • Hot parts. Regulators, MOSFETs and inductors can burn: check the heat before closing an enclosure.
  • Mains. Do not build or open mains-powered supplies unless you are qualified; use a certified adapter.

The other Electronics guides

  • Electronics Fundamentals: The circuit basics every maker needs: Ohm’s law, resistors, capacitors, inductors, diodes, transistors and switches, with worked examples.
  • Analog Circuits and Sensing: Op-amps, comparators and timers, and how to read, amplify and filter sensor signals: thermistors, RTDs, load cells and 4-20 mA loops.
  • Digital Electronics and Microcontrollers: Logic gates, counters and timing, and the hardware around a microcontroller: power, reset, clocks, GPIO, level shifting, the ADC and buses.
  • Design, Testing and Troubleshooting: Reading datasheets, keeping a design quiet, measuring a circuit, finding faults with flowcharts, and complete worked projects.
  • PCB Design and Layout: schematic to layout, stack-up, routing, return paths and design checks.

FAQ

Should I use a linear regulator or a buck converter?

A linear regulator is simple and quiet, but wastes the voltage difference as heat. Above a watt or so of dropped power, or when running from a battery, use a buck converter; see Power Electronics.

How do I pick a motor driver?

Match the supply voltage and the stall current of the motor, with margin, and choose a driver with built-in flyback and current limiting for a first design; the page Driving Motors and Actuators has the details.

Why does my project reset when the motor starts?

The motor’s start-up current pulls the supply down. Use a separate or better-decoupled supply, a bulk capacitor and a flyback diode; see EMC and Noise at Board Level.

References

  • Erickson, R. W. and Maksimović, D., Fundamentals of Power Electronics, 3rd ed., Springer.
  • Battery University, BU-100 to BU-300 series on battery types and charging.
  • Horowitz, P. and Hill, W., The Art of Electronics, 3rd ed., Cambridge University Press.
  • Manufacturer datasheets and application notes for the parts you use: they give the limits, pinouts and example circuits.

Last reviewed: October 2026. Values are typical: check the datasheets of the parts you use, follow the electrical code for mains work, and do not work on live mains equipment unless you are qualified.