Chuyển đến nội dung

Bài 22 · DC Circuits

RC Circuits: Charging and Discharging

Learn how a resistor and capacitor shape voltage over time: the time constant, exponential charging and discharging, and how to calculate values with examples.

Everything so far in this chapter reached a steady state instantly. Add a capacitor, and the story changes: the current and voltages now evolve over time. A camera flash charges up before it fires. A touch sensor measures how long a capacitor takes to fill. A turn-signal flasher, a debounce circuit for a button, and the smoothing of a rectified power supply all rely on the same simple idea.

An RC circuit contains a resistor R and a capacitor C. In this lesson you will learn the time constant, the formulas for charging and discharging, and how to use them in calculations. You should know that a capacitor stores charge Q = C V (from the previous chapter).

The time constant

The product τ = R C (the Greek letter tau) has the unit of time: ohm times farad equals second. It is called the time constant. A big resistor limits the current, so the capacitor fills slowly. A big capacitor needs more charge to reach the same voltage, so it also takes longer. Hence larger R or larger C means a larger τ and a slower circuit.

For example, R = 10 kΩ and C = 100 μF give τ = 10 000 × 100×10⁻⁶ = 1.0 s.

Charging a capacitor

Connect an uncharged capacitor in series with a resistor to a battery of EMF ε (assume negligible internal resistance), and close the switch at t = 0.

At the first instant the capacitor has no voltage, so the whole EMF is across the resistor and the current is largest: I₀ = ε / R. As charge builds up, the capacitor voltage V_C = q / C rises, leaving less voltage across the resistor, so the current shrinks. The loop rule gives ε = I R + q / C, whose solution is:

Text
q(t)   = C ε (1 - e^(-t/τ))
V_C(t) = ε (1 - e^(-t/τ))
I(t)   = (ε / R) e^(-t/τ)

The charge approaches its final value Q = C ε but never quite arrives. After one time constant the capacitor has reached 1 - e⁻¹ ≈ 63.2% of its final voltage. The current has dropped to e⁻¹ ≈ 36.8% of its starting value.

Time Fraction of final charge
1 τ 63.2%
2 τ 86.5%
3 τ 95.0%
5 τ 99.3%

In practice we say a capacitor is "fully charged" after about 5 τ.

Python Charging curve values

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Discharging a capacitor

Now charge a capacitor to V₀, remove the battery and let it discharge through the resistor. The capacitor acts as the source, so the voltage falls and, with it, the current:

Text
q(t)   = Q₀ e^(-t/τ)
V_C(t) = V₀ e^(-t/τ)
I(t)   = (V₀ / R) e^(-t/τ)   (flows in the opposite sense to charging)

After 1 τ the voltage is 36.8% of the original. After 5 τ it is under 1%. A related useful number is the half-life, the time to fall to half: t½ = τ ln 2 ≈ 0.693 τ.

flowchart LR
  A["Charging: V rises toward ε"] --> B["Switch flipped"]
  B --> C["Discharging: V falls toward 0"]

The same RC pair charges and discharges with the same time constant.

Python Plot charging and discharging

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Worked example: how long to reach a given voltage?

A 4.7 μF capacitor charges through 220 kΩ from a 5.0 V supply. How long until the capacitor reaches 4.0 V?

  1. τ = R C = 220 000 × 4.7×10⁻⁶ ≈ 1.034 s.
  2. Use V = ε (1 - e^(-t/τ)): 4.0 = 5.0 (1 - e^(-t/τ)), so e^(-t/τ) = 0.20.
  3. Take natural logs: t/τ = ln 5 ≈ 1.609.
  4. t = 1.609 × 1.034 ≈ 1.66 s.

The general result is t = -τ ln(1 - V/ε). For discharging from V₀ down to V, use t = -τ ln(V / V₀) = τ ln(V₀ / V).

Python Time to reach a target voltage

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Energy in the RC circuit

While charging from a battery, the battery supplies energy ε Q = C ε². The capacitor ends up storing only ½ C ε². The other half is turned into heat in the resistor, no matter how big or small R is. This surprising fact is a result of the exponential current: a small R gives a big, quick surge, a large R a slow trickle, but the total heating is identical.

Common mistakes

  • Thinking the capacitor charges linearly. The rate of charging is proportional to the voltage still missing, so it slows down.
  • Mixing units. R in kΩ and C in μF gives τ in milliseconds; convert carefully, or work in base SI units.
  • Forgetting that the current in a charging capacitor decays, while the capacitor voltage grows.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What is the time constant of a 2.0 kΩ resistor and a 50 μF capacitor?

    τ = R C = 2000 × 50×10⁻⁶ = 0.10 s.
  2. 2. A capacitor is charging through a resistor. After one time constant, the capacitor voltage is about what fraction of the supply EMF?

    V = ε (1 - e⁻¹) ≈ 0.632 ε.
  3. 3. At the instant a discharged capacitor is connected to a battery through a resistor, what is the current?

    The capacitor has no voltage yet, so the full EMF appears across the resistor and I = ε / R.
  4. 4. Doubling both R and C in an RC circuit does what to the time constant?

    τ = R C, so doubling each makes τ four times larger.

Summary

  • The time constant τ = R C sets the speed of charging and discharging.
  • Charging: V_C = ε (1 - e^(-t/τ)); the current decays as (ε/R) e^(-t/τ).
  • Discharging: V_C = V₀ e^(-t/τ).
  • After 1 τ: 63% charged (or 37% left); after 5 τ: effectively complete.
  • Time to reach a voltage: t = -τ ln(1 - V/ε) when charging.
  • Charging from a battery wastes half the supplied energy as heat in the resistor.

Next: Magnetic Fields and Forces on Moving Charges

Theo dõi tiến độ của bạn

Tạo tài khoản miễn phí để đánh dấu bài đã học và tiếp tục từ chỗ bạn dừng lại trên mọi thiết bị.