RvinCRfRgLoad10 kΩ10 µF
0.11101001000-60-40-20020f (Hz)|H| (dB)BODE MAGNITUDE |H|passiveloadedactive ×2fc50 Hz02040600123t (ms)v (V)SIGNALS (STEADY STATE)vinvout
Lit wire with moving dashes: current is flowing; yellow dots are the hum current swinging (slowed down)Blocks: input, R, C, op-amp, Rf, Rg and the load, each with its schematic symbol on topPlots: the Bode magnitude |H| in dB against frequency, and vin(t), vout(t) in steady stateDashed wire: the load hung straight on the capacitor (the passive filter, loaded)A 10 kΩ, 10 µF RC low-pass has its corner at 1.59 Hz and cuts 50 Hz hum to −29.9 dB. A 10 kΩ load across it halves the gain and moves the corner to 3.18 Hz; an op-amp stage with gain 2 keeps the corner and drives the load. 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.

The passive RC filter

  1. 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.

Frequency response

Loading and the active filter

The working

# step 1/10 · 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.

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.