TExcelTAD
Home › Power Electronics & Motor Drives › Battery Chargers: CC/CV Charging and BMS Overview

Battery Chargers: CC/CV Charging and BMS Overview

A cordless tool's pack has four lithium-ion cells in series. Charged a little too far, a cell loses life quickly and, far enough, can vent and burn; charged too fast when cold, it plates lithium metal on its anode and may short internally weeks later. The charger that prevents this is an ordinary buck converter (The Buck Converter), but with two control loops, one for current and one for voltage, and with a battery management system (BMS) that watches every cell. This lesson designs the charger's power stage and control from the chemistry's rules, simulates a charge on a cell model, and outlines what a BMS measures and decides.

Safety: lithium-cell charging is calculation and simulation only in this course. Never connect a lithium cell or pack to a bench supply or a home-made charger, and never charge a damaged, swollen or deeply discharged cell. Lead-acid and NiMH charging are also left to commercial chargers here. The bench part of this lesson uses a bench supply's own CC/CV behaviour into power resistors.

The charging rules

Chemistry Charge method Voltage limit per cell End of charge
Li-ion (NMC, NCA, LCO) precharge, CC, CV 4.20 V4.20\ \text{V} typical (some cells 4.354.35 or 4.40 V4.40\ \text{V}, from the datasheet) current falls to C/10C/10 to C/20C/20 in CV, or a timer
LiFePO4_4 CC, CV 3.603.60 to 3.65 V3.65\ \text{V} as Li-ion
lead-acid bulk (CC), absorption (CV), float absorption 2.402.40 to 2.45 V2.45\ \text{V}, float 2.252.25 to 2.30 V2.30\ \text{V} at 25 ∘C25\,^\circ\text{C}, about −3-3 to −5 mV/K-5\ \text{mV/K} per cell stays on float
NiMH CC none fixed small voltage drop (−ΔV-\Delta V) or temperature slope dT/dtdT/dt, plus a timer

The current is written in units of capacity: 1C1C charges a 3.0 Ah3.0\ \text{Ah} cell at 3.0 A3.0\ \text{A}. Lithium-ion cells are commonly charged at 0.5C0.5C to 1C1C (fast-charge cells more), with a precharge at about C/10C/10 while a cell is below about 3.0 V3.0\ \text{V}, at full rate only between about 1010 and 45 ∘C45\,^\circ\text{C}: the "JEITA" temperature profile of Japanese battery guidelines reduces the current between 00 and 10 ∘C10\,^\circ\text{C}, lowers the charge voltage (to about 4.10 V4.10\ \text{V}) between 4545 and 60 ∘C60\,^\circ\text{C}, and stops charging outside 00 to 60 ∘C60\,^\circ\text{C}; the cell datasheet sets the actual limits. Safety and transport standards for lithium cells and packs include IEC 62133-2:2017 with Amendment 1:2021 (portable products; a second edition was in its final stages as of 2026-11), IEC 62619:2022 (industrial batteries) and sub-section 38.3 of the UN Manual of Tests and Criteria (Rev. 8, 2023, with Amendment 1, 2025; transport).

The voltage limit has to be held tightly. A 0.5 %0.5\ \% setpoint error on a 16.8 V16.8\ \text{V} four-cell pack is 84 mV84\ \text{mV}, 21 mV21\ \text{mV} per cell; charging even 5050 to 100 mV100\ \text{mV} above the rated limit noticeably shortens a Li-ion cell's cycle life and eats into its safety margin. That accuracy is why the voltage is sensed at the pack, not at the converter's output.

Two loops and a minimum

+24 V Q D L 68 uH Rs 50 mOhm C 22 uF 4S Li-ion16.8 V max3.0 Ah BMS EA-I EA-V min PWM i senseIref 1.5 AVref 16.8 V lower demand wins

Both error amplifiers ask for a duty cycle; a minimum selector (in analogue chargers, two diodes on a shared compensation node) passes the smaller request to the modulator. While the pack voltage is below its limit, the voltage amplifier asks for more than the current amplifier, so the current loop rules: constant current. When the pack reaches 16.8 V16.8\ \text{V} the voltage amplifier's request drops below the current amplifier's and the voltage loop takes over: constant voltage, with the current tapering as the cells fill. The changeover is smooth because both loops act on the same duty cycle. Each loop is designed like any converter loop (Averaged Models, Voltage-Mode Control); the battery itself is a very large capacitor, so the voltage loop's plant is slow and mostly resistive.

Worked example: a 4S charger from 24 V

Given: a 4S pack of 3.0 Ah3.0\ \text{Ah} Li-ion cells, limit 4.20 V4.20\ \text{V} per cell; charge at 0.5C0.5C; precharge at C/10C/10 below 3.0 V3.0\ \text{V} per cell; terminate at C/20C/20. A buck from 24 V24\ \text{V} at fsw=200 kHzf_{sw} = 200\ \text{kHz}, L=68 μHL = 68\ \mu\text{H}, sense resistor Rs=50 mΩR_s = 50\ \text{m}\Omega.

Find: the CV setpoint, the currents, the duty-cycle range, the worst inductor ripple, the sense voltage and loss, and the power at the start of CV.

Solve:

VCV=4⋅4.20 V=16.8 V,ICC=0.5⋅3.0 A=1.5 A,Ipre=0.3 A,Iend=0.15 AD=4⋅3.0 V24 V=0.50 to 16.8 V24 V=0.70ΔIL,max⁡=12 V⋅(1−0.5)68 μH⋅200 kHz=0.441 A (D=0.5),ΔIL(D=0.7)=16.8 V⋅0.368 μH⋅200 kHz=0.371 AVRs=1.5 A⋅50 mΩ=75 mV,PRs=1.52⋅0.05=0.113 W,PCV=16.8 V⋅1.5 A=25.2 W\begin{aligned} V_\text{CV} &= 4 \cdot 4.20\ \text{V} = 16.8\ \text{V}, \qquad I_\text{CC} = 0.5 \cdot 3.0\ \text{A} = 1.5\ \text{A}, \quad I_\text{pre} = 0.3\ \text{A}, \quad I_\text{end} = 0.15\ \text{A} \\ D &= \frac{4 \cdot 3.0\ \text{V}}{24\ \text{V}} = 0.50 \ \text{to}\ \frac{16.8\ \text{V}}{24\ \text{V}} = 0.70 \\ \Delta I_{L,\max} &= \frac{12\ \text{V} \cdot (1 - 0.5)}{68\ \mu\text{H} \cdot 200\ \text{kHz}} = 0.441\ \text{A} \ (D = 0.5), \qquad \Delta I_L(D = 0.7) = \frac{16.8\ \text{V} \cdot 0.3}{68\ \mu\text{H} \cdot 200\ \text{kHz}} = 0.371\ \text{A} \\ V_{R_s} &= 1.5\ \text{A} \cdot 50\ \text{m}\Omega = 75\ \text{mV}, \qquad P_{R_s} = 1.5^2 \cdot 0.05 = 0.113\ \text{W}, \qquad P_\text{CV} = 16.8\ \text{V} \cdot 1.5\ \text{A} = 25.2\ \text{W} \end{aligned}

Check: the ripple ratio at full current is 0.371/1.5=0.250.371/1.5 = 0.25, in the usual range. During precharge (0.3 A0.3\ \text{A} at 12 V12\ \text{V}) half the 0.441 A0.441\ \text{A} ripple is still below 0.3 A0.3\ \text{A}, so the converter stays in CCM; near the end of CV it does not (see the lab). A 75 mV75\ \text{mV} sense signal costs 0.45 %0.45\ \% of the output power, a typical compromise between loss and the current loop's accuracy near 0.15 A0.15\ \text{A} (7.5 mV7.5\ \text{mV}).

Simulation: a charge on a cell model

The cell is modelled by its open-circuit voltage as a function of state of charge (an illustrative NMC-like curve), a series resistance R0R_0 and one RCRC pair (30 mΩ30\ \text{m}\Omega, 1000 F1000\ \text{F}, τ=30 s\tau = 30\ \text{s}) for the slow polarisation. The charger applies ICCI_\text{CC} until the terminal voltage reaches 4.20 V4.20\ \text{V}, then holds 4.20 V4.20\ \text{V} until the current falls to C/20C/20. The code runs the charge for a new cell and for aged cells with higher R0R_0, starting at 10 % state of charge.

python · try it yourself
import numpy as np

# One Li-ion cell (illustrative NMC-like curve), equivalent circuit: OCV(SoC) + R0 + R1 || C1
soc_pts = np.array([0, .05, .1, .2, .3, .4, .5, .6, .7, .8, .9, 1.0])
ocv_pts = np.array([3.00, 3.45, 3.55, 3.62, 3.67, 3.72, 3.77, 3.84, 3.92, 4.00, 4.08, 4.20])
Q = 3.0 * 3600                      # 3.0 Ah in coulombs

def charge(R0, I_cc=1.5, V_cv=4.20, I_end=0.15, soc=0.10, R1=0.03, C1=1000.0, dt=1.0):
    v1, t, t_cv, soc_cv, I = 0.0, 0.0, None, None, I_cc
    while t < 6 * 3600:
        ocv = np.interp(soc, soc_pts, ocv_pts)
        if t_cv is None and ocv + v1 + I_cc * R0 >= V_cv:
            t_cv, soc_cv = t, soc                          # the voltage loop takes over
        I = I_cc if t_cv is None else (V_cv - ocv - v1) / R0
        if t_cv is not None and I <= I_end:
            break
        v1 += dt * (I / C1 - v1 / (R1 * C1))
        soc += I * dt / Q
        t += dt
    return t_cv, soc_cv, t, soc

print("R0 (mohm)  CC phase       CV phase    total    final SoC")
for R0 in (0.030, 0.060, 0.120):
    t_cv, soc_cv, t, soc = charge(R0)
    print(f"{R0*1e3:6.0f}    {t_cv/60:5.1f} min to {100*soc_cv:4.1f} %   {(t - t_cv)/60:5.1f} min   "
          f"{t/60:5.1f} min   {100*soc:5.1f} %")
t_cv, soc_cv, t, soc = charge(0.060, I_cc=3.0)
print(f"1C (3 A), R0 = 60 mohm: CV starts at {100*soc_cv:.1f} % after {t_cv/60:.1f} min, done after {t/60:.1f} min")
R0 (mohm)  CC phase       CV phase    total    final SoC
    30     99.0 min to 92.5 %    21.0 min   120.0 min    99.2 %
    60     93.8 min to 88.1 %    32.1 min   125.8 min    98.9 %
   120     80.2 min to 76.9 %    59.0 min   139.2 min    98.1 %
1C (3 A), R0 = 60 mohm: CV starts at 71.3 % after 36.8 min, done after 83.0 min

A new cell spends most of the charge in CC and reaches CV at about 90 %; as R0R_0 grows with age, the terminal voltage hits 4.20 V4.20\ \text{V} earlier and the slow CV tail grows from 2121 to 59 min59\ \text{min}. Doubling the current to 1C1C does not halve the time: CV starts at 71 %71\ \% and the whole charge still takes 83 min83\ \text{min}. That is why "fast charge to 80 %" is the figure quoted for phones and cars. The model has no temperature and a made-up OCV curve; real charge times come from the cell's datasheet.

time preCC: 0.5 CCV: 4.20 V v cell 4.20 Vi 0.5 Cstop at C/20 3.0 V

Interactive: the charger's power stage near the end of charge

The buck lab shows the power stage with the pack replaced by the resistance it presents at one instant, V/IV/I. At the start of CV (16.8 V16.8\ \text{V}, 1.5 A1.5\ \text{A}: R=11.2 ΩR = 11.2\ \Omega, D=0.7D = 0.7) it reads Vout=16.80 VV_\text{out} = 16.80\ \text{V}, ΔIL=370.6 mA\Delta I_L = 370.6\ \text{mA} and a peak of 1.685 A1.685\ \text{A}, in CCM, with the CCM/DCM boundary at Rcrit=90.67 ΩR_\text{crit} = 90.67\ \Omega. Now raise RR to 112 Ω112\ \Omega, the end of charge at 0.15 A0.15\ \text{A}: the lab switches to DCM and reports that at the same duty cycle the output would rise to 17.60 V17.60\ \text{V}. A charger cannot work open-loop: the voltage loop must lower DD as the current tapers (Discontinuous Conduction Mode), and a loop designed only for CCM can misbehave there.

gateonoff00.5 A1.0 A1.5 AiLIL avg 1.50 Aripple dIL = 371 mA p-p-5.3 mV05.3 mV0 s2.5 us5.0 us7.5 us10 ustoutput rippleCCM: Vout = D Vin = 16.8 V; R = 11.2 Ohm < Rcrit = 90.7 Ohminductor currentoutput ripple

The battery management system

The charger controls the pack as a whole; the BMS looks after each cell. Its jobs:

  • Measure: every cell voltage (to a few millivolts), pack current (shunt or Hall sensor), several temperatures.
  • Protect: open the pack's charge and discharge switches (back-to-back MOSFETs, or contactors in a car) on cell overvoltage, undervoltage, overcurrent, short circuit, or a temperature outside the window. These limits sit outside the charger's, as an independent second layer.
  • Balance: cells drift apart in charge. Passive balancing bleeds the fullest cells through resistors near the end of charge; active balancing moves charge between cells with small converters, worth it for large packs.
  • Estimate state of charge (SoC) and state of health: coulomb counting corrected by the open-circuit voltage after rest, or Kalman-filter observers on a model like the one above.
  • Communicate with the charger and the host (SMBus in laptop packs, CAN in vehicles and storage systems), so the charger can lower its current when the BMS asks.
python · try it yourself
import numpy as np

soc_pts = np.array([0, .05, .1, .2, .3, .4, .5, .6, .7, .8, .9, 1.0])
ocv_pts = np.array([3.00, 3.45, 3.55, 3.62, 3.67, 3.72, 3.77, 3.84, 3.92, 4.00, 4.08, 4.20])
C_Ah = 3.0

# 1. Passive balancing: a 4S pack at the end of charge, one cell 3 % fuller than the others
soc = np.array([0.97, 0.97, 1.00, 0.97])
v = np.interp(soc, soc_pts, ocv_pts)
print("cell voltages at rest:", " ".join(f"{x:.3f}" for x in v), "V")
R_bleed = 68.0
I_b = v[2] / R_bleed
excess = (soc[2] - soc.min()) * C_Ah
print(f"bleed {R_bleed:.0f} ohm: {I_b*1e3:.0f} mA, {v[2]**2/R_bleed:.2f} W; "
      f"{excess*1e3:.0f} mAh to remove -> {excess/I_b:.1f} h")

# 2. Coulomb counting with a current-sensor offset and gain error
offset, gain = 0.005, 0.005                  # 5 mA offset, 0.5 % gain error
for days in (1, 7):
    drift = offset * 24 * days               # Ah from the offset alone
    print(f"offset drift after {days} day(s): {drift*1e3:.0f} mAh = {100*drift/C_Ah:.1f} % SoC")
print(f"gain error over one full cycle: {100*gain:.1f} % SoC")

# 3. Correcting with the OCV after a rest: invert the curve
for v_rest in (3.700, 3.920, 4.150):
    print(f"rest voltage {v_rest:.3f} V -> SoC {100*np.interp(v_rest, ocv_pts, soc_pts):.1f} %")
slope = (3.77 - 3.72) / 0.10                 # V per unit SoC on the flat part (40-50 %)
print(f"on the flat part a 5 mV error is {100*0.005/slope:.0f} % SoC")
cell voltages at rest: 4.164 4.164 4.200 4.164 V
bleed 68 ohm: 62 mA, 0.26 W; 90 mAh to remove -> 1.5 h
offset drift after 1 day(s): 120 mAh = 4.0 % SoC
offset drift after 7 day(s): 840 mAh = 28.0 % SoC
gain error over one full cycle: 0.5 % SoC
rest voltage 3.700 V -> SoC 36.0 %
rest voltage 3.920 V -> SoC 70.0 %
rest voltage 4.150 V -> SoC 95.8 %
on the flat part a 5 mV error is 1 % SoC

A 3 %3\ \% imbalance takes 1.5 h1.5\ \text{h} of bleeding at 62 mA62\ \text{mA}; a pack charged daily keeps up, a badly mismatched one does not. A 5 mA5\ \text{mA} offset alone makes the coulomb counter lose 4 %4\ \% a day, so the BMS re-anchors SoC whenever the pack has rested long enough for its voltage to mean something. On the flat middle of the curve that anchor is weak (LiFePO4_4 is flatter still), which is why SoC displays jump after a rest.

Guided lab: CC/CV on a bench supply, into resistors

A bench supply is itself a CC/CV source, so it shows the two-loop behaviour safely.

Hand calculation. Set 12.0 V12.0\ \text{V} and a 0.50 A0.50\ \text{A} limit. For loads of 4747, 3333, 2222 and 10 Ω10\ \Omega, predict which loop rules and the readings: 47 Ω47\ \Omega gives 0.255 A0.255\ \text{A} at 12.0 V12.0\ \text{V} (CV), 33 Ω33\ \Omega gives 0.364 A0.364\ \text{A} (CV), 22 Ω22\ \Omega would need 0.545 A0.545\ \text{A}, so the supply holds 0.50 A0.50\ \text{A} at 11.0 V11.0\ \text{V} (CC), and 10 Ω10\ \Omega gives 0.50 A0.50\ \text{A} at 5.0 V5.0\ \text{V} (CC). The crossover is at 12/0.5=24 Ω12/0.5 = 24\ \Omega.

Simulation. In the buck lab, set Vin=24 VV_\text{in} = 24\ \text{V}, D=0.5D = 0.5 and step RR through the same values: the open-loop converter just follows DVinDV_\text{in}, which shows what the supply's current loop adds.

What you would measure. With 10 W10\ \text{W} power resistors on a heat-resistant surface and a DMM in series and across the load, expect voltage and current within the supply's display accuracy (typically about ±0.5 %\pm 0.5\ \% plus a few digits; the DMM is better) and the CC/CV indicator changing between 3333 and 22 Ω22\ \Omega. Watching the output with a scope while switching the load from 4747 to 10 Ω10\ \Omega shows a brief current overshoot before the current loop acts, set by the supply's output capacitor.

Hazards and safe setup. 12 V12\ \text{V}, current-limited; the resistors dissipate up to 5.5 W5.5\ \text{W} and get hot. Never substitute a battery for the resistors: a lithium cell on a bench supply is exactly the experiment this course excludes, and a lead-acid battery can deliver hundreds of amperes into a slip of the probe.

Pitfalls

  • Sensing the pack voltage at the charger. Cable and connector drops (and the sense resistor's own drop, if the voltage is sensed on its converter side) make the CV phase start early and leave the pack undercharged when the charge ends.
  • Ending charge on time alone. Use the taper current and a safety timer, and stop on any temperature fault.
  • Treating the BMS as the charger. The BMS's cut-offs are a second, independent layer, not the normal end of charge.
  • Fast-charging cold cells. Below about 10 ∘C10\,^\circ\text{C} most Li-ion cells need reduced current, and none should be charged below 0 ∘C0\,^\circ\text{C} unless the datasheet allows it.

Practice

  1. A 3S pack of 2.5 Ah2.5\ \text{Ah} cells is charged at 0.7C0.7C with a 4.20 V4.20\ \text{V} limit. Give the CC current, the CV voltage and the termination current at C/20C/20.
  2. The 4S charger of the worked example runs from a 19 V19\ \text{V} laptop adapter instead. What is DD at the start of CV, and is there enough headroom if the switch and diode drop 0.6 V0.6\ \text{V} together?
  3. A 10 mA10\ \text{mA} offset in a pack's current sensor goes uncorrected for three days. How much SoC error does it make on a 3.0 Ah3.0\ \text{Ah} pack?
Answer
  1. ICC=1.75 AI_\text{CC} = 1.75\ \text{A}, VCV=12.6 VV_\text{CV} = 12.6\ \text{V}, Iend=0.125 AI_\text{end} = 0.125\ \text{A}.
  2. D=16.8/19=0.884D = 16.8/19 = 0.884 ideally, about (16.8+0.6)/19=0.92(16.8 + 0.6)/19 = 0.92 with the drops: at or beyond the maximum duty cycle of most controllers, so the charger may never reach CV at full current. A 4S charger needs a higher input, or a buck-boost.
  3. 0.010⋅72 h=0.72 Ah0.010 \cdot 72\ \text{h} = 0.72\ \text{Ah}, that is 24 %24\ \%.

Test yourself

In a CC/CV charger, which loop controls the converter while the battery voltage is below its limit?

  1. the voltage loop
  2. the current loop, because its duty-cycle demand is the lower of the two
  3. neither: the converter runs open loop
  4. the BMS

Why does doubling the charge current not halve the total charge time of a Li-ion cell?

  1. the charger saturates
  2. the terminal voltage reaches the limit earlier (the IR0IR_0 drop is larger), so a longer CV tail at falling current remains
  3. the cell's capacity doubles
  4. the BMS stops balancing

A 4S Li-ion charger's voltage setpoint is 0.5 % high. The overcharge per cell is about…

  1. 0.5 mV
  2. 21 mV
  3. 84 mV
  4. 0.5 V

Passive cell balancing…

  1. moves charge from full cells to empty ones
  2. bleeds the fullest cells through resistors, turning the excess into heat
  3. charges each cell from its own converter
  4. is done by the charger's voltage loop