Passive and active filters
About this lesson
A filter lets some frequencies through and blocks others. Follow one circuit: a temperature sensor's 1.0 V signal arrives with 0.5 V of 50 Hz mains hum. A 10 kΩ, 10 µF RC low-pass has its corner at 1.59 Hz and cuts the hum to −29.9 dB. A load spoils the passive filter; an op-amp stage fixes it and adds gain. Transfer functions and Bode plots come from "Transfer functions and Bode plots"; the op-amp basics come from the Hardware lesson "Op-amps"; capacitors from "Resistors and capacitors".
A noisy sensor wire
An air-conditioner's temperature sensor gives a slow 1.0 V signal. Mains wiring beside its cable adds 0.5 V of 50 Hz hum. A filter passes some frequencies and blocks others: keep the slow signal, drop the hum.
input vin(t) = 1.0 + 0.5·sin(2π·50·t) V
signal 1.0 V (slow, almost 0 Hz)
hum 0.5 V peak at 50 Hz
Kuwait mains: 240/415 V, 50 Hz.
The hum is 50 % of the signal.Read the lesson step by step
A noisy sensor wire
An air-conditioner's temperature sensor gives a slow 1.0 V signal. Mains wiring beside its cable adds 0.5 V of 50 Hz hum. A filter passes some frequencies and blocks others: keep the slow signal, drop the hum.
input vin(t) = 1.0 + 0.5·sin(2π·50·t) V signal 1.0 V (slow, almost 0 Hz) hum 0.5 V peak at 50 Hz Kuwait mains: 240/415 V, 50 Hz. The hum is 50 % of the signal.A resistor and a capacitor
The simplest filter is a passive RC low-pass: a 10 kΩ resistor in series and a 10 µF capacitor to ground. The output is the capacitor's voltage. Passive means it needs no power supply; an RC filter's gain never goes above 1.
passive RC low-pass R = 10 kΩ in series C = 10 µF from the output node to ground vout = voltage across C low-pass: low frequencies pass, high frequencies are blocked. (Capacitors: see "Resistors and capacitors".)The capacitor's impedance
A capacitor's impedance is ZC = 1/(jωC), with ω = 2πf. At 0 Hz it is an open circuit, so the signal stays. At 50 Hz, |ZC| = 318 Ω, far below 10 kΩ, so the hum current takes the capacitor to ground.
ZC = 1/(jωC), ω = 2πf (rad/s) |ZC| = 1/(2πfC) f = 0 Hz |ZC| → ∞ open circuit f = 50 Hz |ZC| = 1/(2π·50·10µ) = 318 Ω (R = 10 kΩ) The dots show the hum current swinging through R and C.A divider with impedances
R and C form a voltage divider. The transfer function is the output phasor over the input phasor: H = ZC/(R + ZC) = 1/(1 + jωRC). Here RC = 0.1 s, the time constant. The Bode plot shows |H| in decibels.
H(jω) = Vout/Vin = ZC / (R + ZC) = 1 / (1 + jωRC) RC = 10 kΩ × 10 µF = 0.1 s (τ) |H| = 1/√(1 + (ωRC)²) |H| in dB = 20·log10|H| (Bode plots: "Transfer functions and Bode plots")The corner frequency
The corner, or cutoff, is where ωRC = 1: fc = 1/(2πRC) = 1.59 Hz. There |H| = 1/√2 = 0.707, which is −3.01 dB, and the output lags by 45°. The output power is half.
fc = 1/(2πRC) = 1/(2π × 0.1) = 1.59 Hz at fc: H = 1/(1 + j) |H| = 1/√2 = 0.707 20·log10(0.707) = −3.01 dB ∠H = −45° |H|² = 1/2: half power, the "−3 dB point"−20 dB per decade
Above fc, each tenfold rise in frequency cuts |H| tenfold: −20 dB per decade. At 50 Hz, |H| = 1/√(1 + (50/1.59)²) = 0.0318, or −29.9 dB. The hum shrinks about 31 times and lags 88.2°.
|H(f)| = 1/√(1 + (f/fc)²) f = 50 Hz: f/fc = 31.4 |H| = 0.0318 = −29.9 dB ∠H = −atan(31.4) = −88.2° far above fc: |H| ≈ fc/f 100 Hz → 1 kHz: −20 dB per decadeA load spoils it
Now hang a 10 kΩ load straight across C. It draws current, so the divider changes: the gain falls to 0.5 (−6.02 dB) and the corner moves to 3.18 Hz. A passive filter's response depends on what it drives.
load RL = 10 kΩ across C Thevenin seen by C: VTh = Vin·RL/(R + RL) = 0.5·Vin RTh = R‖RL = 5 kΩ H = 0.5 / (1 + jω·RTh·C) gain 0.5 (−6.02 dB) corner 1/(2π·5k·10µ) = 3.18 HzAdd an op-amp
An active filter adds an amplifier, here an op-amp, which needs a power supply. Its + input draws no current, so the RC sees no load and keeps fc = 1.59 Hz. Its output drives the load without sagging.
ideal op-amp input current 0 A -> RC unloaded output low impedance v− = v+ (negative feedback) The RC keeps fc = 1.59 Hz The load hangs on the op-amp output. (Op-amp basics: "Op-amps", Hardware.)Gain from two resistors
Rf and Rg set a non-inverting gain K = 1 + Rf/Rg = 1 + 10k/10k = 2, which is +6.02 dB. So H = 2/(1 + jf/fc). The curve moves up 6 dB, and the corner stays at 1.59 Hz.
v− = v+ , no current into − Rg and Rf divide vout: v− = vout·Rg/(Rf + Rg) => vout = (1 + Rf/Rg)·v+ = 2·v+ H = K / (1 + jf/fc) K = 2 (+6.02 dB) fc = 1.59 Hz (unchanged) at fc: 2/√2 = 1.414A clean output
The output holds the signal, ×2: 2.00 V. The hum is 0.5 × 0.0318 × 2 = 0.0318 V. It was 50 % of the signal and is now 1.6 %. For more cut, use a second-order filter.
steady state signal 1.0 V × 2 = 2.00 V hum 0.5 V × 0.0318 × 2 = 0.0318 V lag −88.2° hum / signal in 0.5/1.0 = 50 % out 0.0318/2.00 = 1.6 % second order: −40 dB per decade
5 quick questions
Choose one answer per question. You can change your choices before checking them.
01An RC low-pass uses R = 10 kΩ and C = 1 µF. What is its corner frequency?
fc = 1/(2πRC) = 1/(2π × 10000 × 0.000001) = 15.9 Hz. 100 is ω in rad/s, not f in Hz.
02The figure's filter has fc = 1.59 Hz. What fraction of the 50 Hz hum gets through the passive RC?
|H| = 1/√(1 + (f/fc)²) = 1/√(1 + (50/1.59)²) = 0.0318, and 20·log10(0.0318) = −29.9 dB. 0.707 is the value at the corner only.
03A 10 kΩ load is connected straight across the capacitor of the 10 kΩ, 10 µF filter. What happens?
The source and R seen from the capacitor become a Thevenin source of 0.5·Vin behind R‖RL = 5 kΩ. So the gain is 0.5 and the corner is 1/(2π × 5000 × 0.00001) = 3.18 Hz.
04In a non-inverting active low-pass, Rf = 10 kΩ and Rg = 10 kΩ. What is the passband gain?
K = 1 + Rf/Rg = 1 + 10/10 = 2, and 20·log10(2) = +6.02 dB. The RC still sets the corner, because the op-amp's + input draws no current.
05Far above the corner, how does a first-order low-pass's |H| change when the frequency rises ten times?
Far above fc, |H| ≈ fc/f, so ten times the frequency gives a tenth of the output: −20 dB per decade. A second-order filter falls −40 dB per decade.
Glossary
- Filter
- A circuit whose gain depends on frequency: it passes some frequencies and attenuates others.
- Low-pass filter
- A filter that passes frequencies below its corner and attenuates those above it.
- Transfer function H(jω)
- The output phasor divided by the input phasor at angular frequency ω = 2πf.
- Corner (cutoff) frequency
- Where |H| has fallen to 1/√2 of its passband value (−3 dB, half power). For an RC filter fc = 1/(2πRC).
- Decibel (dB)
- 20·log10 of a voltage ratio: ×2 = +6.02 dB, ×0.707 = −3.01 dB, ×0.1 = −20 dB.
- Passive filter
- A filter made only of R, L and C. It needs no power supply; an RC filter's gain never goes above 1.
- Active filter
- A filter that includes an amplifier, usually an op-amp. It needs a power supply, can have gain, and isolates the filter from the load.
- Loading
- The change in a circuit's behaviour when the next stage draws current from its output.
Notes and sources
- Values are illustrative. The op-amp is ideal: no input current, zero output impedance and unlimited bandwidth. The plots show sinusoidal steady state, after the start-up transient (about 5τ = 0.5 s) has died away. Every number is computed from this model.
- Swap R and C (C in series, R to ground) and the same divider gives a high-pass filter, H = jωRC/(1 + jωRC), with the same corner 1/(2πRC). A low-pass and a high-pass in a row make a band-pass.
- 20·log10|H| turns ratios into sums: ×2 is +6.02 dB, ×0.5 is −6.02 dB, ×0.1 is −20 dB. That is why gains of cascaded stages add on a Bode plot.
- C. K. Alexander, M. N. O. Sadiku, Fundamentals of Electric Circuits, McGraw Hill (ch. 14, Frequency Response: passive and active filters)
- Low-pass filter (Wikipedia): fc = 1/(2πRC), −20 dB per decade, op-amp active low-pass
- RC circuit (Wikipedia): H(s) = 1/(1 + RCs), ωc = 1/RC, phase tends to −90°
- Active filter (Wikipedia): gain, power supply, and isolating the filter from the load
- Electronics Tutorials, Active Low Pass Filter: passive RC into a non-inverting op-amp, AF = 1 + R2/R1
- Mains electricity by country (Wikipedia): Kuwait 240/415 V, 50 Hz
- MIT OpenCourseWare 6.002 Circuits and Electronics: design in the time and frequency domains
Quiz Unlocks after the last step.