Many electronics projects need to run without a USB cable—outdoor weather stations, portable robots, wearable devices, and remote IoT sensors all need battery power. Choosing the right battery and regulator is critical for reliability and safety.
| Battery | Voltage | Capacity | Rechargeable | Best For | |---------|---------|----------|-------------|----------| | AA Alkaline | 1.5V | ~2500 mAh | No | Low-power remote sensors | | 9V Block | 9V | ~500 mAh | No | Quick Arduino prototyping | | 18650 Li-ion | 3.7V (nom.) | 2000–3500 mAh | Yes | ESP32, robots, IoT | | LiPo Pouch | 3.7V (nom.) | 500–5000 mAh | Yes | Drones, wearables | | CR2032 Coin Cell | 3V | ~220 mAh | No | ATtiny85, BLE beacons |
Most microcontrollers need a specific voltage (5V for Arduino Uno, 3.3V for ESP32). Batteries rarely provide exactly the right voltage, so you need a voltage regulator.
Simple and cheap. They drop excess voltage as heat. Efficient only when input voltage is close to output voltage. Example: 5V input → 3.3V output (good). 12V input → 3.3V output (wasteful, gets hot).
Much more efficient (85–95%). A buck converter steps voltage down (e.g., 12V → 5V). A boost converter steps voltage up (e.g., 3.7V → 5V). Use these for battery-powered projects.
Runtime (hours) = Battery Capacity (mAh) / Average Current Draw (mA)
Example: ESP32 with DHT22 sensor drawing 80 mA average, powered by a 3000 mAh 18650 cell:
To extend runtime:
| Project | Battery | Regulator | Expected Runtime | |---------|---------|-----------|-----------------| | Arduino robot | 4× AA (6V) | LM7805 to 5V | 4–6 hours | | ESP32 weather station | 18650 + solar | TP4056 charger + boost | Indefinite (solar) | | Wearable sensor | LiPo 500 mAh | AMS1117-3.3 | 8–12 hours | | ATtiny beacon | CR2032 | None (direct 3V) | 6+ months |
Browse our IoT Project Kits which include battery-powered designs.
Explore our collection of DIY kits and components. All project components mentioned in this guide are available in our store.
Browse All Projects