Charging and discharging a capacitor – measuring the RC time constant

PhysicsElectricity & CircuitsAges 16–17Virtual lab

Use with my class

A virtual lab circuit with a source of EMF E, a resistor R, a capacitor C and a two-way switch K: move K to 1 to charge the capacitor and to 2 to discharge it through R. A voltmeter reads u_C, the u_C(t) graph is plotted live, and the moment u reaches the 63% level is marked automatically so τ can be measured and compared with τ = RC. A data table records t, u_C, i, the charge q = Cu and the stored energy W = Cu²/2. A second tab plots ln V against t: the gradient −1/RC gives the time constant, compared with the 63% method. A third tab, Fields, shows the charging capacitor in cross-section: the displacement current I_d = ε₀dΦ_E/dt between the plates equals the current I in the wires at every moment, and an Amperian loop round the wire or round the gap gives the same magnetic field (Ampère–Maxwell law).

Lesson: Capacitors, capacitance and stored energy; charging and discharging through a resistor

What it shows

A capacitor does not charge instantly: the current through the resistor is largest the moment the switch closes and falls as charge builds up on the plates. When charging from zero, u = E(1 − e^(−t/τ)); when discharging, u = u₀e^(−t/τ), with τ = RC. After one τ the capacitor reaches 63% of E, or falls to 37% of its starting voltage. A graph of ln V against t is a straight line whose gradient gives τ. No charge crosses the gap, yet the growing electric flux there acts as a displacement current I_d = ε₀dΦ_E/dt equal to I, so the magnetic field round the gap matches the field round the wire.

How to use

With the default Source EMF 6 V, Resistance 10 kΩ and Capacitance 470 μF, τ = 4.7 s. Press Charge (K → 1) and watch the current dots slow down as the voltmeter reading approaches E; the moment u_C reaches 63% is marked on the graph and entered in the table. Then press Discharge (K → 2). Use Record reading for extra points and a faster Speed when R and C are large. Double R or C and compare the measured τ. On the ln V graph tab, press Discharge and log, then Fit line, and compare the two methods in the table. On the Fields tab, press Charge and watch I, I_d and B at both loops; change the Loop radius r to inside and outside the plates.

Parameters you can change

  • Source EMF 1–12 V
  • Resistance 1–100 kΩ
  • Capacitance 100–2200 μF
  • Show theoretical curve and τ = RC mark
  • Screen Charge and discharge, ln V graph, Fields
  • Readings Few, Normal, Many
  • Fit only readings above 0–1 V
  • Loop radius 0.5–10 cm

Questions to explore

  1. What happens to the measured time constant when you double R, and when you double C?
  2. Why is the current largest just after the switch is moved and then falls towards zero?
  3. How much energy is stored when the capacitor is fully charged, and where does it go during discharge?
  4. Why do the readings at small V scatter most on the ln V graph, and what happens to τ if you change the cut-off?
  5. Why does an Amperian loop round the gap of a charging capacitor give the same magnetic field as a loop round the wire?

Teaching ideas

All guides