All posts

Inside the ECM — Where the Equations Come From

A ground-up derivation of the 1-RC equivalent circuit model — from physical intuition through KVL and KCL to the analytical solution and its discrete-time form.

5 min read

Three physical processes, three timescales

When current flows through a lithium-ion cell, three processes activate simultaneously:

Ohmic drop (microseconds) Electrons through metal current collectors and ions through the electrolyte separator encounter resistive friction. The voltage response is instantaneous on any engineering timescale. Modelled by R0R_0.

Double-layer polarisation (seconds) At each electrode–electrolyte interface, ions rearrange into a charged double layer — physically a capacitor. It charges over seconds and dissipates over seconds when current stops. Modelled by the R1R_1C1C_1 parallel branch.

Solid-state diffusion (minutes) Lithium must diffuse through solid electrode particles to the reaction sites. Concentration gradients take minutes to build and minutes to relax. Modelled by a second RC branch (R2R_2, C2C_2) in a 2-RC model.

When none of these are active — after a sufficiently long rest — the terminal voltage equals the Open-Circuit Voltage: a thermodynamic quantity that depends only on lithium stoichiometry, i.e., on SOC.


The Thévenin (1-RC) circuit

The 1-RC model captures ohmic drop and double-layer polarisation:

         R₀              R₁
(+)────/\/\/────────┬────/\/\/────┐────(+)
                    │              │
         OCV(SOC)  C₁    V₁      ═══   V_t
                    │              │
(−)─────────────────┴──────────────┘────(−)
  • R0R_0 — series resistance; causes the instantaneous voltage step when current switches on or off
  • R1R_1, C1C_1 in parallel — polarisation branch; the voltage V1V_1 across it evolves continuously
  • VtV_t — terminal voltage; what the voltmeter measures

Sign convention: current II is positive on discharge throughout. Fix this and never change it.


Governing equations from KVL and KCL

Eq. A — Terminal voltage (KVL)

Kirchhoff's Voltage Law around the outer loop gives the terminal voltage directly:

Vt=OCV(SOC)IR0V1(A)V_t = \mathrm{OCV}(\mathrm{SOC}) - I\,R_0 - V_1 \tag{A}

This is algebraic — it holds at every instant given OCV, II, and V1V_1. The only quantity with its own dynamics is V1V_1.

Eq. B — Polarisation voltage (KCL)

Current entering the RC branch splits between R1R_1 and C1C_1:

I=V1R1+C1dV1dtI = \frac{V_1}{R_1} + C_1\,\frac{dV_1}{dt}

Solving for V˙1\dot{V}_1 and substituting τ1=R1C1\tau_1 = R_1 C_1:

dV1dt=V1τ1+IC1(B)\boxed{\frac{dV_1}{dt} = -\frac{V_1}{\tau_1} + \frac{I}{C_1}} \tag{B}

Equations A and B together fully describe the 1-RC ECM. There is nothing else.

Intuition for Eq. B:

  • The V1/τ1-V_1/\tau_1 term: R1R_1 continuously discharges C1C_1 toward zero — the system forgets its past.
  • The +I/C1+I/C_1 term: current charges C1C_1 — the system responds to the present input.
  • The steady state (V˙1=0\dot{V}_1 = 0) is V1=IR1V_1 = I R_1, reached asymptotically at rate 1/τ11/\tau_1.

Analytical solution

Eq. B is a first-order linear ODE with constant coefficients. For piecewise-constant current — constant over any interval [t0,t][t_0,\, t] — the exact solution is:

V1(t)=V1(t0)e(tt0)/τ1+IR1 ⁣[1e(tt0)/τ1]\boxed{V_1(t) = V_1(t_0)\,e^{-(t-t_0)/\tau_1} + I\,R_1\!\left[1 - e^{-(t-t_0)/\tau_1}\right]}

Term 1 — initial condition memory: decays exponentially at rate 1/τ11/\tau_1. At t=t0t = t_0 it equals V1(t0)V_1(t_0); as tt \to \infty it vanishes.

Term 2 — forced response: zero at t=t0t = t_0; approaches the steady-state value IR1I R_1 as tt \to \infty.

The solution interpolates smoothly from V1(t0)V_1(t_0) toward IR1I R_1, with the transition speed set by τ1\tau_1. This is exactly the exponential shape visible on every battery voltage trace.

ECM pulse response — current step and terminal voltage showing R₀ drop, RC charging, and RC decay

Verification: differentiating the master solution and substituting into Eq. B confirms it satisfies the ODE for all tt0t \geq t_0. ✓


Two exact special cases

Current applied from rest — V1(t0)=0V_1(t_0) = 0

If the cell is fully relaxed before current is applied, the first term vanishes:

V1(t)=IR1 ⁣[1et/τ1]V_1(t) = I\,R_1\!\left[1 - e^{-t/\tau_1}\right] Vt(t)=OCVIR0IR1 ⁣[1et/τ1]V_t(t) = \mathrm{OCV} - I\,R_0 - I\,R_1\!\left[1 - e^{-t/\tau_1}\right]

At t=0+t = 0^+: VtV_t drops (or rises, for charge) by exactly IR0I R_0 — instantaneously. The RC branch has not yet responded. VtV_t then curves further as V1V_1 builds toward IR1I R_1. The long-time asymptote, if current were held forever, would be OCVI(R0+R1)\mathrm{OCV} - I(R_0 + R_1).

Current removed — I=0I = 0

With t=tt0t' = t - t_0 measured from the moment current stops:

V1(t)=V1(t0)et/τ1V_1(t') = V_1(t_0)\,e^{-t'/\tau_1} Vt(t)=OCVV1(t0)et/τ1V_t(t') = \mathrm{OCV} - V_1(t_0)\,e^{-t'/\tau_1}

VtV_t jumps immediately by IR0I R_0 when current switches off (R₀ drop disappears instantly), then recovers exponentially toward OCV as V1V_1 decays. In practice, V1(t0)V_1(t_0) is unknown — it is what we are trying to find. So the equation is fitted to measured data with two free parameters:

Vt(t)=OCVA=V1(t0)et/τ1V_t(t') = \mathrm{OCV} - \underbrace{A}_{\displaystyle =\,V_1(t_0)}\, e^{-t'/\tau_1}

The fit returns AA and τ1\tau_1 directly. If the pulse was long enough to saturate the RC branch (tpτ1t_p \gg \tau_1), then V1(t0)IR1V_1(t_0) \approx I R_1, so R1=A/IR_1 = A / I


References

  1. G. L. Plett, Battery Management Systems, Vol. I: Battery Modeling, Artech House, 2015. — The standard graduate-level reference for ECM derivation, ODE solutions, and Kalman filter SOC estimation.

  2. G. L. Plett, "Extended Kalman filtering for battery management systems of LiPB-based HEV battery packs — Part 2: Modeling and identification," Journal of Power Sources, vol. 134, no. 2, pp. 262–276, 2004. — Original paper connecting the ECM discrete update to the EKF prediction step.

  3. M. Chen and G. A. Rincon-Mora, "Accurate electrical battery model capable of predicting runtime and I–V performance," IEEE Transactions on Energy Conversion, vol. 21, no. 2, pp. 504–511, 2006. — Widely cited ECM paper; good comparison of topologies.

  4. X. Hu, S. Li, and H. Peng, "A comparative study of equivalent circuit models for Li-ion batteries," Journal of Power Sources, vol. 198, pp. 359–367, 2012. — Systematic comparison of Rint, 1-RC, and 2-RC accuracy across SOC and temperature.

Comments