How to Choose a Battery for Your Electronics Project

A practical guide to choosing a battery for a portable electronics build: work out the voltage, peak current and runtime your circuit needs, compare alkaline, NiMH, Li-ion, LiPo and lead-acid cells, and size the capacity with worked examples for a sensor node and a small robot.

Written by Projectech10 min readPublished
For Electronics and E&TC students choosing a battery for a portable or battery-powered academic project Topics: Battery Selection, Li-ion, LiPo, Voltage Regulation
Technical illustration of batteries for an electronics project: alkaline cells, a Li-ion 18650 cell and a LiPo pouch beside a circuit board, a motor and a multimeter, on a clean blueprint-style background.
Illustration generated for this guide.
In this guide

How to Choose a Battery for Your Electronics Project

Quick answer: List your circuit's voltage, peak current and required runtime first. Then pick a chemistry that meets all three: alkaline for simple low-drain builds, NiMH for rechargeable AA-size loads, Li-ion 18650 or LiPo for high current and long runtime, and lead-acid only for heavy stationary loads. Size capacity as current × hours, add a 25% margin, and never feed a battery straight into a board that needs a different voltage — use a regulator or a DC-DC converter.

Step What to do
1 Write down voltage, peak current, runtime, size and weight limits
2 Measure the real current draw instead of guessing from a datasheet
3 Pick a chemistry from the comparison table below
4 Match the voltage with series cells, a regulator or a converter
5 Size capacity as current × hours, plus a 25% margin
6 Check the battery can deliver the peak current
7 Add charging, protection and a fuse before you build

Why the battery decides whether your project works

A project can have correct code and a correct circuit and still fail on the bench, because the power source was an afterthought. Too little voltage and the microcontroller resets every time a motor starts. Too little current and a servo stalls, a sensor reads garbage, or a radio module drops its connection. Too little capacity and a demo that must run for an hour dies in twenty minutes. Picking the battery is not shopping; it is the first engineering decision in a portable build, and it is cheap to get right at the start and expensive to fix after the enclosure is printed.

Step 1: Write down what your circuit actually needs

Before looking at any battery, answer five questions about your own build:

  • Voltage: what voltage does each part need? Most Arduino boards accept 7–12 V on the barrel jack or 5 V over USB; an ESP32 board usually takes 5 V over USB and runs its chip at 3.3 V; motors often want 6 V or 12 V.
  • Current: how much current does the whole circuit draw, at its worst moment? Add up every part — microcontroller, sensors, display, radio, motors — and remember that motors draw several times their running current at stall or start-up.
  • Runtime: how long must it run between charges or battery swaps? A 10-minute demo and an all-day exhibition need very different batteries.
  • Size and weight: a handheld device cannot carry a lead-acid battery, and a wheeled robot does not care about 200 extra grams.
  • Rechargeable or disposable: a demo you run once can use alkaline cells; anything you will test fifty times should be rechargeable.

Measure the current rather than guessing it. Power the circuit from a bench supply or a USB power meter, run the motors and the radio at the same time, and note the highest reading. Datasheet maximums are useful, but your measured peak is what the battery must survive.

Step 2: Know the battery types students actually use

Type Nominal voltage per cell Typical capacity Best for Watch out for
Alkaline AA 1.5 V 2,000–3,000 mAh Simple low-drain builds, quick demos Voltage sags under load; single use
Alkaline 9 V block 9 V Around 500 mAh Small 9 V circuits, short demos Very low capacity; poor under motors
NiMH AA 1.2 V 2,000–2,500 mAh Rechargeable AA-size loads Self-discharges in storage; 1.2 V, not 1.5 V
Li-ion 18650 3.7 V 2,500–3,500 mAh Long runtime, moderate to high current Needs a protection board and a proper charger
LiPo pouch 3.7 V per cell Varies by size Robots, drones, high-current loads Needs care: never puncture, short or overcharge
Lead-acid 12 V Several Ah Heavy stationary loads, high current Heavy, bulky, not portable
Coin cell CR2032 3 V Around 220 mAh Tiny loads, real-time-clock backup Only a few milliamps; useless for motors or radios

Capacities above are typical ranges, not guarantees: brand, temperature and age all shift them. A cheap unbranded 18650 that claims 9,900 mAh is not a bargain; it is a false label. Buy cells from a known brand and treat any capacity claim far above the typical range as suspect.

Step 3: Match the voltage

Cells in series add voltage; cells in parallel add capacity. Four AA alkaline cells in series give 4 × 1.5 V = 6 V. Two Li-ion cells in series (2S) give 2 × 3.7 V = 7.4 V nominal, and three in series (3S) give 11.1 V. A Li-ion cell is 4.2 V when full and about 3.0 V when empty, so a 2S pack swings between 8.4 V and 6.0 V — your circuit must tolerate that whole range, not just the nominal figure.

When the battery voltage does not equal the voltage your board needs, convert it:

  • Linear regulator (7805): simple and cheap for 7–12 V down to 5 V, but it burns the extra voltage as heat, so it wastes power on battery builds.
  • Buck converter: steps a higher voltage down efficiently. A 7.4 V or 12 V pack feeding a 5 V board through a buck converter is the standard arrangement for robots.
  • Boost converter: steps a lower voltage up, for example 3.7 V from one Li-ion cell up to 5 V for a USB-powered board.
  • Direct connection: only when the battery voltage sits inside the board's accepted input range for the whole discharge curve. A single Li-ion cell at 3.7 V cannot power a 5 V board directly.

Never mix different chemistries, different capacities or old and new cells in the same series or parallel pack. The weakest cell gets over-discharged or over-charged, and the pack fails early or becomes unsafe.

Step 4: Size the capacity with real numbers

Capacity in milliamp-hours is current multiplied by time:

Capacity (mAh) = current (mA) × runtime (hours)

Then add a 25% margin, because regulators waste power, capacity falls in cold weather, and cells age.

Worked example 1 — a sensor node. An ESP32 sensor node draws 80 mA on average and must run for 12 hours: 80 × 12 = 960 mAh. With the 25% margin that is 960 × 1.25 = 1,200 mAh. A single 18650 cell rated at 2,600 mAh gives 2,600 ÷ 80 = 32.5 hours, comfortably more than the 12 hours needed, so one cell plus a boost converter to 5 V is a good fit.

Worked example 2 — a small robot. Two DC motors draw 1.2 A each at full load and the electronics draw 0.3 A, so the peak draw is 2 × 1.2 + 0.3 = 2.7 A. For a 30-minute demo the charge needed is 2.7 A × 0.5 h = 1.35 Ah, or 1,350 mAh. A 2,200 mAh 3S LiPo gives 2,200 ÷ 2,700 = 0.81 hours, about 49 minutes, at full peak draw — and since the motors rarely run at full load, the real runtime will be longer. The same robot on a 9 V alkaline block would be a bad choice: the block holds only about 500 mAh and cannot supply 2.7 A at all.

Size from peak current, not average current. A robot that averages 0.5 A but peaks at 2.7 A needs a battery and wiring rated for 2.7 A, or the voltage collapses every time the motors start.

Step 5: Check the battery can deliver the current

Capacity is not the same as current capability. A coin cell holds about 220 mAh but can only deliver a few milliamps; an alkaline AA sags badly above roughly 500 mA. High-current packs carry a C-rating: a 2,200 mAh pack rated at 25C can deliver 2.2 × 25 = 55 A continuously, which is the pack's own rating arithmetic, not a measurement. Match the rating to your peak draw with room to spare.

Test under load before you commit. Power the circuit from the chosen battery, run everything at once, and measure the battery voltage with a multimeter. If it drops below the minimum your board accepts, the chemistry or the pack size is wrong, no matter what the label promises.

Step 6: Charging and protection

Rechargeable cells need the right charger. A single Li-ion cell charges from a TP4056-type charger module; a multi-cell pack needs a balance charger that charges each cell to the same voltage. Never charge a Li-ion or LiPo cell from a bare 5 V supply, and never charge a non-rechargeable alkaline cell at all.

Add protection between the battery and the circuit:

  • Protection board or BMS: cuts off on over-charge, over-discharge and short circuit. A single 18650 should sit behind a protection board; a multi-cell pack needs a BMS matched to its series count.
  • Fuse: put a fuse close to the battery on any high-current pack, so a short in the wiring blows the fuse instead of heating the battery.
  • LiPo care: charge on a non-flammable surface, never leave a charging LiPo unattended, store cells at about 3.8 V per cell, and never puncture or short a pouch. If a pouch swells or gets hot, stop using it.

Step 7: Connectors, wiring and fusing

Use connectors rated for your current: JST connectors suit small sensor nodes, XT60 connectors suit robots and anything above a few amps. Check polarity twice before the first power-up — a reversed battery can destroy a board instantly. Use wire thick enough for the peak current, keep battery leads short, add a power switch, and keep a single common ground between the battery, the controller and every module.

8 mistakes students make

  1. Feeding 12 V into a board's 5 V pin instead of its 7–12 V input.
  2. Sizing the battery from average current and ignoring motor stall current.
  3. Trusting the printed mAh on a cheap unbranded cell.
  4. Mixing old and new cells, or different chemistries, in one pack.
  5. Running a LiPo robot with no fuse and no protection board.
  6. Charging a LiPo with a phone charger wired directly to the pack.
  7. Forgetting that battery voltage sags under load and falls as the cell discharges.
  8. Picking a battery before measuring what the circuit actually draws.

Frequently asked questions

Can I power an Arduino from a 9 V battery?
Yes, for a short demo of a low-power circuit. A 9 V block holds only about 500 mAh, the onboard regulator wastes power as heat, and it cannot run motors. For anything beyond a quick test, use a better pack.

How long will my battery last?
Divide capacity by average current: a 2,600 mAh cell feeding an 80 mA load lasts about 32.5 hours in theory. Real runtime is shorter, because converters waste power and capacity falls with temperature and age — that is what the 25% margin is for.

Can I use a power bank instead of a battery pack?
Yes, for 5 V USB-powered projects, and it is often the simplest option. Watch for one quirk: many power banks switch themselves off when the load draws very little current, which can cut power to a sleeping sensor node. Test yours with the real load before the demo.

Li-ion or LiPo — which should I choose?
Li-ion 18650 cells are rugged, cheap per unit of energy, and easy to swap; LiPo pouches are lighter and deliver higher current for their size. Robots and drones usually take LiPo; sensor nodes and handheld builds usually take 18650 cells.

How many 18650 cells do I need?
Series cells set the voltage and parallel cells set the capacity. Two in series give 7.4 V nominal; two in parallel at 3.7 V double the capacity. Decide the voltage first, then add parallel cells if the runtime is short.

Is it safe to leave a LiPo charging overnight?
No. Charge LiPo packs only while you are present, on a non-flammable surface, with a charger made for LiPo cells. Unattended charging is the most common cause of battery fires in student builds.

Limitations

  • Capacities quoted here are typical ranges for common cells; your exact cells will differ by brand, temperature and age, so measure your own runtime.
  • This guide covers selecting a battery, not building a pack: spot-welding cells, building a multi-cell BMS pack and repairing damaged packs are separate skills with their own safety rules.
  • Nothing here replaces your lab's safety rules for lithium batteries; follow your institution's rules on charging, storage and disposal.

Need help with the power side of your project?

If your project needs a battery, a charger or a power supply and you are unsure which combination fits, message us on WhatsApp with your load details (board, motors, sensors, supply voltage), the runtime you need, and your deadline. We will reply with a quotation stating the scope, price, and delivery timeline for the build.

Related reading: How to Use a Multimeter for Circuit Debugging · Voltage Regulator Selection: 7805, Buck and Boost · LiPo Battery Safety Guide · BMS Basics for Battery Packs · more in the Electronics / E&TC branch hub.

More project guides

More in Electronics / E&TC