RC Circuits and Time Constant
An RC circuit combines a resistor and capacitor. It is one of the simplest circuits in electronics, but it teaches a central engineering idea: the speed of a circuit's response is often predictable.
That speed is captured by the time constant:
$$
\tau = RC
$$
Learning Objectives
By the end of this lesson, you should be able to:
- calculate the RC time constant in seconds;
- interpret charging and discharging curves at
1 tauand5 tau; - estimate whether a network is useful for timing, filtering, or debouncing;
- avoid common design mistakes such as choosing too large a source resistance for an ADC input.
The Basic RC Charging Circuit
V1: Device:Battery_Cell value="5 V"
S1: Switch:SW_SPST value="Step input"
R1: Device:R value="10 k" rotate=270
C1: Device:C value="100 nF" rotate=0
layout direction=LR gap=90
group SOURCE label="Source" direction=LR {
V1
S1
}
group NETWORK label="RC network" direction=TB {
R1
C1
}
V1.1 --> S1.1
S1.2 --> R1.1
R1.2 --> local:VOUT
C1.1 --> local:VOUT
C1.2 --> global:0V
V1.2 --> global:0V
When the step is applied:
- current initially flows through the resistor into the capacitor;
- capacitor voltage rises gradually, not instantly;
- current falls as the capacitor charges.
Time Constant
The time constant is:
$$
\tau = RC
$$
Where:
Ris in ohms;Cis in farads;tauis in seconds.
Worked example
For R = 10 k ohm and C = 100 nF:
[
\tau = 10{,}000 \times 100\times10^{-9} = 1\times10^{-3}\ \text{s} = 1\ \text{ms}
]
That means the node is a fast millisecond-scale network, useful for debounce shaping, short delays, and low-pass filtering.
Charging Equation
For a capacitor charging from 0 V toward a supply V_S:
$$
v_C(t) = V_S\left(1 - e^{-t/\tau}\right)
$$
Important checkpoints:
| Time | Capacitor voltage |
|---|---|
0 tau |
0% of final |
1 tau |
63.2% of final |
2 tau |
86.5% |
3 tau |
95.0% |
5 tau |
99.3% |
Engineers usually treat 5 tau as settled for practical work.
Discharging Equation
If the capacitor starts at V_0 and discharges through the resistor:
$$
v_C(t) = V_0 e^{-t/\tau}
$$
So after one time constant the remaining voltage is about 36.8% of its initial value.
Current During Charging
At the instant a step is applied, the capacitor voltage has not changed yet, so the resistor sees almost the full source voltage. Initial current is:
$$
i(0^+) = \frac{V_S}{R}
$$
For a 5 V step and 10 k ohm resistor:
$$
i(0^+) = \frac{5}{10{,}000} = 0.5\ \text{mA}
$$
That current then decays exponentially toward zero.
RC as a Low-Pass Filter
If you take the output across the capacitor, the network acts as a first-order low-pass filter.
The cutoff frequency is:
$$
f_c = \frac{1}{2\pi RC}
$$
For 10 k ohm and 100 nF:
[
f_c \approx \frac{1}{2\pi(10{,}000)(100\times10^{-9})} \approx 159\ \text{Hz}
]
Signals much slower than this pass with little attenuation. Faster components are increasingly reduced.
Common Applications
- switch debouncing;
- power-on reset delay;
- sensor anti-alias filtering;
- smoothing PWM into a rough analog level;
- AC coupling and high-pass networks when the topology is rearranged.
Design Tradeoffs
A larger R or C gives a longer delay and lower cutoff frequency, but also creates side effects:
- very large
Rincreases susceptibility to leakage and noise; - large
Cincreases startup delay and discharge time; - high source resistance can interact badly with ADC sample-and-hold circuits;
- large RC networks can make a system feel sluggish.
Safety Guidance
RC networks in low-voltage work are usually safe, but:
- large capacitors can still dump significant current;
- resistor power ratings matter if a discharged capacitor is repeatedly slammed from a high-voltage source;
- reset and timing networks in safety-critical systems should be checked against tolerance and temperature drift.
Common Mistakes
- Treating
tauas the time to reach100%. - Forgetting to convert
uFornFto farads. - Using an RC filter without checking whether the signal bandwidth is being damaged.
- Assuming debounce is solved just by "adding any capacitor."
- Ignoring resistor tolerance and capacitor tolerance in timing estimates.
Summary
RC circuits are useful because they make change gradual and predictable. The time constant tau = RC tells you the response speed, the charging and discharging curves are exponential, and the same network can be used for timing or filtering depending on where the output is taken and how the values are chosen.