Real-time audio spectrum on an LED matrix
Sample a digital microphone with an ESP32, run an FFT in real time and show eight frequency bands dancing on an 8 × 8 LED matrix.
What this proves to recruiters
- You can run DSP on a microcontroller in real time.
- You understand I²S audio and buffering.
- You can make something people want to see.
Skills you will use
- I²S
- Real-time FFT
- Embedded DSP
- LED drivers
Parts list
You can buy the listed parts online here:
| Part | Qty | Approx. price | Shop |
|---|---|---|---|
| ESP32 DevKit V1 board | 1 | ₹400 | Find on Amazon |
| INMP441 I²S MEMS microphone | 1 | ₹250 | Find on Amazon |
| WS2812B 8×8 LED matrix | 1 | ₹450 | Find on Amazon |
| Breadboard, 830 points | 1 | ₹90 | Find on Amazon |
| Jumper wire set (male-male and male-female) | 1 | ₹120 | Find on Amazon |
| Total, about | ₹1,300 | ||
Prices are rough online prices in India and change with the seller. You may already have some parts, or find them in your college lab.
As an Amazon Associate I earn from qualifying purchases. Buying through these links costs you nothing extra and helps keep this site free.
Free software
- Arduino IDE with the arduinoFFT and FastLED libraries
Steps
- Wire the INMP441 to the ESP32’s I²S pins and read samples at 16 kHz.
- Collect 512 samples, apply a Hann window and run the FFT.
- Group the FFT bins into 8 bands spaced logarithmically (low bands narrow, high bands wide).
- Convert each band to a height from 0 to 8 using a dB scale.
- Draw the bars on the WS2812 matrix with a colour per band and a slow fall-off.
- Measure your frame rate and make sure it stays above 30 frames per second.
Make it stand out
- Run sampling and display in separate FreeRTOS tasks.
- Detect the beat and flash on it.
Put it on your resume
Built a real-time audio spectrum analyser on ESP32 (I²S mic, 512-point FFT, 8 log bands) at [x] fps on an LED matrix.
Replace each [x] with a number you measured. Real numbers make a line believable.
Keep going
This project fits stage 2, “Digital signal processing”, of the Signal processing and edge AI roadmap. See also how freshers get into embedded AI and DSP engineer jobs.