Skip to content
RoboLearn
Not completed

Powering your robot

ElectronicsBeginner30 minBefore this: Series and parallel circuits, Safety in robotics

What you’ll learn

  • Common battery types and their voltages
  • What mAh means and how to estimate run time
  • Why motors and microcontrollers need careful power wiring

Battery types

Type Voltage per cell Rechargeable Good for
Alkaline AA/AAA 1.5 V No First projects, cheap and safe
NiMH AA 1.2 V Yes Classroom robots, safe and reusable
Li-ion 18650 3.7 V nominal (4.2 V full) Yes Longer run times
LiPo pack 3.7 V per cell (2S = 7.4 V) Yes Drones, fast robots; needs care
9 V block 9 V Some Low-current only; bad for motors
USB power bank 5 V Yes Powering a Raspberry Pi or Arduino

Capacity: mAh

Battery capacity is measured in milliamp-hours (mAh). A 2,000 mAh battery could, in theory, supply 2,000 mA for 1 hour, or 500 mA for 4 hours.

Run time ≈ capacity (mAh) ÷ current draw (mA)

Example: a robot drawing 400 mA from a 2,000 mAh pack → 2,000 ÷ 400 = about 5 hours. In real life expect roughly 60–80% of that, because batteries lose voltage as they drain and motors draw extra when starting.

Motors are power-hungry

  • An LED: ~15 mA. An Arduino: ~50 mA. One small motor: 200 mA–1 A+, and much more when it stalls (is blocked).
  • When motors start, they pull a sudden burst of current. The battery voltage dips, and a microcontroller on the same supply can reset or behave strangely.

The golden rules

  1. Never power motors from a microcontroller’s pins or its 5 V pin. Use a motor driver board and feed it from the battery.
  2. Connect all grounds together (battery −, motor driver GND, Arduino GND). Without a common ground, signals have no reference and nothing works.
  3. Consider separate batteries for motors and logic, or add a capacitor near the motor driver to smooth dips.

Getting the right voltage

  • Arduino UNO: 5 V via USB, or 7–12 V into the barrel jack/VIN (its onboard regulator drops it to 5 V).
  • 3.3 V boards (ESP32, Pico): never feed 5 V into their input pins.
  • Voltage regulators / buck converters: small boards that step a higher voltage (e.g. 7.4 V) down to 5 V efficiently.

A typical beginner robot power plan

6× AA (≈9 V) ──┬──▶ Motor driver (VM) ──▶ 2 DC motors
│
└──▶ Arduino VIN (regulated to 5 V on board)
GND ───────────── all GNDs joined ──────────────

Finished this lesson?