Filtering out mains hum
A sensor's signal at 2 kHz has picked up mains hum at 50 Hz: the generator has both, the hum as its second tone. Press Run to see the mess on channel 1.
Design a filter to this specification:
| Frequency | Requirement |
|---|---|
| 50 Hz (hum) | cut by at least 20 dB |
| 2 kHz (signal) | lose no more than 1 dB |
A high-pass, with a 10 kΩ resistor, as in the picture. Your job: the capacitor.
The signal sets the highest the corner can go. A high-pass is −1 dB (0.891 of its input) where = 1.97. So, for the 2 kHz signal to lose no more than 1 dB, the corner must be at most:
Answer in Hz.
The hum sets the lowest. Well below the corner a high-pass falls 20 dB per decade, so −20 dB needs the hum a decade below the corner (exactly, = 9.95). The corner must be at least:
Answer in Hz.
Pick a capacitor that puts the corner in the window with 10 kΩ, and build it, with column 5 as the output (channel 2's probe):
- your capacitor from column 3 to column 5;
- 10 kΩ from column 5 to the − rail.
Now the reverse problem: keep the 50 Hz and remove a hiss above 10 kHz. Which filter?
- A high-pass with its corner near 500 Hz
- A low-pass with its corner between the two
- A band-stop at 50 Hz
Designing to a spec:
- Write the limits at each frequency that matters.
- Turn each into a limit on the corner: the signal you keep sets how close the corner may come; the one you cut sets how far away it must be.
- If there's a window, aim for its middle (in log terms), and pick the nearest standard part.
- If there isn't, one stage can't do it: add stages, or use a steeper filter.
On a real bench hum is usually better fixed at its source (a ground loop, an unshielded cable) than filtered out, because a hum filter also takes some of whatever signal sits near 50 Hz. Audio gear often uses a notch instead, cutting only a narrow band round 50 or 60 Hz.