TecnoMate logo
Battery Power for Electronics Projects: Complete Guide
Back to Guides
Power SupplyBatteriesIoT

Battery Power for Electronics Projects: Complete Guide

Feb 17, 2026
7 min read

Battery Power for Electronics Projects

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 Types Compared

| 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 |

Voltage Regulation

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.

Linear Regulators (e.g., AMS1117, LM7805)

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).

Switching Regulators (Buck/Boost Converters)

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.

When to Use Which

  • Battery close to target voltage: Linear regulator (simpler, less noise)
  • Battery much higher than target: Buck converter (efficient)
  • Battery lower than target: Boost converter (e.g., single Li-ion 3.7V → 5V for Arduino)

Calculating Battery Runtime

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:

  • Runtime = 3000 / 80 = 37.5 hours

To extend runtime:

  • Use deep sleep mode (ESP32 draws only 10 µA in deep sleep)
  • Wake up every 5 minutes, read sensor, send data, go back to sleep
  • With 10-second wake time every 5 minutes: effective average current drops to ~3 mA
  • New runtime = 3000 / 3 = ~1000 hours (41 days)

Safety Tips

  • Never short-circuit lithium batteries — they can catch fire or explode
  • Use a Battery Management System (BMS) for Li-ion/LiPo batteries to prevent over-discharge and overcharge
  • Store batteries at 50% charge for long-term storage
  • Use proper connectors (JST-PH for LiPo, battery holders for AA/18650)
  • Add a fuse or polyfuse for safety in high-current applications

Recommended Setup for Common Projects

| 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.


Ready to start building?

Explore our collection of DIY kits and components. All project components mentioned in this guide are available in our store.

Browse All Projects