Sub topic 3
Charging and Discharging Through a Resistor: The Time Constant
This chapter assumes you know Ohm's law, Kirchhoff's voltage law, Q = CV, and the exponential function e^x.
When a capacitor charges through a resistor, its voltage rises gradually. The rate depends on the product R × C, called the time constant τ (tau). For a source voltage Vs:
- Charging: vC(t) = Vs(1 − e^(−t/τ))
- Discharging: vC(t) = V0 e^(−t/τ)
After one τ, the capacitor reaches about 63.2% of its final voltage. After 5τ, it is within 1% of the final value, so most designers treat 5τ as "fully charged."
import math
Vs = 5.0 # source voltage in volts
R = 10e3 # resistance in ohms
C = 100e-6 # capacitance in farads
tau = R * C # time constant in seconds
for k in range(1, 6):
t = k * tau
vc = Vs * (1 - math.exp(-t / tau))
print(f"t = {k} tau: vC = {vc:.3f} V")Where the Energy Goes
The source delivers a total energy of Vs × Q = C·Vs² while charging. The capacitor stores only ½C·Vs². The other half is dissipated as heat in the resistor. This holds for any value of R, so a faster charge (smaller R) wastes the same energy, but in less time.
Capacitors with Sinusoidal Signals
For a sine wave at frequency f, a capacitor opposes current with its reactance:
Xc = 1 / (2πfC)
A 100 µF capacitor at 50 Hz has Xc ≈ 31.8 Ω. Reactance falls as frequency rises, so capacitors pass high frequencies more easily than low ones.
Real Capacitors
Real capacitors depart from the ideal model in three ways:
- Leakage: a large resistance in parallel lets charge slowly escape.
- ESR (equivalent series resistance): a small series resistance causes heating and voltage drop under ripple current.
- Voltage rating: exceeding the rated voltage can break down the dielectric and destroy the part.
Common Applications
Capacitors filter ripple from power supplies, decouple chips by supplying short current bursts, set timing intervals in RC circuits, and store energy for flash and backup systems.
Exercise
Exercise
A 100 µF capacitor charges through 10 kΩ from a 5 V source. Roughly how long does it take to reach 99% of 5 V?
Show answer
Solve e^(−t/τ) = 0.01, so t = τ ln(100) ≈ 4.6τ. With τ = 1.0 s, t ≈ 4.6 s.