Charging and discharging a capacitor
Follow the transfer of charge, derive the exponential response, and measure the circuit’s time constant.
Aim & apparatus
Measure the charging and discharging voltages of a capacitor, determine the time constant τ and half-life, and compare them with RC and RC ln 2.
A physical setup uses a DC source, resistor, capacitor, switching arrangement, high-input-resistance voltmeter, and stopwatch. This simulation uses R = 10,000 Ω, C = 0.0047 F (4700 μF), and a 5 V supply.
Why the voltage changes exponentially
A capacitor separates charge on two conductors, storing energy in the electric field between them. Its voltage is related to charge by Q = CV, while current is i = C dV/dt.
For charging, Kirchhoff’s loop law gives Vₛ = iR + V꜀. Initially the discharged capacitor has zero voltage, so the current is largest. As V꜀ rises, the resistor’s voltage and the current decrease.
Substituting the current relation gives RC dV꜀/dt + V꜀ = Vₛ. Solving with starting voltage Vᵢ yields the general step-response equation below. It remains valid if a charging cycle starts before the capacitor is fully discharged.
Charging, discharging & current
With Vᵢ = 0, the charging voltage rises towards Vₛ. During discharge through R with the source disconnected from the loop, the capacitor’s initial voltage decays towards zero. Current flows in the opposite direction to charging.
The ideal model approaches its final voltage asymptotically. After 5τ, charging is about 99.3% complete and about 0.67% of a discharge voltage remains.
Taking measurements
- Choose charging or discharging and note the voltage at the start of that phase. Use a fully discharged capacitor if applying the simple zero-start charging formula.
- Align stopwatch zero with the switching event. The stopwatch is independent of the circuit switches, so starting it late changes the time origin of your readings.
- Record voltage at several times. Keep charging and discharging datasets separate when analysing them.
- Read τ at 0.632Vₛ during charging from zero, or at 0.368Vᵢ during discharge. Read half-life at 0.5 of the appropriate voltage change.
- Alternatively, fit ln(V/Vᵢ) against time for discharge: its slope is −1/RC. Do not take logarithms of zero or negative voltages.
- Use the measured half-life to estimate C = t½/(R ln 2), then compare against 0.0047 F.
Worked example & units
For the model values, τ = 10,000 × 0.0047 = 47.0 s and t½ = 47 ln 2 ≈ 32.58 s. At t = 47 s, charging from zero gives 5(1 − e⁻¹) ≈ 3.161 V. Discharging from 5 V gives 5e⁻¹ ≈ 1.839 V.
Ohms multiplied by farads give seconds. Convert μF to F by multiplying by 10⁻⁶; 4700 μF is 0.0047 F, not 4.7 F.
Stored energy is U = ½CV². At 5 V this capacitor holds 0.05875 J. In an ideal full discharge, that energy becomes heat in the resistor.
Precautions & model limits
In a real circuit, observe capacitor polarity and voltage ratings. Discharge safely before handling; do not short a large charged capacitor directly. Leakage, component tolerance, source resistance, and voltmeter loading can alter the measured response.
A finite series resistor keeps current bounded, so capacitor voltage is continuous during switching. This simulator models ideal components; switching from a partly charged state preserves the voltage rather than forcing a jump.
Record the switching time carefully. Mixing different initial voltages or using the wrong time origin gives an apparent time constant that is not the circuit’s RC value.