A low pass filter is a circuit that allows low-frequency signals to pass through while attenuating (blocking) frequencies above a specific cutoff point. In a real circuit, it changes the frequency spectrum of a signal—smoothing a jagged PWM square wave into a clean DC analog voltage, or stripping high-frequency switching noise from a sensor reading before it hits an ADC. Beginners commonly confuse it with a high pass filter (which blocks bass/low frequencies and passes treble) or a band pass filter (which only allows a specific middle range). Think of it like a highway toll booth that only lets local, slow-moving traffic (low frequencies) pass straight through, while forcing fast, out-of-town trucks (high frequencies) into a heavily delayed detour.
The Math: Calculating Cutoff Frequency (With a Worked Example)
The most common topology for low-frequency applications is the passive RC (Resistor-Capacitor) filter. The critical metric is the cutoff frequency ($f_c$), also known as the -3dB point. At this exact frequency, the signal power is halved, and the voltage drops to 70.7% of its original amplitude.
The formula is straightforward:
f_c = 1 / (2 * π * R * C)
Worked Numeric Example: Smoothing an ESP32 PWM Signal
Let’s say you are using an ESP32 to generate a 20 kHz PWM signal to act as a pseudo-DAC (Digital-to-Analog Converter) for controlling an analog motor driver. You need to filter out the 20 kHz carrier wave and leave only the slow-moving DC control voltage. We will target a cutoff frequency of 1 kHz.
- Pick the Resistor: We choose a standard 10 kΩ metal film resistor. This is high enough to prevent the ESP32 GPIO from sourcing excessive current, but low enough to avoid excessive thermal noise.
- Calculate the Capacitor: Rearranging the formula to solve for C:
C = 1 / (2 * π * R * f_c) - Do the Math: C = 1 / (2 * 3.14159 * 10,000 * 1,000) = 0.0000000159 Farads, or 15.9 nF.
- Select the Real-World Part: Standard E12 capacitor values don't include 15.9 nF. We select the closest standard value: a 15 nF MLCC (Multi-Layer Ceramic Capacitor).
- Verify Actual Cutoff: Plugging 15 nF back in yields an actual cutoff frequency of 1061 Hz. This provides excellent attenuation for our 20 kHz PWM carrier (which sits nearly two decades above the cutoff, yielding roughly -40dB of attenuation).
Where You Meet This in Practice
You will encounter low pass filters in almost every mixed-signal and power electronics project. Here is where they do the heavy lifting:
- Microcontroller DACs (PWM Smoothing): Converting digital PWM outputs into smooth analog voltages for audio generation or analog control loops.
- ADC Anti-Aliasing: Placed directly before an ADC input (like the ESP32's notoriously noisy SAR ADC) to block high-frequency RF noise that would otherwise fold back into your digital readings and cause aliasing. See the Espressif Hardware Design Guidelines for specific ADC RC recommendations.
- Audio Crossovers: Routing low-frequency bass signals to a subwoofer while blocking high frequencies that could damage the speaker cone.
- Switching Power Supplies: Filtering the high-frequency switching ripple (often 100 kHz to 2 MHz) from a buck converter's output to provide clean DC to sensitive logic chips.
RC vs LC vs Active: Which Topology Should You Build?
Choosing the right filter topology depends entirely on your current requirements, signal type, and impedance constraints. Use the decision matrix below to select your approach.
| Application Scenario | Recommended Topology | Why It Wins Here | Concrete Component Pick |
|---|---|---|---|
| Microcontroller GPIO / Sensor Signal (< 10 mA) | Passive RC (1st Order) | Cheap, tiny, no power supply needed, perfectly adequate for high-impedance inputs. | 10kΩ 1/4W Metal Film + 100nF X7R MLCC |
| Audio Line-Level / Precision DAC Output | Active Sallen-Key (Op-Amp) | Provides gain, prevents loading effects, achieves sharper -40dB/decade rolloff. | TI TLV2371 Op-Amp + C0G/NP0 Caps |
| Power Supply Ripple / High Current DC | Passive LC (Inductor-Capacitor) | Inductors pass DC with near-zero voltage drop (unlike resistors which waste power as heat). | Wurth WE-PD Shielded Inductor + Low-ESR Electrolytic |
| RF / High Frequency (> 1 MHz) | Ceramic Pi-Filter (CLC) | Minimizes parasitic inductance, provides excellent high-frequency impedance matching. | Murata Chip Ferrite Bead + 1nF C0G Caps |
Common Build Mistakes and How to Avoid Them
Even with the right math, physical components introduce non-ideal behaviors that can ruin your filter's performance.
1. The Loading Effect (Impedance Mismatch)
A passive RC filter's math only holds true if the load connected to the output has infinite impedance. If you connect a 1 kΩ load to a filter with a 10 kΩ resistor, the load acts in parallel with your capacitor, altering the resistance and shifting your cutoff frequency drastically. The Fix: Buffer the output with a unity-gain op-amp (voltage follower) to present a high input impedance to the filter and a low output impedance to the load.
2. Using the Wrong Capacitor Dielectric
I’ve seen countless hobbyists slap a Y5V or Z5U capacitor on a 12V rail and wonder why their cutoff frequency drifts by 40%. These dielectrics suffer from severe voltage coefficient—a 10µF Y5V cap might only act like a 3µF cap when 12V is applied. The Fix: For signal filtering, always specify C0G (NP0) for values under 10nF, or X7R for values up to 10µF. For a deep dive into passive component behaviors, the All About Circuits AC theory chapter is an excellent reference.
3. Inductor Saturation in LC Filters
When building LC filters for power supplies, the inductor must handle the peak DC current without saturating. If the core saturates, its inductance drops to near zero, turning your filter into a simple capacitor and allowing high-frequency ripple to pass straight through. The Fix: Always check the inductor's $I_{sat}$ (saturation current) rating in the datasheet, and ensure it is at least 20% higher than your maximum load current.
Frequently Asked Questions
Q: Can I just use a massive capacitor to filter out all the noise?
A: No. While a larger capacitor lowers the cutoff frequency and blocks more noise, it also increases the RC time constant. This means your circuit will take much longer to respond to legitimate changes in the signal (settling time). In power supplies, massive capacitance can also cause destructive inrush currents when the circuit is first powered on.
Q: Why is my filtered PWM voltage lower than the microcontroller's logic high?
A: This is the loading effect in action. The resistor in your RC filter forms a voltage divider with the input impedance of whatever you are driving (like a motor driver or an oscilloscope probe). If the voltage sags under load, add an op-amp buffer stage immediately after the capacitor.
Q: Do I need a dedicated filter design tool?
A: For simple first-order RC filters, hand math is fine. But if you need a 3rd-order Butterworth or Chebyshev response for precision audio or anti-aliasing, use the free Analog Devices Filter Wizard. It calculates exact component values and simulates the phase shift and bode plot for you.
Stop guessing component values. Pick your topology based on the current and signal type, calculate the exact -3dB point using standard E12/E24 values, and always verify your capacitor's dielectric rating. For 90% of bench and microcontroller tasks, a simple 10kΩ / 100nF X7R RC filter is the definitive starting point.






