A low pass filter is an electronic circuit that allows signals with a frequency lower than a specific cutoff point to pass through while attenuating higher frequencies. In a real circuit or installation, it changes jagged, high-frequency digital edges into smooth analog ramps, strips radio-frequency interference (RFI) off long sensor wires, and prevents high-frequency noise from aliasing into digital measurement systems. Think of it like a mechanical shock absorber on a work truck: it ignores the slow, heavy sway of the chassis (low frequencies) but absorbs the rapid, sharp hits from gravel (high frequencies). The most common mistake beginners make is treating the cutoff frequency ($f_c$) as a "brick wall" where all higher frequencies instantly drop to zero. In reality, a basic passive filter rolls off gradually, and at the exact cutoff frequency, the signal power is only halved (the -3dB point), meaning the voltage is still at 70.7% of its original amplitude.
Standard Component Pairings for Target Cutoff Frequencies
The foundational building block for analog signal conditioning is the passive RC (Resistor-Capacitor) low pass filter. The resistor is placed in series with the signal path, and the capacitor is placed in parallel to ground. The capacitor acts as a frequency-dependent resistor (reactance): it presents high resistance to low frequencies (forcing them to the output) and low resistance to high frequencies (shunting them to ground).
The cutoff frequency is calculated using the formula: $f_c = \frac{1}{2 \pi R C}$. When designing on the bench, you rarely have the exact theoretical resistor or capacitor value. Below is a data-dense reference table of standard E12/E24 component pairings used in real-world applications, showing the target versus the actual achieved cutoff frequency.
| Application Scenario | Target Cutoff ($f_c$) | Resistor (R) | Capacitor (C) | Actual $f_c$ | Bench Notes |
|---|---|---|---|---|---|
| Audio Treble Roll-Off | 2,000 Hz | 10 kΩ | 8.2 nF | 1,940 Hz | Use C0G/NP0 ceramic or film caps to avoid audio distortion. |
| PWM to DC (ESP32 5kHz) | 50 Hz | 330 Ω | 10 µF | 48.2 Hz | Requires op-amp buffering if driving a load under 10kΩ. |
| ADC Anti-Aliasing | 10,000 Hz | 1 kΩ | 15 nF | 10,610 Hz | Place physically as close to the ADC pin as possible. |
| EMI / RFI Snubber | 1,000,000 Hz | 100 Ω | 1.5 nF | 1,061,037 Hz | Use X7R ceramics; keep PCB traces extremely short. |
| Load Cell / Thermocouple | 10 Hz | 150 kΩ | 100 nF | 10.6 Hz | High R makes it susceptible to noise; use guarded traces. |
Worked Example: Smoothing an ESP32 PWM Signal to True DC
A frequent requirement in embedded projects is generating a variable analog voltage using a microcontroller that lacks a true Digital-to-Analog Converter (DAC). The ESP32 LEDC peripheral can output a 5,000 Hz PWM signal, but if you feed that directly to a motor controller or read it with a multimeter, you get a jagged 0-3.3V square wave, not a steady DC level. We need a low pass filter to smooth it.
Step 1: Define the Target Cutoff
To effectively eliminate the 5,000 Hz PWM ripple, the filter's cutoff frequency should be at least one-tenth of the PWM frequency. Let's target an $f_c$ of 50 Hz.
Step 2: Choose the Capacitor
Capacitors dictate the physical size and cost of the filter. A 10 µF capacitor is cheap, readily available in both electrolytic and multilayer ceramic (MLCC) formats, and provides a good baseline. Let's lock in C = 10 µF ($10 \times 10^{-6}$ F).
Step 3: Calculate the Resistor
Rearranging the cutoff formula to solve for R:
$R = \frac{1}{2 \pi \times f_c \times C}$
$R = \frac{1}{2 \times 3.14159 \times 50 \times 10 \times 10^{-6}}$
$R = \frac{1}{0.00314159} \approx 318.3 \Omega$
Step 4: Select Standard Values and Verify
The closest standard E12 resistor value is 330 Ω. Plugging 330 Ω and 10 µF back into the original formula gives us an actual cutoff frequency of 48.2 Hz. This is perfectly acceptable for smoothing a 5kHz signal.
If you measure the output of this 330Ω/10µF filter with a 10MΩ multimeter, you will see a beautiful, steady 0-3.3V DC signal. However, if you connect this filter to a 1kΩ load (like a motor driver input), the 330Ω filter resistor and the 1kΩ load form a voltage divider. Your maximum output voltage will drop from 3.3V to roughly 2.47V, and your cutoff frequency will shift upward. Fix: Always buffer passive RC filters with a rail-to-rail op-amp (like the LMV321) if the downstream load impedance is less than 100x the filter resistor value.
Where You Meet Low Pass Filters in Practice
Beyond smoothing PWM, first-order and second-order low pass filters are critical in several specific installation and design scenarios:
- ADC Anti-Aliasing: According to the Nyquist-Shannon sampling theorem, if your microcontroller's ADC is sampling at 20 kHz, any noise above 10 kHz will "fold back" into your digital data, appearing as false low-frequency signals. A hardware low pass filter set to 10 kHz at the ADC pin is mandatory to prevent this aliasing. Software cannot fix aliased data once it is digitized.
- Sensor Signal Conditioning: Slow-moving DC sensors like thermocouples, strain gauges, and pH probes produce millivolt-level signals. Long wire runs act as antennas, picking up 50/60 Hz mains hum and high-frequency RF from nearby VFDs (Variable Frequency Drives). A low pass filter set to 10 Hz strips out all this environmental noise while passing the slow thermal or mechanical changes you actually care about.
- Audio Crossovers: In multi-speaker setups, a low pass filter (often an active Sallen-Key topology or a passive inductor-based design) routes bass frequencies to a subwoofer while blocking mid-range and treble frequencies that would cause the subwoofer cone to distort or overheat.
Component Selection: Why Your Capacitor Dielectric Matters
When building filters, the resistor is usually straightforward, but the capacitor can silently ruin your circuit if you ignore its dielectric material. This is a common trap for hobbyists moving from breadboards to custom PCBs.
Avoid Y5V and Z5U Ceramics: These dielectrics are notorious for severe DC bias characteristics. A 10 µF Y5V capacitor rated for 6.3V might actually exhibit only 2 µF of capacitance when 3.3V DC is applied across it. This shifts your carefully calculated 48 Hz cutoff frequency up to 240 Hz, allowing massive PWM ripple into your analog circuit. Furthermore, they exhibit high piezoelectric microphonics—meaning physical vibrations on the PCB can generate voltage noise.
Use X7R or X5R Ceramics: For general-purpose SMD filtering up to a few microfarads, X7R is the standard. It maintains a much tighter capacitance tolerance under DC bias and temperature variations. For through-hole or larger values, aluminum electrolytic capacitors are fine for PWM smoothing, but be mindful of their Equivalent Series Resistance (ESR), which limits how much high-frequency ripple they can actually shunt to ground.
Use Film Capacitors for Precision: If you are designing an audio filter or a precision anti-aliasing stage for a 24-bit ADC, use Polypropylene (PP) or Polyester (PET) film capacitors. They offer near-ideal behavior with zero DC bias derating and extremely low dielectric absorption, though they are physically bulky and more expensive.
Frequently Asked Questions
What does the "-3dB point" actually mean in a low pass filter?
The -3dB point is the exact cutoff frequency ($f_c$). In terms of power, -3dB means the signal power has dropped by half (50%). In terms of voltage, it means the output voltage has dropped to $\frac{1}{\sqrt{2}}$ (approximately 70.7%) of the input voltage. It is the standard engineering convention for defining the "edge" of the passband, not the point where the signal disappears entirely.
Can I just use a massive capacitor to smooth my PWM signal perfectly?
Yes and no. Increasing the capacitor value (e.g., from 10 µF to 100 µF) will lower the cutoff frequency and reduce the high-frequency ripple voltage. However, it also drastically increases the settling time of the filter. If your code commands the PWM to jump from 10% to 90% duty cycle, a massive capacitor will cause the output voltage to slowly ramp up over several hundred milliseconds rather than snapping to the new level. You must balance ripple reduction against response time.
When should I use an active filter instead of a passive RC filter?
Switch to an active filter (using an op-amp) when you need a steeper roll-off (like -40dB/decade or higher), when you need to drive a low-impedance load without suffering the loading effect, or when you need the filter to provide signal gain rather than just attenuation. Passive filters are strictly limited to a maximum gain of 1 (0dB) and roll off at a gentle -20dB/decade per stage.
For further reading on the mathematical foundations of filter design and the differences between active and passive topologies, refer to the All About Circuits textbook chapter on passive filters. Understanding the physical limitations of your components is just as critical as the math on the page; always verify your filter's actual frequency response on an oscilloscope using a function generator before committing a design to a final PCB.






