TExcelTAD
Home › Analog Electronics: Diodes, Transistors & Op-Amps › Active Filters: Sallen-Key and Multiple-Feedback

Active Filters: Sallen-Key and Multiple-Feedback

A sensor's signal must be cleaned up before an ADC samples it at 10 kHz10\ \text{kHz}: everything above about 1 kHz1\ \text{kHz} should be attenuated, and fast. A first-order RC falls at only 20 dB/decade20\ \text{dB/decade} (First-Order Filters). A passive second-order RLC (Second-Order Passive Filters) is steeper, but at 1 kHz1\ \text{kHz} its inductor would be large, lossy and a magnet for hum, and the filter's response would change with every load. An op-amp, two resistors and two capacitors give the same second-order response with no inductor, a buffered output and the option of gain. These active filters are the building blocks of every higher-order filter (Filter Design). This lesson covers the two classic topologies, Sallen-Key and multiple-feedback, how to design them, and how sensitive they are to component tolerances.

The second-order target

Every second-order low-pass section has the form

H(s)=K ω02s2+ω0Qs+ω02,ω0=2πf0H(s) = K\,\frac{\omega_0^2}{s^2 + \dfrac{\omega_0}{Q} s + \omega_0^2}, \qquad \omega_0 = 2\pi f_0

KK is the DC gain, f0f_0 the natural frequency and QQ the quality factor (Q=1/2ζQ = 1/2\zeta). Q=0.5Q = 0.5 is two coincident real poles, Q=0.7071Q = 0.7071 is the maximally flat Butterworth response, which is exactly −3 dB-3\ \text{dB} at f0f_0, and higher QQ gives a peak near f0f_0. Above f0f_0 the response falls at 40 dB/decade40\ \text{dB/decade}. The high-pass and band-pass forms have s2s^2 or (ω0/Q)s(\omega_0/Q)s in the numerator (Resonance, Q and Bandwidth).

Sallen-Key low-pass (gain 1) multiple-feedback low-pass (gain -R2/R1) + - vin R1 11k a R2 11k C2 10 nF C1 20 nF out - + vin R1 16k a R3 16k C1 22 nF R2 16k C2 4.7 nF out

Sallen-Key (unity gain)

Two resistors in series lead to the non-inverting input of a follower; C2C_2 goes from that input to ground, and C1C_1 from the junction of the resistors back to the output. Nodal analysis (Node-Voltage Analysis) with v+=voutv_+ = v_\text{out} gives

ω0=1R1R2C1C2,Q=R1R2C1C2C2(R1+R2),K=1\omega_0 = \frac{1}{\sqrt{R_1 R_2 C_1 C_2}}, \qquad Q = \frac{\sqrt{R_1 R_2 C_1 C_2}}{C_2 (R_1 + R_2)}, \qquad K = 1

With equal resistors, Q=12C1/C2Q = \tfrac12\sqrt{C_1/C_2}: the capacitor ratio alone sets QQ, and a Butterworth section needs C1=2C2C_1 = 2C_2. How does it reach a QQ above 0.50.5 with only RC parts? The feedback capacitor C1C_1 is driven by the output, which near f0f_0 is in phase with v+v_+; it pumps a little of the output back into the junction node, which a passive RC ladder cannot do.

High-pass: swap every R with a C. With equal capacitors, Q=12R2/R1Q = \tfrac12\sqrt{R_2/R_1} (here R1R_1 is the resistor to the output and R2R_2 the one to ground), so Butterworth needs R2=2R1R_2 = 2R_1.

Strengths: non-inverting, low component spread, the op-amp works as a follower (noise gain 1, the most bandwidth). Weaknesses: its stop-band does not keep falling for ever. At high frequency C1C_1 couples the input straight to the output node, and the op-amp's rising output impedance lets it through, so a real Sallen-Key low-pass "floors" at −40-40 to −60 dB-60\ \text{dB} somewhere in the megahertz range.

Gain other than 1: add a gain K=1+Rb/RaK = 1 + R_b/R_a in the feedback. The equal-component version then has Q=1/(3−K)Q = 1/(3 - K), simple but very sensitive: near K=3K = 3 a 1 % change in KK changes QQ by a lot, and at K=3K = 3 it oscillates.

Multiple-feedback (MFB) low-pass

The MFB circuit is built around an inverting amplifier, with two feedback paths (R2R_2 and C2C_2) from the output. Solving the two nodes gives

H(s)=−R2/R1s2R2R3C1C2+s C2(R2+R3+R2R3R1)+1H(s) = -\frac{R_2/R_1}{s^2 R_2 R_3 C_1 C_2 + s\,C_2 \left(R_2 + R_3 + \dfrac{R_2 R_3}{R_1}\right) + 1}

so K=−R2/R1K = -R_2/R_1, ω0=1/R2R3C1C2\omega_0 = 1/\sqrt{R_2 R_3 C_1 C_2} and Q=ω0R2R3C1 / (R2+R3+R2R3/R1)Q = \omega_0 R_2 R_3 C_1 \,/\, (R_2 + R_3 + R_2 R_3/R_1) (an equivalent form). With all three resistors equal, Q=13C1/C2Q = \tfrac13\sqrt{C_1/C_2}: Butterworth needs C1/C2=4.5C_1/C_2 = 4.5. The MFB's stop-band keeps falling (no feed-through path to the output), it inverts, and it has gain built in.

MFB band-pass (input R1R_1, R3R_3 to ground, two capacitors CC, feedback R2R_2): f0=12πCR1+R3R1R2R3f_0 = \frac{1}{2\pi C}\sqrt{\frac{R_1 + R_3}{R_1 R_2 R_3}}, Q=12R2(R1+R3)R1R3Q = \frac12 \sqrt{\frac{R_2 (R_1 + R_3)}{R_1 R_3}}, centre gain −R2/(2R1)-R_2/(2R_1). Changing R3R_3 alone tunes f0f_0 without changing the gain.

Sensitivity

The sensitivity SxQ=(x/Q)(∂Q/∂x)S^Q_x = (x/Q)(\partial Q/\partial x) says how many percent QQ moves per percent change of component xx. For the unity-gain Sallen-Key low-pass every sensitivity is ±12\pm\tfrac12 or smaller: a 5 % capacitor moves QQ by at most about 2.5 %. That robustness is why unity-gain Sallen-Key and MFB are the default choices, while the equal-component Sallen-Key with gain is used only at low QQ.

Worked example: a 1 kHz Butterworth low-pass

Given: unity-gain Sallen-Key, C2=10 nFC_2 = 10\ \text{nF}, C1=2C2=20 nFC_1 = 2C_2 = 20\ \text{nF} (two 10 nF10\ \text{nF} in parallel), equal resistors, target f0=1 kHzf_0 = 1\ \text{kHz}.

Find: RR (E24), the actual f0f_0 and QQ, and the attenuation at 10 kHz10\ \text{kHz}.

Solve:

R=12πf0C1C2=12π⋅1 kHz⋅14.14 nF=11.25 kΩ  →  11 kΩf0=12π⋅11 kΩ⋅14.14 nF=1.023 kHz,Q=122=0.7071∣H(10 kHz)∣=1(1−9.7742)2+(9.774/0.7071)2=0.0105=−39.6 dB\begin{aligned} R &= \frac{1}{2\pi f_0 \sqrt{C_1 C_2}} = \frac{1}{2\pi \cdot 1\ \text{kHz} \cdot 14.14\ \text{nF}} = 11.25\ \text{k}\Omega \;\to\; 11\ \text{k}\Omega \\ f_0 &= \frac{1}{2\pi \cdot 11\ \text{k}\Omega \cdot 14.14\ \text{nF}} = 1.023\ \text{kHz}, \qquad Q = \tfrac12\sqrt{2} = 0.7071 \\ \lvert H(10\ \text{kHz}) \rvert &= \frac{1}{\sqrt{(1 - 9.774^2)^2 + (9.774/0.7071)^2}} = 0.0105 = -39.6\ \text{dB} \end{aligned}

Check: a Butterworth filter is −3 dB-3\ \text{dB} at f0f_0, so the corner is 1.02 kHz1.02\ \text{kHz}; one decade above it the response is down almost 40 dB40\ \text{dB}, twice the slope of an RC.

In Python: design and tolerance spread

python · try it yourself
import numpy as np
from scipy import signal

def sk_lp(R1, R2, C1, C2):
    w0 = 1 / np.sqrt(R1 * R2 * C1 * C2)
    Q = np.sqrt(R1 * R2 * C1 * C2) / (C2 * (R1 + R2))
    return w0 / (2 * np.pi), Q

f0, Q = sk_lp(11e3, 11e3, 20e-9, 10e-9)
w0 = 2 * np.pi * f0
w, h = signal.freqs([w0**2], [1, w0 / Q, w0**2], worN=2 * np.pi * np.array([100, f0, 1e4]))
print(f"Sallen-Key: f0 = {f0:.1f} Hz, Q = {Q:.4f}")
print("dB at 100 Hz, f0, 10 kHz:", [round(float(x), 2) + 0.0 for x in 20 * np.log10(abs(h))])

# MFB low-pass, all R equal: Q = sqrt(C1/C2)/3
R, C1, C2 = 16e3, 22e-9, 4.7e-9
f0m = 1 / (2 * np.pi * R * np.sqrt(C1 * C2))
print(f"MFB: f0 = {f0m:.1f} Hz, Q = {np.sqrt(C1 / C2) / 3:.4f}, gain = -1")

# Monte Carlo: 1 % resistors, 5 % capacitors (uniform)
rng = np.random.default_rng(7)
n = 20000
r = 11e3 * (1 + rng.uniform(-0.01, 0.01, (n, 2)))
c = np.array([20e-9, 10e-9]) * (1 + rng.uniform(-0.05, 0.05, (n, 2)))
fs, Qs = sk_lp(r[:, 0], r[:, 1], c[:, 0], c[:, 1])
print(f"f0 spread: {np.percentile(fs, 1):.0f} to {np.percentile(fs, 99):.0f} Hz (1st-99th percentile)")
print(f"Q spread:  {np.percentile(Qs, 1):.3f} to {np.percentile(Qs, 99):.3f}")
Sallen-Key: f0 = 1023.1 Hz, Q = 0.7071
dB at 100 Hz, f0, 10 kHz: [0.0, -3.01, -39.6]
MFB: f0 = 978.2 Hz, Q = 0.7212, gain = -1
f0 spread: 980 to 1071 Hz (1st-99th percentile)
Q spread:  0.677 to 0.738

With 5 % capacitors the corner wanders by several percent, but QQ stays within a few percent of 0.7070.707, as the ±12\pm\tfrac12 sensitivities promise.

Cross-check with SPICE

The deck builds the worked example around the op-amp macro-model written for this course (GBW 1 MHz1\ \text{MHz}), sweeps 10 Hz10\ \text{Hz} to 1 MHz1\ \text{MHz}, and measures the pass-band gain, the corner and the stop-band.

bash · try it yourself
cat > sk.cir <<'EOF'
* unity-gain Sallen-Key low-pass, f0 = 1.02 kHz, Q = 0.707
.subckt OA inp inn out
G1 0 n1 inp inn 1m
R1 n1 0 100meg
C1 n1 0 159.2p
E1 out 0 n1 0 1
.ends
Vin in 0 AC 1
R1 in a 11k
R2 a p 11k
C1 a out 20n
C2 p 0 10n
X1 p out out OA
.control
ac dec 100 10 1meg
meas ac g100 find vdb(out) at=100
meas ac f3db when vdb(out)=-3.0103 fall=1
meas ac g10k find vdb(out) at=10k
meas ac g100k find vdb(out) at=100k
.endc
.end
EOF
ngspice -b sk.cir 2>&1 | grep -E '^(g1|f3)'
g100                =  -3.660066e-04
f3db                =  1.023061e+03
g10k                =  -3.961695e+01
g100k               =  -7.965928e+01

The corner lands at 1.023 kHz1.023\ \text{kHz} and the gain at 10 kHz10\ \text{kHz} is −39.6 dB-39.6\ \text{dB}, as calculated, then −79.7 dB-79.7\ \text{dB} at 100 kHz100\ \text{kHz}. The macro-model has zero output resistance, so it does not show the stop-band floor of a real Sallen-Key; add Ro of 100 Ω100\ \Omega in series with E1's output and the floor appears.

Interactive: change the capacitor ratio

The filter of the worked example with the op-amp as a follower E1 out 0 p out 100k (gain 10510^5, no bandwidth limit: ee-netlist has no op-amp element). The probes are the output and the junction node a.

0.00.51.0101001k10k100kf (Hz)|V| (V)|V(out)||V(a)|phasors at f = 1.000 kHz (magnitude @ phase)V(in)1.00 V @ 0.0 degV(a)879 mV @ -53.5 degV(p)723 mV @ -88.2 degV(out)723 mV @ -88.2 degI(Vin)77.5 uA @ -124.0 degI(R1)77.5 uA @ 56.0 degI(R2)45.4 uA @ 1.8 degI(C1)62.8 uA @ 91.8 degI(C2)45.4 uA @ 1.8 degI(E1)62.8 uA @ 91.8 deg

At 1 kHz1\ \text{kHz} the lab shows V(out)=723.0 mVV(\text{out}) = 723.0\ \text{mV} at −88.2∘-88.2^\circ: just below the corner, where a second-order low-pass has a phase of −90∘-90^\circ. Raise C1C_1 to 40 nF40\ \text{nF} (Q=1Q = 1) and a peak appears in the response near f0f_0; lower it to 10 nF10\ \text{nF} (Q=0.5Q = 0.5) and the knee becomes soft.

Guided lab: build and sweep the filter

Hand calculation. f0=1.02 kHzf_0 = 1.02\ \text{kHz}, −3 dB-3\ \text{dB} there, phase −90∘-90^\circ at f0f_0, −39.6 dB-39.6\ \text{dB} at 10 kHz10\ \text{kHz}.

Simulation. The Python run, the SPICE deck and the lab.

What you would measure. Use 1 % resistors and C0G or film capacitors (avoid high-K ceramics, whose value changes with voltage), a general-purpose op-amp on a ±12 V\pm 12\ \text{V} current-limited split supply (50 mA50\ \text{mA} limit), 100 nF100\ \text{nF} decoupling. Drive 1 V1\ \text{V} peak from the generator and step the frequency through 100 Hz100\ \text{Hz}, 500 Hz500\ \text{Hz}, 1 kHz1\ \text{kHz}, 2 kHz2\ \text{kHz}, 5 kHz5\ \text{kHz}, 10 kHz10\ \text{kHz}, reading the output amplitude and the phase on a two-channel scope. Expect the −3 dB-3\ \text{dB} point (output 0.707 V0.707\ \text{V}) within about ±5 %\pm 5\ \% of 1.02 kHz1.02\ \text{kHz} with 5 % capacitors, and the phase crossing −90∘-90^\circ at the same frequency. At 10 kHz10\ \text{kHz} the output is about 10 mV10\ \text{mV} peak, near the scope's noise floor: average the trace or use the scope's FFT. A scope with a "Bode" function or a network analyser makes the sweep automatic.

Hazards and safe setup. Low-voltage current-limited supply; generator output within the rails.

Pitfalls

  • High-K ceramic capacitors in the frequency-setting positions. Their capacitance can drop by half with DC bias and temperature; QQ and f0f_0 move with them.
  • Forgetting the source resistance. It adds to R1R_1 and shifts both f0f_0 and QQ; drive the filter from a low-impedance stage.
  • Too slow an op-amp. Choose GBW at least 100×Q×f0100 \times Q \times f_0 for a well-behaved Sallen-Key; slower parts shift QQ upwards.
  • Expecting a Sallen-Key low-pass to reject megahertz interference. Its stop-band floors; add a passive RC after it if RF matters.

Practice

  1. Design a unity-gain Sallen-Key high-pass at 100 Hz100\ \text{Hz}, Butterworth, with C1=C2=100 nFC_1 = C_2 = 100\ \text{nF}.
  2. An MFB low-pass has R1=R2=R3=10 kΩR_1 = R_2 = R_3 = 10\ \text{k}\Omega, C1=47 nFC_1 = 47\ \text{nF}, C2=4.7 nFC_2 = 4.7\ \text{nF}. Find f0f_0 and QQ.
  3. In an equal-component Sallen-Key with gain, what gain gives Q=2Q = 2?
Answer
  1. ω0=1/(CR1R2)\omega_0 = 1/(C\sqrt{R_1 R_2}) with R2=2R1R_2 = 2R_1: R1=1/(2π⋅100⋅100 nF⋅2)=11.25 kΩ→11 kΩR_1 = 1/(2\pi \cdot 100 \cdot 100\ \text{nF} \cdot \sqrt2) = 11.25\ \text{k}\Omega \to 11\ \text{k}\Omega, R2=22 kΩR_2 = 22\ \text{k}\Omega; f0=102 Hzf_0 = 102\ \text{Hz}.
  2. f0=1/(2π⋅10 kΩ⋅47⋅4.7 nF)=1/(2π⋅104⋅14.86×10−9)=1.071 kHzf_0 = 1/(2\pi \cdot 10\ \text{k}\Omega \cdot \sqrt{47 \cdot 4.7}\ \text{nF}) = 1/(2\pi \cdot 10^4 \cdot 14.86 \times 10^{-9}) = 1.071\ \text{kHz}; Q=10/3=1.054Q = \sqrt{10}/3 = 1.054.
  3. Q=1/(3−K)=2⇒K=2.5Q = 1/(3 - K) = 2 \Rightarrow K = 2.5.

Test yourself

A unity-gain Sallen-Key low-pass with equal resistors needs which capacitor ratio for a Butterworth response?

  1. C1=C2C_1 = C_2
  2. C1=2C2C_1 = 2 C_2
  3. C1=4.5C2C_1 = 4.5 C_2
  4. C1=C2/2C_1 = C_2/2

Far above f0f_0, an ideal second-order low-pass falls at…

  1. 10 dB/decade10\ \text{dB/decade}
  2. 20 dB/decade20\ \text{dB/decade}
  3. 40 dB/decade40\ \text{dB/decade}
  4. 60 dB/decade60\ \text{dB/decade}

What is a practical advantage of the MFB low-pass over the Sallen-Key low-pass?

  1. It does not invert
  2. Its stop-band keeps falling, without the high-frequency feed-through floor
  3. It needs no capacitors
  4. It has a noise gain of 1

A sensitivity SC1Q=0.5S^Q_{C_1} = 0.5 means a 4 % increase of C1C_1 changes QQ by about…

  1. 0.5 %
  2. 2 %
  3. 4 %
  4. 8 %