C27 of 30
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

C2 · Lesson 7 · RC charging, discharging and τ

One curve for every first-order circuit

Every circuit with one capacitor and resistors responds to a sudden change the same way: it heads exponentially from where it was to where it's going, at a pace set by one number, τ. Find three things (the starting value, the final value and τ) and you can write down the answer for any such circuit without solving a differential equation. That covers timers, switch debouncers, reset circuits and the edges of every digital signal.

Play

  • A square wave from 0 to 5 V drives an RC circuit. The scope shows the input and the capacitor's voltage.
  • With the defaults, each half period lasts five time constants. Does the capacitor fully charge and discharge?
  • Raise the frequency until a half period is about one τ. Then go higher. What does the output start to look like, and around what average does it settle?

Predict

A capacitor charges from 0 V toward 10 V with τ = 2 ms. How long until it reaches 5 V?

Name it

First-order response

The universal form. For any circuit with one capacitor (or one inductor) and resistors, after a sudden change, every voltage and current follows

x(t)=x∞+(x0−x∞)e−t/τ

The three-step recipe:

  1. Initial value x0: just after the change. A capacitor's voltage can't jump, so it starts where it was.
  2. Final value x∞: long after, when the capacitor acts as an open circuit.
  3. Time constant τ=RthC, where Rth is the Thevenin resistance seen from the capacitor's terminals (C1.15) with the sources switched off.

Milestones. After n time constants the fraction of the change completed is 1−e−n:

tτ2τ3τ4τ5τ
done63.2%86.5%95.0%98.2%99.3%

Time to a threshold. Solving for the time when x reaches a value x1:

t=τln⁡x0−x∞x1−x∞

This is how RC timers work: a comparator watches the capacitor and switches when it crosses a threshold.

Discharging is the same formula with x∞=0: v=V0e−t/τ.

The initial slope points straight at the final value and would reach it in exactly one τ. That's a handy way to read τ off a scope trace.

Square waves. If each half period is much longer than τ, the capacitor completes every swing. If it's much shorter, the capacitor barely moves before the input flips, and the output becomes a small triangle wave around the input's average. That's an RC low-pass filter at work (C4).

Worked example

A 100 µF capacitor charges through 10 kΩ from 9 V. What is its voltage after 2 s?

Show the solution
  1. Time constant. τ=RC=10kΩ×100μF=1s
  2. Voltage after 2 s. That's two time constants: v=9(1−e−2)=7.78V 86% of the way.

Answer the capacitor is at 7.78 V after 2 s, 86% of the way to 9 V.

Worked example

A 47 µF capacitor at 12 V discharges through 1 kΩ. When does it reach 1 V?

Show the solution
  1. Time constant. τ=RC=1kΩ×47μF=47ms
  2. Time to reach 1 V. t=τln⁡121=47×2.48ms=117ms

Answer it reaches 1 V after 117 ms.

Worked example

A microcontroller's power-on reset holds the chip in reset until an RC node reaches half the supply. With 100 kΩ and 1 µF from 3.3 V, how long is the reset?

Show the solution
  1. When the node reaches half the supply. The node charges as v=V(1−e−t/RC), so it reaches V2 when e−t/RC=12
  2. Solve for the time. t=RCln⁡2=100kΩ×1μF×0.693=69ms
  3. What the delay is for. That gives the supply and the oscillator time to settle.
  4. Independent of the supply. The time doesn't depend on the supply voltage, only on the fraction at which the reset releases, which is why RC timers stay steady as batteries run down.

Answer the reset lasts 69 ms.

Check

A capacitor charges from 0 toward 10 V with τ = 4.7 ms. How long until it reaches 0.3 of the final voltage?

Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.

Check

A capacitor of 4.7 µF, charged to 9 V, discharges through 2.2 kΩ. What is its voltage after 10 ms?

Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.

Check

A source charges a 10 µF capacitor through 2 kΩ, and 3 kΩ sits in parallel with the capacitor. What is the time constant?

Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.

Check

A capacitor starts at 2 V and heads toward 8 V. What is its voltage after 3 time constant(s)?

Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.

Check

On a scope, you draw the tangent to an RC charging curve at its start. Where does it reach the final value?

Check

A reset node charges through 10 kΩ into 0.1 µF, and releases when it reaches 0.9 of the supply.

(a)

What's the time constant?

Write units the way you normally would: 1.5 ms, 1500 µs and 0.0015 s are the same answer.

(b)

How long is the reset?

Check

A capacitor C charges from empty through R toward V.

Step 1

What's its voltage at t?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

Why does every voltage and current in a circuit with one capacitor follow the same exponential with the same τ?

Practice

Keep practicing

8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.