A tunable notch filter is an active or passive circuit designed to heavily attenuate a specific, adjustable narrow band of frequencies while allowing all other frequencies to pass through unchanged. When you drop this circuit into a signal chain, it changes the frequency response by carving out a deep, V-shaped hole at a target interference frequency—without rolling off your high-end audio or low-end sensor data. People commonly confuse notch filters with band-pass filters; a band-pass filter only lets the target frequency through, whereas a notch filter destroys the target frequency and lets everything else survive.

The Core Concept and Topology Selection

If you are trying to clean up a signal, you need the right tool for the job. A low-pass filter acts like a brick wall, chopping off everything above a cutoff. A notch filter acts like a surgical scalpel, removing only the exact frequency causing you grief. In practical electronics, we rarely use passive notch filters for audio or sensor work because achieving a deep, narrow notch requires massive, expensive inductors. Instead, we use active topologies built around operational amplifiers.

The two most common active topologies you will encounter on the bench are the Twin-T and the Fliege filter. The Twin-T is a classic bridge network that is easy to calculate but notoriously difficult to tune because adjusting the frequency also alters the Q-factor (the sharpness of the notch). The Fliege topology uses two op-amps and allows you to tune the center frequency and the Q-factor independently, making it vastly superior for real-world troubleshooting. For the math below, we will use the classic Twin-T to establish the baseline component values.

The Math and the Bench: A 60 Hz Hum Numeric Example

Let us design a filter to kill standard North American 60 Hz mains hum. The center frequency ($f_n$) of a standard Twin-T network is determined by the formula:

$f_n = \frac{1}{2 \pi R C}$

To make the math and component selection practical, we start by picking a standard capacitor value. Let us use 100 nF (0.1 µF) polypropylene film capacitors, which offer excellent stability and low dielectric absorption compared to cheap ceramics.

  1. Calculate the base resistance: Rearranging the formula for R gives $R = \frac{1}{2 \pi f_n C}$. Plugging in 60 Hz and 100 nF yields $R \approx 26,525 \, \Omega$.
  2. Select the fixed resistor: We will use a 24.9 kΩ 1% metal film resistor as our base. This gets us close to 60 Hz but slightly high.
  3. Add the tuning element: To make it tunable, we place a 5 kΩ cermet trimpot in series with the 24.9 kΩ resistor. This gives us an adjustable range from roughly 53 Hz to 64 Hz.
  4. Boost the Q-factor: A passive Twin-T has a miserable Q of 0.25, meaning the notch is wide and shallow. We wire the Twin-T network into the positive feedback loop of an op-amp (like the low-noise OPA2134) to boost the Q to 15, yielding a deep, narrow attenuation of >50 dB.
Bench Tip: Never use 5% carbon composition resistors or Y5V ceramic capacitors in a notch filter bridge. The component tolerances will unbalance the bridge, physically preventing the filter from achieving more than 15-20 dB of attenuation, no matter how perfectly you tune the potentiometer. Always use 1% metal film resistors and C0G/NP0 or film capacitors.

Where You Meet This in Practice

You will find tunable notch filters hiding in plain sight across several disciplines:

  • Audio Engineering: Eliminating 50 Hz or 60 Hz ground loop hum and fluorescent lighting buzz from microphone preamplifiers and guitar pedalboards.
  • Biomedical Sensors: ECG and EEG machines operate in the microvolt range. A tunable notch filter is mandatory to strip out mains interference picked up by the patient's body without destroying the low-frequency ST-segment data of the heartbeat.
  • Power Line Communication (PLC): Smart meters and home automation PLC modules use notch filters to block specific switching frequencies generated by variable frequency drives (VFDs) and solar inverters.
  • Vibration Analysis: In industrial accelerometers, notch filters remove the constant rotational frequency of a motor so the FFT can clearly display the higher-frequency bearing defect harmonics.

Real-World Scenario: Killing Dimmer Switch Noise in a Preamplifier

Theory is clean; the bench is messy. Here is how a tunable notch filter actually behaves when things go wrong.

The Setup: I was building a high-gain moving-coil phono preamplifier. The test bench was located near a wall switch equipped with an older TRIAC-based dimmer. The dimmer was injecting a harsh 60 Hz buzz and its odd harmonics into the unshielded input traces of the preamp. I designed an active Fliege notch filter using an LM4562 dual op-amp to surgically remove the fundamental 60 Hz noise before the second gain stage.

The Numbers: I targeted $f_n = 60.2$ Hz. I used 27 kΩ fixed resistors and a 10 kΩ multi-turn Bourns 3296W trimpot for frequency tuning, with a separate 100 kΩ pot on the feedback loop to dial in the Q-factor. The theoretical attenuation was 65 dB with a Q of 30.

The Outcome: Sweeping the trimpot while watching the FFT on a Rigol DS1054Z oscilloscope, I found the exact null. At 60.2 Hz, the noise floor dropped from an unusable -40 dBV down to the thermal noise floor at -85 dBV. The fundamental hum was completely eradicated.

What Went Wrong: When I tapped the enclosure, a loud scratching sound blasted through the speakers. The trimpot introduced microphonic wiper noise due to chassis vibration. Worse, because I had cranked the Q-factor up to 30 to get maximum depth, the filter introduced severe phase shift and transient ringing. Every kick drum transient caused a 60 Hz 'boing' tail that muddied the bass.

The Fix: I swapped the standard trimpot for a sealed, 15-turn Bourns precision potentiometer to eliminate wiper microphonics. More importantly, I added a fixed resistor in series with the Q-adjustment pot to hard-limit the maximum Q to 12. I traded 15 dB of notch depth for transient stability, resulting in a filter that killed the hum without destroying the audio fidelity. According to filter design principles outlined by Electronics Tutorials WS, managing the Q-factor is always a trade-off between rejection depth and transient ringing.

Troubleshooting and Common Mistakes

Q: Why is my Twin-T notch filter only attenuating by 12 dB instead of the expected 60 dB?
A: Your bridge is unbalanced. In a Twin-T network, the ratio of the resistors and capacitors must be exact. If your '2R' resistor is actually 2.1R due to tolerance, the destructive interference at the summing node fails. Measure your components with an LCR meter and match them to within 0.1%, or use a trimmer resistor in one of the bridge arms to balance the depth.

Q: Should I put the notch filter at the input or the output of my signal chain?
A: Almost always at the input or between early gain stages. If you amplify a 60 Hz hum by 60 dB in your first stage, you risk clipping the op-amp's voltage rails. Once an op-amp clips, it generates massive harmonic distortion that a 60 Hz notch filter cannot fix. Filter early, amplify later.

Q: Can I just use a digital (DSP) notch filter instead of analog?
A: Yes, if your signal is already digitized. However, as noted in All About Circuits active filter design guides, analog notch filters are critical before the Analog-to-Digital Converter (ADC) to prevent the interference from consuming your ADC's dynamic range or causing aliasing artifacts.