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?
About 1.4 ms. Halfway takes . The exponential starts fast and slows, so the first half comes sooner than a straight line would suggest, and the last few percent take much longer. To 63% takes exactly τ, and to 99% takes about 4.6τ.
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
The three-step recipe:
- Initial value : just after the change. A capacitor's voltage can't jump, so it starts where it was.
- Final value : long after, when the capacitor acts as an open circuit.
- Time constant , where is the Thevenin resistance seen from the capacitor's terminals (C1.15) with the sources switched off.
Milestones. After time constants the fraction of the change completed is :
| t | τ | 2τ | 3τ | 4τ | 5τ |
|---|---|---|---|---|---|
| done | 63.2% | 86.5% | 95.0% | 98.2% | 99.3% |
Time to a threshold. Solving for the time when reaches a value :
This is how RC timers work: a comparator watches the capacitor and switches when it crosses a threshold.
Discharging is the same formula with : .
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
- Time constant.
- Voltage after 2 s. That's two time constants: 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
- Time constant.
- Time to reach 1 V.
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
- When the node reaches half the supply. The node charges as , so it reaches when
- Solve for the time.
- What the delay is for. That gives the supply and the oscillator time to settle.
- 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°.
Step 2
What current flows?
Step 3
When does it reach a fraction f of V?
Explain why
Why does every voltage and current in a circuit with one capacitor follow the same exponential with the same τ?
Seen from the capacitor, the rest of the circuit is a Thevenin equivalent: one source and one resistance. So the capacitor's voltage obeys a single first-order equation, , whose solution moves exponentially from the old value to the new one with . Every other voltage and current in the circuit is a linear combination of the capacitor's voltage and the sources, so they all follow the same exponential with the same τ, each between its own initial and final values.
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.