Sub topic 2
Alkaline, NiMH, and lithium-ion batteries compared
This chapter assumes you know Ohm's law, can build a simple breadboard circuit, and can upload an Arduino sketch. It also assumes you have read the refresher on voltage, current, and power. Here you will compare the three battery chemistries you are most likely to use in an Arduino-style project: alkaline, nickel-metal hydride (NiMH), and lithium-ion or lithium-polymer (Li-ion/LiPo).
Why chemistry matters
A battery's chemistry sets its voltage, how that voltage changes as the battery empties, how much current it can supply, whether you can recharge it, and what can go wrong. Choosing a chemistry first narrows your options for the regulator and for the board input. So this choice comes before almost every other power decision.
The three chemistries at a glance
| Property | Alkaline (AA) | NiMH (AA) | Li-ion / LiPo (single cell) |
|---|---|---|---|
| Fresh or full voltage | about 1.5 V (up to about 1.6 V) | about 1.4 V right after charging | 4.2 V |
| Nominal voltage | 1.5 V | 1.2 V | 3.7 V (3.6 V for some cells) |
| Empty voltage | about 0.8 to 1.0 V | about 1.0 V | about 3.0 V (protection circuits often cut off near 2.5 to 3.0 V) |
| Typical capacity | 1800 to 3000 mAh at low current | 1900 to 2800 mAh | 500 to 3500 mAh (depends on cell size) |
| Rechargeable | No | Yes, hundreds of cycles | Yes, hundreds of cycles |
| Peak current | Low to moderate; capacity drops at high current | High | High to very high, depending on cell |
| Self-discharge | Very low (a few percent per year) | Standard cells lose roughly 15 to 30 percent per month; low-self-discharge cells lose far less | Low (a few percent per month) |
| Main hazard | Leakage when left in a dead device | Mild | Fire if overcharged, shorted, or damaged |
Treat the numbers as typical values. Always check the datasheet for the exact cell you buy.
Alkaline
Alkaline cells are cheap, available everywhere, and hold a charge on the shelf for years. They are a good choice for a project that you build once, run at low current, and forget about.
Their weak points show up under load:
- Voltage falls steadily as the cell discharges. There is no flat plateau. A cell near 1.5 V when fresh may sit near 1.2 V when half used.
- Usable capacity depends on the current you draw. A cell rated near 2500 mAh at a few milliamps may deliver far less if you pull several hundred milliamps.
- Internal resistance is relatively high and rises as the cell empties, so voltage sags under bursts of current. The next chapters cover this effect.
- A fully drained cell can leak corrosive electrolyte. Remove alkaline cells from projects you will store.
Do not try to recharge standard alkaline cells. They can leak or rupture.
NiMH
NiMH cells are the usual rechargeable replacement for AA and AAA alkaline cells. Their voltage is lower, at 1.2 V nominal, and it stays fairly flat for most of the discharge before dropping off sharply at the end. That flat curve is good for steady output, but it makes the remaining charge hard to judge by measuring voltage alone.
Points to keep in mind:
- A pack of four NiMH cells in series gives 4.8 V nominal, and about 5.6 V right after charging. Four alkaline cells give 6.0 V nominal and about 6.4 V fresh. The pack voltage you get from the same holder differs by chemistry.
- Standard NiMH cells self-discharge noticeably. A pack charged and left on a shelf for a few months may be nearly flat. Low-self-discharge (LSD) types, such as those sold as "pre-charged", keep most of their charge for a year or more, and they suit projects that sit idle.
- NiMH cells tolerate being used in the same series string as long as the cells match. Mixing old and new cells, or different brands, lets the weakest cell be driven too far.
- Use a charger designed for NiMH. It detects the end of charge by a small voltage drop or a temperature change. A charger for lithium cells is not suitable.
Lithium-ion and LiPo
Lithium-ion and lithium-polymer cells have the highest energy density of the three. A single cell is 3.7 V nominal, so one cell often replaces three AA cells. They also supply high current and come in thin, flat shapes that fit small enclosures. Hobby projects commonly use LiPo pouch cells with a two-wire JST connector, or cylindrical 18650 cells.
The difference between the terms matters less for a hobbyist than the handling rules. Both use the same voltage range, and both are charged with the same method. In this tutorial, "Li-ion/LiPo" means a single-cell battery with a 4.2 V full-charge voltage.
The trade-off is care:
- The voltage must stay in a window of about 3.0 V to 4.2 V. Charging above 4.2 V or discharging far below about 3.0 V damages the cell and can make it unsafe.
- Charging uses a constant-current then constant-voltage method. Use a dedicated charge module (such as one built around the TP4056 chip) instead of a bench supply set by hand.
- Bare cells do not protect themselves. Buy cells or packs that include a protection circuit, or add a protection board. The later chapter on battery safety explains what that circuit does.
- A 3.7 V cell is below 5 V, and the cell voltage falls from 4.2 V to about 3.0 V while in use. That range often sits partly below what a 5 V board needs. You usually need a regulator or boost converter, which later chapters cover.
How the discharge curves differ
The voltage of each chemistry changes over the discharge in a different way. This shapes how you regulate it and how you estimate remaining charge.
A steady slope, as with alkaline, lets you estimate the charge left from the voltage, but not precisely. A flat curve, as with NiMH, means the voltage tells you little until the cell is almost empty. Li-ion falls between the two. A voltage reading gives a rough indication of charge, with a few caveats, because the reading also depends on the current being drawn and on temperature. A later chapter shows how to read the battery voltage in a sketch.
Matching voltage to a board
The pack voltage determines whether a board can use the battery directly. The table shows common combinations and the issue each one raises.
| Pack | Voltage range in use | Common issue |
|---|---|---|
| 2 x alkaline AA | about 3.2 V down to 1.8 V | Often too low for a 5 V board, and marginal even for 3.3 V late in life |
| 3 x alkaline AA | about 4.8 V down to 2.7 V | Falls below 5 V quickly; needs a boost or a low-dropout regulator |
| 4 x alkaline AA | about 6.4 V down to 3.6 V | Usable with a regulator for most of its life |
| 4 x NiMH AA | about 5.6 V down to 4.0 V | Close to 5 V, so a regulator with low dropout works well |
| 1 x Li-ion/LiPo | 4.2 V down to 3.0 V | Suits 3.3 V boards with a low-dropout regulator; needs boost for 5 V |
| 2 x Li-ion in series | 8.4 V down to 6.0 V | Needs a buck or linear regulator; needs balancing and protection |
The range of voltage over the discharge is what drives the regulator choice you will make later. A regulator that holds 5 V from a 9 V battery will not work on a pack that starts at 4.2 V.
Choosing a chemistry
Use these questions to narrow the choice:
- Will the project be recharged? If not, alkaline is cheapest and holds charge in storage. If so, choose NiMH or Li-ion/LiPo.
- How much space and weight can you spend? Li-ion packs deliver the most energy per volume and per gram.
- How much current do you need at peak? Motors, radios, and servos pull short bursts. NiMH and Li-ion handle bursts better than alkaline.
- Will the device sit idle for months? Choose alkaline or an LSD NiMH cell. Avoid standard NiMH.
- Can you accept the handling rules? Li-ion needs a proper charger and protection. If the project will be handled by children or left unattended, NiMH or alkaline is the lower-risk choice.
Common errors
- Assuming a "9 V" battery is the same as six AA cells. A 9 V alkaline block holds only about 400 to 600 mAh and has high internal resistance. It suits very light loads, and it usually performs poorly for a project that draws hundreds of milliamps.
- Comparing mAh across different voltages. A 2000 mAh Li-ion cell at 3.7 V stores more energy than a 2000 mAh NiMH cell at 1.2 V. Compare energy in watt-hours, which is capacity in amp-hours times nominal voltage. For example, 2.0 Ah × 3.7 V is 7.4 Wh, while 2.0 Ah × 1.2 V is 2.4 Wh.
- Using a lithium charger on NiMH, or the reverse. The charge methods differ, and the wrong one can overcharge the cell.
- Treating "LiPo" as safer than Li-ion. Both can fail dangerously if overcharged, punctured, or shorted.
- Mixing cells in a series pack. Combining different chemistries, ages, or charge levels lets the weakest cell be driven too low.
Energy comparison in code
The sketch below is not needed on a board. This Python script computes the stored energy for the example cells, so you can compare chemistries on a common footing.
def energy_wh(capacity_mah, nominal_v):
"""Stored energy in watt-hours from capacity and nominal voltage."""
return capacity_mah / 1000.0 * nominal_v
cells = {
"Alkaline AA": (2500, 1.5),
"NiMH AA": (2000, 1.2),
"LiPo pouch": (2000, 3.7),
}
for name, (mah, volts) in cells.items():
print(f"{name}: {energy_wh(mah, volts):.2f} Wh")Running it prints 3.75 Wh for the alkaline cell, 2.40 Wh for the NiMH cell, and 7.40 Wh for the LiPo cell. The alkaline figure holds only at light load, and it falls when the current is high.
Exercise
You plan to power a 3.3 V sensor board from four AA cells. Compare the pack voltage range if you use alkaline cells and if you use NiMH cells, then say which chemistry holds its voltage more steadily for most of the discharge.
Show answer
Four alkaline cells start near 6.4 V and fall toward about 3.6 V as they empty, which is a steady slope across the whole discharge. Four NiMH cells start near 5.6 V after charging, then sit near 4.8 V for most of the discharge and drop sharply near the end, with an empty point around 4.0 V. NiMH holds its voltage more steadily. Either pack still needs a regulator for a 3.3 V board, since both stay above 3.3 V for most of their life.
Exercise
A 1500 mAh LiPo cell (3.7 V nominal) and a 2400 mAh NiMH AA cell (1.2 V nominal) are offered for the same project. Which stores more energy, and by how much?
Show answer
The LiPo cell stores 1.5 Ah × 3.7 V = 5.55 Wh. The NiMH cell stores 2.4 Ah × 1.2 V = 2.88 Wh. The LiPo cell stores about 2.7 Wh more, nearly twice as much, even though its mAh figure is lower.