← Journal Hardware · · 6 min

Li-ion charging circuit design for small devices

How to design a Li-ion charging circuit for a one-cell device: CC/CV stages, linear vs switching, power path, temperature limits and bench tests.

Milo Perović
Founder & lead engineer

  • Battery
  • Power
  • USB-C
Li-ion charging circuit design for small devices

Most small connected devices end up with a single lithium-ion or lithium-polymer cell and a USB socket, and the Li-ion charging circuit between them gets far less attention than the radio or the sensors. It is usually a reference schematic copied from a charger datasheet, and it usually works on the bench at room temperature. The problems show up later: a device that will not charge in a cold van, a charger IC too hot to touch, or a product that cannot run while it is plugged in.

This post is for founders and engineers specifying a battery-powered product with one cell. It covers what the charger actually has to do, how to choose between linear and switching parts, and the details we check before a board goes to layout.

What a Li-ion charging circuit has to do

A single Li-ion cell is charged with a constant-current, constant-voltage (CC/CV) profile. The charger pushes a fixed current until the cell reaches its charge voltage, holds that voltage while the current tapers, and stops when the current falls below a termination threshold. In practice there are four stages to get right:

  • Pre-charge. A deeply discharged cell, typically below about 2.8–3.0 V, is charged at a reduced current (often around C/10) until it recovers.
  • Constant current. The main phase. Most consumer cells specify a standard charge rate around 0.5C, with 1C as a maximum. A 500 mAh cell therefore wants roughly 250 mA, not the 1 A your USB port could supply.
  • Constant voltage. For most cobalt and NMC chemistries the regulation voltage is 4.20 V, and good charger ICs hold it to within about ±0.5–1%. Some cells are rated to 4.35 V or higher; check the cell datasheet rather than assuming.
  • Termination. Charging stops when current falls to a set fraction of the fast-charge current, commonly C/10 to C/20. The charger then restarts if the cell voltage sags below a recharge threshold.

Getting the regulation voltage wrong by a few percent is not a rounding error. Overcharging shortens cycle life sharply and raises safety risk; undercharging by 100 mV costs a noticeable slice of capacity. Use a dedicated charger IC with a factory-trimmed voltage and do not try to build CC/CV from a microcontroller and a MOSFET.

Linear or switching charger

This is the first real decision, and it comes down to heat. A linear charger drops the difference between input and battery voltage across a pass transistor. With 5 V in, a cell at 3.6 V and 500 mA of charge current, that is about 0.7 W dissipated in a small package on a small board inside a closed enclosure.

Linear chargerSwitching charger
Typical current rangeUp to roughly 0.5–1 A1 A and well beyond
EfficiencyRoughly Vbat/VinTypically 85–92%
Parts and areaVery few, tinyInductor plus more passives
EMC riskLowNeeds careful layout
CostLowestHigher

Our rule of thumb: below about 300–500 mA of charge current, a linear part such as the Microchip MCP73831 is hard to beat for simplicity. Above that, or in a sealed enclosure with little thermal mass, a switching charger like TI’s BQ25895 family earns its extra inductor. Most charger ICs include thermal regulation that cuts current when the die gets hot, which protects the part but quietly stretches charge time. If a datasheet charge time matters to your product, measure it in the enclosure, not on an open bench.

Power path: running while charging

The simplest chargers connect the system load directly to the battery. That causes two problems. First, the charger cannot tell the difference between current going into the cell and current going to your radio, so termination can be late or never happen. Second, a device with a completely flat cell cannot boot until the cell has recovered, even with USB plugged in.

A charger with power-path management (TI’s BQ2407x linear family is a common example) feeds the system from the input when it is present and charges the cell with whatever is left. The device boots instantly from USB and termination works properly. For any product that is used while plugged in, such as a desk unit, a gateway or a wearable on a charging dock, we treat power path as a requirement rather than a nice-to-have. The input side matters too; we covered sink negotiation and protection in USB-C power input design for small devices.

Temperature is the part people skip

Standard Li-ion cells must not be charged below 0 °C: lithium plating on the anode at low temperature permanently damages the cell and can create internal shorts. Most cell datasheets give a charging range of roughly 0–45 °C, narrower than the discharge range. Many chargers support the JEITA profile, which reduces charge current in the cool band (roughly 0–10 °C) and lowers the charge voltage in the warm band (roughly 45–60 °C) instead of simply switching off.

All of this depends on the charger knowing the cell temperature. That means:

  1. Using a cell or pack with an NTC thermistor (10 kΩ is the usual value), or placing one on the board in contact with the cell.
  2. Matching the thermistor’s B value and the charger’s bias network so the temperature thresholds actually land where you think. A wrong resistor here silently shifts every limit.
  3. Keeping the thermistor away from the charger IC and the regulator, so it measures the cell, not the hottest part on the board.

Never tie the TS or NTC pin to a fixed resistor to “make charging work”. It removes the one safeguard that matters most in an outdoor product.

Protection is not the charger’s job

The charger controls charging. It does not protect the cell from everything else: a short on the system rail, a firmware bug that leaves the radio on until the cell is flat, or a faulty charger. That is the job of a separate protection circuit, typically a protection IC driving a pair of back-to-back MOSFETs (the DW01-style IC with a dual FET is the classic arrangement). It disconnects the cell on overcharge, overdischarge, overcurrent and short circuit.

Many pouch cells come with this board already fitted, but not all. Confirm it from the cell datasheet, check the overdischarge threshold (often around 2.4–3.0 V), and decide whether your firmware should shut down earlier so the cell is never pulled that low. A cell that sits in a warehouse at its protection cut-off is a cell that may not recover.

Verifying the charger on the bench

A charger that works once is not verified. Before we sign off a charging design we run a short set of tests with a bench supply, an electronic load or a source-measure unit, and a thermal chamber or at least a fridge and a hot box:

  • A full charge curve logged from flat to termination, checking pre-charge, fast-charge current, regulation voltage and termination current against the design values.
  • Charging inside the closed enclosure at the top of the expected ambient range, logging charger IC temperature and total charge time.
  • Cold and hot charging attempts outside the allowed window, confirming the charger refuses or derates as intended.
  • Plug, unplug and brownout cycles with the system under its worst-case load, to catch power-path glitches and resets.
  • Behaviour from a weak USB source or a long cable, where the input voltage sags under load.

These results feed directly into runtime estimates; our notes on battery life testing that predicts real field runtime cover the discharge side.

A checklist before you commit

  • Charge current set from the cell datasheet’s standard rate, not the USB budget.
  • Regulation voltage matches the cell chemistry exactly.
  • Linear or switching chosen from a dissipation calculation in the real enclosure.
  • Power path included if the device runs while plugged in.
  • NTC fitted, positioned on the cell and biased for the right thresholds.
  • Separate cell protection confirmed, with firmware shutdown above its cut-off.
  • Charge curve, hot and cold behaviour and plug cycling tested before layout is frozen.
Working on something similar?Free scoping call →