Active Filter Tutorial: 2nd-Order Sallen-Key Low-Pass & Butterworth Design
Passive RC filters suffer two crippling handicaps when chained into higher-order filters: each added RC stage drops amplitude through inter-stage loading and can never realize complex-conjugate Q > 0.5 poles (meaning zero sharp maximally flat Butterworth or Chebyshev knee transitions) without bulky copper inductors! Invented by R.P. Sallen and E.L. Key at MIT Lincoln Lab in 1955, the unity-gain or finite-gain Sallen-Key topology injects gentle bootstrapped positive feedback through capacitor C1 onto a non-inverting op-amp buffer—synthesizing arbitrary high-Q second-order resonant transfer poles using ONLY two resistors, two capacitors, and one op-amp. In this tutorial you will tune equal-component vs equal-resistor Butterworth corners, measure crisp −40 dB/decade roll-off, and prevent high-frequency op-amp feedthrough inside NodeSim.
1. Why Sallen-Key Beats Passive Cascaded RC Filters
Cascade two plain 1 kOhm + 1 uF passive RC filters together and measure the Bode curve: instead of a crisp flat passband cleanly turning downward at −3 dB, heavy inter-stage loading drags −1 dB attenuation way back below cutoff, flattening into a sluggish rounded knee with real Q capped strictly below 0.50! Even adding a buffer between two independent RC poles leaves Q locked permanently at 0.50 (−6 dB gain right at corner frequency instead of −3 dB).
Now disconnect the top shunt cap C1 from ground and wire it directly to Vout of a unity-gain op-amp follower! Below f_c, C1 tracks input and output symmetrically in phase (bootstrapping current upward, cancelling droop right up to f_c so the passband stays razor flat!). Above f_c, capacitor C2 shunts remaining voltage straight into ground while op-amp isolation preserves rock-solid low-ohm drive into downstream ADC pins. That bootstrap feedback lifts damping Q cleanly above 0.5 up toward maximally flat Butterworth Q = 1/√2 ≈ 0.7071.
2nd-Order Low-Pass Transfer Function: H(s) = K / (s²/(ω₀²) + s/(Q·ω₀) + 1) Corner Frequency: f₀ = 1 / (2 × π × √(R1 × R2 × C1 × C2)) Special Equal-Resistor Case (R1 = R2 = R, Unity Gain K = 1): Q = 0.5 × √(C1 / C2) ⇒ Butterworth Q = 0.7071 requires C1 = 2 × C2! Special Equal-Component Case (R1 = R2 = R, C1 = C2 = C): f₀ = 1 / (2 × π × R × C), Q = 1 / (3 − K) ⇒ Q = 0.707 needs K = 1.586!
Using K = 1 Unity-Gain Buffer with equal resistors R1 = R2 = 10 kΩ and C1 = 2·C2 (e.g. 22 nF & 10 nF) delivers painless Butterworth flatness without needing fractional gain resistors.
2. Comparing Bessel, Butterworth & Chebyshev Q Tuning
Changing purely the feedback ratio C1/C2 (or op-amp gain K = 1 + Rf/Rg) moves complex pole pairs across the s-plane without altering cutoff frequency f_0:
Bessel (Q ≈ 0.577): gently rounded knee yielding ultra-linear phase delay and practically zero step ringing in square-wave audio/sonar pulses. Butterworth (Q = 0.7071, C1 ≈ 2·C2 at unity gain): mathematically flat passband gain right across DC out toward −3.01 dB at f_0 before diving at −40 dB/decade (tiny ~4% step overshoot). Chebyshev (Q > 1.0, e.g., Q = 1.3): deliberate passband ripple followed by an ultra-steep brick-wall cutoff drop for tight ADC anti-aliasing.
- Stopband Feedthrough Above Op-Amp Bandwidth: An unexpected bench trap! Past the op-amp's Gain-Bandwidth limit where A_OL drops toward unity, op-amp output impedance rises and high-MHz noise leaks directly across bootstrap capacitor C1 straight onto Vout—creating a nasty high-frequency stopband shelf instead of falling endlessly at -40 dB/dec!
- Remedy for MHz Anti-Aliasing Leakage: Always precede active op-amp stages with a small passive RC radio-frequency trap right at the input, and ensure op-amp GBWP exceeds 50x × Q × f_cutoff cleanly.
3. Worked Component Sizing Example (1.0 kHz Butterworth)
Suppose you need a clean 1.0 kHz audio/sensor Butterworth anti-aliasing filter wired around a unity-gain op-amp buffer (K = 1). Choose easy standard capacitor C2 = 10 nF and set bootstrap cap C1 = 2 × C2 = 22 nF (close E6/E12 pair giving Q ≈ 0.74, virtually identical to ideal 0.707). Solving R = 1 / (2 × π × f0 × √(C1·C2)) yields R1 = R2 ≈ 10.7 kOhm—using standard 10 kOhm metal-film parts places actual cutoff smoothly around 1.07 kHz with a silky-flat 0 dB passband and crisp −40 dB/decade skirt above 2 kHz!
Need a steeper 4th-order −80 dB/decade brick-wall response? Simply cascade TWO unity-gain Sallen-Key op-amp stages in series—setting Stage 1 at gentle Q = 0.541 and Stage 2 at steeper Q = 1.306 so their product synthesizes an authentic 4th-order Butterworth flat passband with zero inter-stage loading!
Worked Design (Unity Gain K = 1, R1 = R2 = 10 kΩ, C1 = 22 nF, C2 = 10 nF): f₀ = 1 / (2π × 10e3 × √(22e-9 × 10e-9)) ≈ 1.073 kHz Q = 0.5 × √(22n / 10n) ≈ 0.742 (maximally flat passband!) Attenuation At 10 × f₀ (10.7 kHz): −40 dB (100× voltage reduction!)
4. Inspecting the −40 dB/Decade Bode Curve Inside NodeSim
Click Simulate Live Circuit above to load NodeSim's pre-wired 2nd-order Sallen-Key low-pass filter directly in ngspice. Run AC Sweep (.ac) from 10 Hz out to 1 MHz and inspect BOTH magnitude (dB) and unwrapped phase traces simultaneously.
Measure gain drop precisely one decade past f_0: compare −3 dB right at corner frequency f_0 against roughly −40 dB ten times higher in frequency—twice as steep as a 1st-order RC circuit! Note also phase lagging smoothly from 0 deg through −90 deg right at f_0 down toward −180 deg deep in the stopband.
Reference Component Values & Bill of Materials
| Part / Designator | Nominal Value | Role in Circuit |
|---|---|---|
| U1 (Op-Amp) | Universal / TL072 SPICE | Unity-gain voltage follower (or gain K stage) buffering output cleanly |
| R1, R2 (Series Filter Resistors) | 10 kOhm matched | Determine corner frequency scale alongside feedback caps |
| C1 (Feedback Bootstrap Cap) | 22 nF (or 2×C2) | Feeds output signal back ahead of R2 to set filter Q damping factor |
| C2 (Shunt Ground Cap) | 10 nF | Shunts non-inverting (+) input to ground above corner cutoff frequency |
Expected Waveforms & Simulation Verification
| Probe / Node | Analysis Type | Expected Waveform | Engineering Check |
|---|---|---|---|
| Vout (AC Gain dB) | AC Sweep (.ac) | 0 dB flat passband; -3 dB at f0; -40 dB/dec roll-off | Confirms second-order 2-pole Butterworth cutoff steepness |
| Phase(Vout) | AC Sweep (.ac) | 0 deg → -90 deg at f0 → -180 deg stopband | Verifies full 180-degree phase swing characteristic of 2-pole systems |
| Vout (Step Pulse) | Transient (.tran) | Smooth step rise with slight ~4% overshoot at Q=0.707 | Demonstrates complex-conjugate Butterworth transient impulse behavior |
Troubleshooting Common SPICE & Bench Mistakes
Hands-On Lab Exercises in NodeSim
- Increase C1 to 100 nF while holding C2 = 10 nF (lifting Q above 1.5) in NodeSim and observe the sharp resonant Chebyshev peaking crest rise cleanly on AC Sweep.
- Compare AC Sweep slope of this single-op-amp Sallen-Key filter directly against a 1st-order RC Low-Pass filter at 10× cutoff frequency (-40 dB vs -20 dB attenuation).
- Swap resistors R1/R2 and capacitors C1/C2 positions cleanly to transform this low-pass circuit into a 2nd-order Sallen-Key High-Pass filter and plot its +40 dB/dec sub-cutoff slope!
