IIR filters
The exponential moving average: one line, one variable, and a memory that never quite forgets. Its time constant measured on a square wave, and the trade between smoothing and lag.
Open it in the simulatorSignals into numbers and back, on the Uno and the ESP32: sampling and aliasing, moving averages and FIR filters, IIR filters, the FFT, windows and leakage, pitch and beat detection, and a guitar tuner on a microphone and a TFT.
0 of 7 done
7 lessons in 4 chapters, about 7 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.
The exponential moving average: one line, one variable, and a memory that never quite forgets. Its time constant measured on a square wave, and the trade between smoothing and lag.
Open it in the simulatorAutocorrelation finds the pitch of a note on A0 whatever its wave shape, and an onset detector on A1 finds a drum’s beat and its tempo, measuring pitch in the quiet between beats.
Open it in the simulatorEach lesson opens when the one before it is done, and each chapter ends in a project.
What a fixed sample rate can see, and what it gets wrong.
An Uno samples a signal generator at exactly 1000 Hz and finds the frequency in its samples: right up to 500 Hz, and a false, lower one above it. Aliasing, seen and measured.
0 of 7 steps
Moving average, FIR and IIR, measured on real hum and steps.
A slow sensor with mains hum on top, at 500 samples a second: a 10-point moving average that cancels 50 Hz exactly, a 15-tap FIR low-pass, and what happens at 60 Hz.
0 of 6 steps
The exponential moving average: one line, one variable, and a memory that never quite forgets. Its time constant measured on a square wave, and the trade between smoothing and lag.
0 of 6 steps
The FFT, windows, and finding pitch and beat.
128 samples at 4000 Hz through arduinoFFT on an Uno: bins 31.25 Hz apart, the biggest one is the pitch, a square wave shows its odd harmonics, and a tone above Nyquist folds into the spectrum.
0 of 7 steps
A tone between two bins smears across the whole spectrum. The same capture through the FFT with no window and with a Hamming window, and the leakage eight bins away measured both ways.
0 of 6 steps
Autocorrelation finds the pitch of a note on A0 whatever its wave shape, and an onset detector on A1 finds a drum’s beat and its tempo, measuring pitch in the quiet between beats.
0 of 7 steps
A guitar tuner from microphone to needle.
An ESP32 listens through an INMP441, decimates, autocorrelates, names the nearest guitar string and shows the cents on an ILI9341 with a needle that turns green in tune.
0 of 8 steps
All 7 lessons, in order, each with what it covers. Any of them opens in the editor right away.
Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.
Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.
See every kitYes. All 7 lessons of Digital signal processing are free and run in your browser, with nothing to install and no parts to buy before you start.
No. Every lesson runs on a simulated Arduino Uno R3 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.
About 7 hours: 7 lessons in 4 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.
Each chapter ends in a project that puts it together: IIR filters and Pitch and beat detection.
With "Sampling and Nyquist", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.