Have you ever built a circuit, only to find your microcontroller is reading a ton of random jitter, noise, and radio stations you didnât ask for?
Thatâs exactly where analog filters come in. Today, weâre going to clean up that messy data by building low-pass and high-pass filters. Itâs basically noise-canceling headphones for your microcontroller.

What is a Cutoff Frequency?
The most important concept when designing any filter is the cutoff frequency (often denoted as $f_c$). Think of the cutoff frequency as the âbouncerâ at the door of your circuit. It decides which frequencies are allowed to pass through and which ones get turned away.
Technically speaking, the cutoff frequency is the point where the signalâs power is reduced by half (also known as the -3dB point).
- In a low-pass filter, frequencies below the cutoff pass through effortlessly, while frequencies above are blocked (attenuated).
- In a high-pass filter, itâs the exact opposite: high frequencies pass, and low frequencies are blocked.
Key Takeaways for Building Filters
When putting these filters together on your breadboard, keep these points in mind:
- Passive Filters: These use only passive components like resistors (R) and capacitors (C). They are super simple to build, but they will slightly reduce the overall strength of your signal.
- Active Filters: These incorporate an operational amplifier (op-amp) alongside your resistors and capacitors. They require a power supply, but they can amplify the signal and prevent different stages of your circuit from interfering with each other.
- The Math: For a simple RC filter, you can calculate your cutoff frequency using the formula: $f_c = \frac{1}{2 \pi R C}$.
- Component Selection: Swap out your resistor or capacitor values to tune the cutoff frequency exactly where you need it for your specific sensor or audio application.
Grab your breadboards, and letâs start filtering out the noise!
Hardware Youâll Need
To follow along with this lesson, youâll need the following components: