How-to · Intermediate · 3 min read
Power Planning for Robots
By Geekobot Learning Team · Updated 24 Oct 2026
On this page
List every load with its normal and stall current, then pick a battery that can supply the total peak and last long enough. Give motors and servos their own supply or regulator, power the microcontroller from a separate buck converter or LDO, and join all grounds. Add a big capacitor at the motor driver, a fuse and a switch. Most random resets in robots are brownouts when motors start.
Key specs at a glance
- Common batteries
- 2S Li-ion 18650 (7.4 V), 2S or 3S LiPo, 6 x AA NiMH (7.2 V)
- Avoid
- 9 V PP3 batteries for motors (too little current)
- Logic supply
- Buck converter or LDO to 5 V or 3.3 V
- Servos
- 5 to 6 V BEC/UBEC sized for total stall current
- Bulk capacitor
- 470 to 1000 µF at the motor driver
- Run time
- Capacity × 0.8 ÷ average current
A shorted, over-charged or damaged lithium cell can get very hot and catch fire. Use a protection board or BMS, never short the terminals, charge on a non-flammable surface and do not leave a charging pack alone. Throw away cells that are swollen or dented.
Make a power budget
| Load | Typical running | Peak or stall |
|---|---|---|
| ESP32 with Wi-Fi | 80 to 250 mA | About 500 mA pulses |
| Arduino Uno | About 50 mA | About 50 mA |
| TT gear motor (each) | 150 to 250 mA | About 1 A or more at stall |
| SG90 servo (each) | 100 to 250 mA moving | About 650 mA to 1 A at stall |
| MG996R servo (each) | 500 mA to 1 A | About 2.5 A at stall |
| HC-SR04, small sensors | Under 20 mA each | Under 20 mA |
- ESP32 with Wi-Fi
- Typical running:
- 80 to 250 mA
- Peak or stall:
- About 500 mA pulses
- Arduino Uno
- Typical running:
- About 50 mA
- Peak or stall:
- About 50 mA
- TT gear motor (each)
- Typical running:
- 150 to 250 mA
- Peak or stall:
- About 1 A or more at stall
- SG90 servo (each)
- Typical running:
- 100 to 250 mA moving
- Peak or stall:
- About 650 mA to 1 A at stall
- MG996R servo (each)
- Typical running:
- 500 mA to 1 A
- Peak or stall:
- About 2.5 A at stall
- HC-SR04, small sensors
- Typical running:
- Under 20 mA each
- Peak or stall:
- Under 20 mA
A reliable power layout
- 1Battery to a main switch and a fuse.
- 2Motor branch: battery to the motor driver directly. Remember an L298N drops about 2 V, so 7.4 V becomes about 5.4 V at the motors.
- 3Servo branch: a 5 or 6 V BEC or buck converter rated for the total stall current of all servos that may move at once.
- 4Logic branch: a separate small buck or LDO for the microcontroller and sensors.
- 5Common ground between all branches, joined at one point near the battery if possible.
- 6Capacitors: 470 to 1000 µF at the motor driver and servo rail, 100 nF at each chip.
Choosing the battery and run time
For small 2WD and 4WD robots, a 2S 18650 Li-ion pack with a BMS is a good balance of capacity, current and safety. LiPo packs deliver more current for fast robots and drones but need careful charging. Six AA NiMH cells are safe for classrooms. Avoid 9 V PP3 batteries: they cannot supply motor current.
Run time ≈ capacity (mAh) × 0.8 ÷ average current (mA). A 2000 mAh pack driving an average of 600 mA gives about 2.7 hours. Use the battery life calculator and see lithium batteries.
Try it: Battery life calculator
Change the values and the diagram and results update as you type.
Plan the power system for a 2WD robot
You need: 2S 18650 pack with BMS, Fuse and switch, Buck converter, 470 µF capacitor · Tools: Datasheets or listings for each part, Multimeter
Get the parts3 of 4 found in our store · ₹140
2S 18650 pack with BMSLi-ion Protection Board with Balancing₹65- Fuse and switchFind this part
Buck converterLM2596 Adjustable Buck Converter Module₹59
470 µF capacitorElectrolytic Capacitor₹16
- 1List loadsWrite each part's running and stall current.
- 2Add up peaksSum the worst case of all parts that can run at once and add 30% margin.
- 3Pick the batteryChoose a pack that can supply the peak and gives the run time you want.
- 4Split the suppliesFeed motors from the battery and logic from a separate regulator, with grounds joined.
- 5Protect and testAdd a fuse, switch and bulk capacitor, then watch the logic voltage with a multimeter while motors start.
Common mistakes to avoid
- Powering servos from the Arduino 5 V pin.
- Using a 9 V PP3 battery for motors.
- Forgetting the motor driver's voltage drop.
- No common ground between supplies.
- No fuse on a lithium pack.
Frequently asked questions
Why does my robot reset when the motors start?
The motors pull the supply voltage down (a brownout). Use separate supplies or regulators, add a big capacitor and check the battery's current rating.
What battery is best for an Arduino robot car?
A 2S 18650 Li-ion pack with a BMS, or six AA NiMH cells for classrooms. Avoid 9 V PP3 batteries.
Can I power servos from Arduino?
Only one small, lightly loaded servo for testing. Use a separate 5 to 6 V supply rated for the servos' stall current.
How long will my robot battery last?
Roughly capacity in mAh × 0.8 ÷ average current in mA, in hours.
Do I need a fuse on a small robot?
Yes with lithium batteries, which can deliver very high current into a short.
Parts for this guide
- ₹59View
Calculators
Terms in this guide
Keep learning
Sources
- Motor and servo manufacturer current data
- Texas Instruments LM2596 datasheet
- Li-ion cell manufacturer discharge data
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.
