Sub topic 15
Where These Transients Matter: Timers, Filters, and Switching Supplies
This chapter assumes you can compute tau = RC and tau = L/R, and that you know the general solution x(t) = xfinal + (xinitial − x_final)e^(−t/tau). Here you will see how those tools explain three common circuit families.
Timers: choosing a threshold crossing
A timer circuit charges a capacitor through a resistor until its voltage crosses a threshold. A comparator or logic input detects the crossing. Solving the step response for the time gives a design equation:
t = tau · ln((Vfinal − Vinitial) / (Vfinal − Vthreshold))
For a capacitor that starts at 0 V and charges toward V, with a threshold of 0.632V, the delay is one tau. A threshold of 0.9V takes about 2.3 tau.
import math
R = 100e3 # ohms
C = 10e-6 # farads
V = 5.0 # supply, volts
Vth = 3.0 # threshold, volts
tau = R * C # 1 s
t = tau * math.log(V / (V - Vth))
print(f"tau = {tau:.2f} s, delay to {Vth} V = {t:.3f} s")The result is about 0.916 s. Note that the delay depends on the ratio Vth/V. If the supply and the threshold both come from the same source, supply drift cancels out to first order. Part tolerances do not cancel. A 5% resistor and a 20% electrolytic capacitor give a delay error near 25%.
Filters: tau sets the cutoff
A resistor in series with a capacitor, with the output taken across the capacitor, passes slow signals and attenuates fast ones. This is a low-pass filter. Its time-domain speed and its frequency-domain cutoff are tied together by the same tau:
f_c = 1 / (2π tau)
A signal that changes much more slowly than tau is followed closely. A signal that changes much faster is averaged out. The same circuit therefore smooths noisy sensor readings and debounces switches.
| Goal | Typical tau | Reason |
|---|---|---|
| Debounce a mechanical switch | 1 to 10 ms | Longer than contact bounce, shorter than a human press |
| Smooth a sensor reading | 10 to 100 ms | Removes noise, keeps slow changes |
| Reset delay at power-up | 10 to 500 ms | Lets the supply settle before the logic starts |
Switching supplies: inductor current ramps
A buck converter switches an inductor between the input voltage and ground many thousands of times per second. Each switching period is far shorter than the L/R time constant of the load, so only the first part of each exponential is used. That part is almost a straight line, and the inductor current ramps up and down by
ΔI = (V_L · t) / L
where V_L is the voltage across the inductor during that interval. The inductor carries energy from one switching interval to the next. The flyback path from the previous chapter, usually a diode or a second switch, keeps the current flowing when the main switch opens.
Common errors
- Using the wrong resistance. Tau must use the resistance seen by the storage element, including source resistance and switch on-resistance.
- Ignoring tolerances. Capacitor values often vary far more than resistor values.
- Treating a switching supply as a steady-state circuit. The ripple current is a transient segment repeated each cycle.
Exercise
A 220 kΩ resistor and a 4.7 µF capacitor charge from a 3.3 V supply, starting at 0 V. A logic input switches at 2.0 V. Find tau and the delay.
Show answer
tau = 220e3 × 4.7e-6 = 1.034 s. The delay is t = tau · ln(3.3 / (3.3 − 2.0)) = 1.034 × ln(2.538) = 1.034 × 0.931 ≈ 0.96 s.
Exercise
A low-pass filter uses R = 1.6 kΩ and C = 100 nF. Find its cutoff frequency.
Show answer
tau = 1.6e3 × 100e-9 = 160 µs. f_c = 1 / (2π × 160e-6) ≈ 995 Hz, or about 1 kHz.