Circuit 3D

Lithium batteries

A lithium-ion battery is a rechargeable cell that gives 3.6 to 3.7 V, about two and a half times an alkaline AA, charging to 4.2 V full and running down to about 3.0 V. It is charged with constant current, then constant voltage, as a TP4056 does at up to 1 A.

Icharge = 1,200 V ÷ RPROG

the TP4056 datasheet’s rule for its charge current, set by the resistor on its PROG pin: 1.2 kΩ gives 1 A.

Use protected cells or modules, a charger made for lithium, and never open, crush or short a cell.

What is a lithium-ion battery?

A lithium-ion battery is a rechargeable cell that moves lithium ions between its electrodes as it charges and discharges, giving about 3.7 V per cell, two and a half times an alkaline AA.

That voltage, and the energy it packs for its weight, is why phones, laptops, power tools and electric cars use it. Figure 1 compares the common kinds with an AA; each runs between an empty and a full voltage it must stay within.

18650 LiPo LiFePO4 AA 0 V1 V2 V3 V4 V

18650 lithium-ion: 3.7 V nominal, 4.2 V full and about 3 V empty; a steel can 18 mm across and 65 mm long, typically 2,000 to 3,500 mAh.

Figure 1. Each cell’s working range, from empty to full, with a tick at its nominal voltage. Typical values; check the datasheet for a particular cell.

What voltage is a lithium battery?

A lithium-ion cell is 3.6 to 3.7 V nominal, 4.2 V when full and about 3.0 V when empty, so packs add cells in series: two make 7.4 V and three 11.1 V.

The nominal voltage is the average across a discharge, the one printed on the label. Cells in series must be matched and balanced, as batteries in series and parallel shows. Lithium iron phosphate, LiFePO4, runs lower, at 3.2 V.

What is an 18650 battery?

An 18650 is a cylindrical lithium-ion cell 18 mm across and 65 mm long, holding about 2,000 to 3,500 mAh at 3.7 V, the cell inside many laptop packs, flashlights and power banks.

A protected 18650 has a small circuit under its top cap, making it a few millimeters longer, that cuts it off if it is overcharged, run flat or shorted. Buy cells from a known maker: fakes often claim far more capacity than they hold.

What is the difference between Li-ion and LiPo?

A LiPo, or lithium-ion polymer cell, uses the same chemistry and voltages as a Li-ion cell but comes in a flat foil pouch instead of a metal can, so it is lighter and any shape but easier to puncture.

Drones and thin devices use LiPo; packs are labeled by cells in series, so 3S means 11.1 V. A puffed-up pouch is a damaged cell: stop using it and take it to a battery recycling point.

How do you charge a lithium battery?

To charge a lithium battery, use a charger made for lithium, which pushes a constant current until the cell reaches 4.2 V, then holds that voltage while the current tapers off.

The TP4056 is the common single-cell charger chip, as Figure 2 shows: it charges at up to 1 A from a 5 V USB supply, which a wall adapter gives from 120 V or 230 V mains, or a small solar panel through a regulator. Never charge below 0 °C, and charge on something that cannot burn.

4.2 V 1 A voltage current constant current constant voltage

Switchover, 4.2 V and 1 A: the cell reaches 4.2 V, its full voltage, so the charger switches from constant current to constant voltage.

Figure 2. The shape of one lithium-ion cell’s charge from a TP4056 set to 1 A: constant current, then constant voltage at 4.2 V. How long it takes depends on the cell’s capacity.

What is a battery management system?

A battery management system, or BMS, is a circuit that switches a lithium pack off before it is overcharged, run too flat, overloaded or shorted, and in a multi-cell pack keeps the cells balanced.

Many TP4056 modules add a DW01A protection chip and two MOSFETs, cutting off at about 4.3 V and 2.4 V. Larger packs use a BMS rated for their number of cells in series and their current. Never use a lithium cell or pack with no protection at all.

How does a power bank work?

A power bank works by storing energy in lithium-ion cells at 3.7 V and using a boost converter to raise it to USB’s 5 V, with a charger and a protection circuit in the same box.

To build one, use a ready-made power bank module, which combines all three, with protected cells. Its rating is at the cells’ 3.7 V, so it gives less at 5 V, as Example 2 works out. Leads carrying 1 to 2 A want 22 AWG, 0.33 mm², or thicker.

Are lithium batteries safe?

Lithium batteries are safe when they are protected, charged correctly and undamaged, but a short, overcharge, puncture or flaw can heat a cell until it vents and burns, which water does not easily put out.

Never open, crush, pierce or short a cell; charge only with a lithium charger and a BMS; and keep cells away from heat. Learning circuits is safest on small batteries such as AAs, as in how to make a battery.

How do you work out a charge current and a power bank’s capacity?

Divide 1,200 V by a TP4056’s PROG resistor for its charge current, and multiply a power bank’s milliamp-hours by 3.7 V for its energy, then convert to 5 V.

Example 1: setting a TP4056’s charge current

A TP4056 module has 1.2 kΩ on its PROG pin. What current does it charge at?

Given
a TP4056 with 1.2 kΩ from its PROG pin to ground
Find
the current it charges at
Solution
I = 1,200 V ÷ RPROG = 1,200 ÷ 1,200 Ω = 1 A
Answer
I = 1,000 mA, the most it can give

Example 2: what a power bank really holds

A power bank is rated 10,000 mAh. How much energy is that, and how many milliamp-hours can it deliver to a phone at 5 V?

Given
a power bank rated 10,000 mAh at its cells’ 3.7 V, boosting to 5 V at about 85% efficiency
Find
its energy, and the milliamp-hours it can deliver at 5 V
Solution
Energy = 10,000 mAh × 3.7 V = 37 WhAt 5 V: 10,000 × 3.7 ÷ 5 × 0.85 = 6,290 mAh
Answer
37 Wh, giving about 6,290 mAh at 5 V

Summary

Key equations

  • Icharge = 1,200 V ÷ RPROG a TP4056’s current
  • Wh = mAh × V ÷ 1,000 a battery’s energy
  • mAh5 V = mAh × 3.7 ÷ 5 × efficiency a power bank’s output

Key terms

Li-ion
A rechargeable lithium cell, 3.7 V.
LiPo
Lithium-ion in a flat pouch.
CC/CV
Constant current, then constant voltage.
BMS
Electronics that protect the cells.

Practice problems

  1. What voltage is a fully charged lithium-ion cell?

  2. A TP4056 has 2 kΩ on its PROG pin. About what current does it charge at?

  3. What does a battery management system do?

  4. Is a LiPo a lithium-ion battery?

  5. A 10,000 mAh power bank boosts its 3.7 V to 5 V at 85% efficiency. About how many mAh can it give at 5 V?

FAQ

Can I charge an 18650 with a TP4056?

Yes, one cell at a time: a TP4056 charges a single lithium-ion cell to 4.2 V at up to 1 A. Use a module with protection or a protected cell, and stay nearby while it charges.

Why do lithium batteries catch fire?

A short, overcharge, puncture or manufacturing flaw can heat a cell until it vents and burns, a thermal runaway. Protection circuits, the right charger and undamaged cells prevent nearly all of it.

How does a battery charger work?

It controls the current and voltage the battery gets: for lithium, a constant current until 4.2 V, then a constant 4.2 V until the current falls low, then it stops.

Can you take a power bank on a plane?

In carry-on bags, generally yes up to 100 Wh without the airline’s approval, but never in checked bags. A 10,000 mAh power bank at 3.7 V holds 37 Wh.

How long does a lithium-ion battery last?

Typically a few hundred to over a thousand full charges before it falls to about 80% of its capacity; heat, full charges and deep discharges wear it faster.