Circuits for batteries · Beginner · 300 min
Capacitors and the RC circuit
How a resistor and a capacitor create a delay with one time constant, why that same shape appears when a battery relaxes after a load, and how EV packs use it to pre-charge safely.
By the end of this lesson you can
- Calculate the RC time constant and the capacitor voltage at any time during charging
- Calculate how long an RC circuit takes to reach a given percentage of its final value
- Calculate the energy stored in a capacitor and explain why EV packs use pre-charge
- Explain how an RC pair models the slow voltage recovery of a battery cell
Before this: Series and parallel connections
A capacitor stores charge and releases it, like a small, fast battery. Charged through a resistor, it fills quickly at first and then more slowly, approaching the supply voltage exponentially with a time constant equal to resistance times capacitance. The same behaviour appears inside every battery: after a current pulse, the voltage relaxes towards its rest value along the same kind of curve, which is why battery models are built from resistors and capacitors.
Study plan · two days
- Day 1 (about 2.5 h): The RC circuit. The capacitor picture, the equations, a calculator and worked examples. Practice drills and the knowledge check.
- Day 2 (about 2.5 h): From RC circuits to batteries. How long until a circuit has settled, and the link to battery voltage relaxation. Homework and further reading.
Day 1 · about 2.5 h
The RC circuit
A capacitor is a tiny, fast battery
A capacitor stores charge on two plates separated by an insulator. Think of a bucket with a hose: the more water (charge) in it, the higher the water level (voltage).
Put a resistor in the hose and the bucket cannot fill instantly. At first, the level difference is large and water rushes in. As the bucket fills, the difference shrinks and the flow slows. The level rises quickly at first, then more and more slowly, approaching the final level but never quite reaching it.
That curve, fast then ever slower, is the exponential response. How fast it happens is set by a single number: the time constant.
The equations
A capacitor's charge is proportional to its voltage:
- : capacitance, in farads (F); ,
- : charge, in coulombs (C); : capacitor voltage, in V
When a capacitor starting at 0 V is charged from a source through a resistor :
- : the time constant, in seconds (ohms × farads = seconds)
- : current, in A. It is largest at the start () and decays to zero
Rules of thumb: after the capacitor reaches 63.2 % of the final value; after , 95.0 %; after , 99.3 %. Engineers usually treat 5τ as "done".
To reach a chosen fraction of the final value:
Stored energy:
in joules, with in F and in V.
RC circuit step response
Illustrative modelAssumptions
- Ideal source, resistor and capacitor: no leakage, constant C.
- v(t) = Vs + (v0 − Vs)·e^(−t/τ), τ = R·C. Set Vs = 0 to see a discharge.
- This is the same first-order behaviour as the RC branch of a battery equivalent-circuit model (C12), but a real cell is not a capacitor.
Maths· Where the exponential comes from
Kirchhoff's voltage law around the loop gives , and the capacitor current is . So:
This is a first-order linear ODE. Its solution with is:
You can check it by substitution. Every first-order system (a cooling cup of tea, a cell relaxing after a load) has this form, with its own . The rate of change is always proportional to "how far is left to go", which is why the approach slows down.
Solved examples
Worked example
Example 8.1: the time-constant rules
A 1 kΩ resistor charges a 1,000 µF capacitor from a 12 V source.
- At : (63.2 %)
- At : (86.5 %)
- Time to 95 %:
- Initial current: , falling to under 0.1 mA after 5 s
Worked example
Example 8.2: why EV packs pre-charge
An EV's motor inverter has a large input capacitor. Take an illustrative 4.7 mF on a 400 V pack.
- Energy it will hold when charged:
- If the main relay (contactor) closed directly, the only thing limiting the current would be a few milliohms of wiring and cell resistance. The inrush current would be thousands of amperes, enough to weld the contactor shut.
- Instead, a pre-charge circuit first connects the capacitor through a resistor, here an illustrative 50 Ω. The peak current is , and
- After about the capacitor is above 99 % of the pack voltage. Then the main contactor closes with almost no voltage across it, and the pre-charge relay opens.
That is the double click you hear when an EV powers up. Pre-charge design is covered in C09 and C10.
Worked example
Example 8.3: a cell relaxing after a load
A cell's slow voltage recovery is often modelled as a resistor in parallel with a capacitor (the "1RC" model, C12). Take and , an illustrative parameter set.
- Time constant:
- After a long 10 A discharge, the RC pair holds
- When the current stops, that voltage decays as mV: 55 mV left after 30 s and about 7.5 mV after 90 s
So the cell's voltage keeps rising for minutes after the load is removed. This is why open-circuit voltage must be measured after a rest, and why SOC read from voltage immediately after driving is wrong (C06-L04, C06-L05). Real cells usually need more than one RC pair, and some time constants are much longer.
Simulator
Where engineers use this
- Battery models. Equivalent-circuit models are a series resistor plus one or more RC pairs (C12). Fitting their values from pulse tests is a core skill (C08, C12).
- Pre-charge circuits in every high-voltage pack (Example 8.2).
- Filters. RC low-pass filters smooth noisy voltage and current measurements before the BMS samples them (C10).
- Timing. Relaxation times decide how long a test procedure must rest before reading the OCV (C08).
Common mistakes
- Thinking the capacitor is full after 1τ. It is only 63 % of the way. Use 5τ for "essentially complete".
- Mixing units in τ. mΩ × F gives milliseconds, not seconds. Convert to Ω and F first.
- Reading OCV straight after a load. The RC voltage has not decayed yet, so the reading is biased.
- Forgetting pre-charge. Connecting a pack directly to a big capacitor causes a huge inrush current.
- Assuming one time constant fits a real cell. Cells show several, from milliseconds to hours.
Practice
Numbers change each time you press New values. Answers within about 1 % are accepted.
- D1
A 100 Ω resistor is in series with a 0.0047 F capacitor. What is the time constant, in seconds?
- D2
A capacitor starting at 0 V charges from 12 V through a resistor, with τ = 1 s. What is its voltage after 2 s, in V?
- D3
An RC circuit has τ = 10 s. How long does it take to reach 90 % of its final voltage, in seconds?
- D4
An inverter's input capacitor is 0.002 F and is charged to 72 V. How much energy does it store, in J?
- D5
A cell's RC pair has R1 = 15 mΩ and τ = 30 s. A 10 A discharge has run long enough to fully charge it. How much RC voltage is left 30 s after the current stops, in mV?
Check your understanding
Day 2 · about 2.5 h
From RC circuits to batteries
How long until it settles?
Worked example
Example 8.4: 63 % and 99 %
With s:
- 63.2 % of the final value is reached at s
- 99 % is reached at s, about
"Five time constants" is the usual engineering rule for "settled".
The same curve inside a battery
After a current pulse, a battery's voltage does not return to its rest value at once. Part of the response is immediate (the internal resistance); the rest relaxes like a capacitor discharging through a resistor, with time constants from seconds to hours. Battery models represent this with one or more parallel RC branches (C06-L04, C12), and the BMS waits for the relaxation to finish before reading the rest voltage.
Voltage after a battery stops discharging
1Current stops
Voltage jumps up by I·R₀ at once.
2Fast relaxation
Seconds: an RC branch with a short time constant.
3Slow relaxation
Minutes to hours: diffusion inside the cell.
4Rest voltage
Open-circuit voltage, used to estimate SOC.
Homework
Homework · answers not provided
- For R = 1 kΩ and C = 470 µF, compute τ and the time to reach 90 % and 99 % of the supply voltage.
- A battery's voltage rises by 20 mV over 10 s after a pulse, following an RC curve with τ = 3 s. How much of the 20 mV remains after 15 s?
- Explain why a BMS that reads the rest voltage too soon will misjudge the state of charge.
- Use the RC calculator in the lesson to plot charging curves for three time constants and describe the differences.
Further reading
Further reading
- OpenStax, University Physics Volume 2, chapter on RC circuits.
- G. L. Plett, Battery Management Systems, Volume I, Artech House, 2015. Equivalent-circuit models.
Key takeaways
- sets the speed: 63 % after 1τ, 95 % after 3τ, more than 99 % after 5τ.
- Charging: ; the time to fraction is .
- A capacitor stores . Big inverter capacitors are why EV packs pre-charge.
- An RC pair models a cell's slow voltage recovery, the foundation of equivalent-circuit models.
- An RC circuit reaches 63 % in one time constant and 99 % in about 4.6.
- Battery voltage relaxes after a pulse in the same way; models use RC branches.
- Next in this course: measuring electricity (C02-L09). For cells: OCV vs terminal voltage (C06-L05).
Sources for this lesson are listed on the References page.