finds.dev← search

// the find

DevonCrawford/LED-Music-Visualizer

★ 499 · C++ · MIT · updated Nov 2023

Create a realtime LED audio waveform based on the pitch and volume with Arduino

A minimal Arduino sketch that maps audio pitch and volume to WS2812B LED colors in real time, shifting the strip to create a scrolling waveform effect. It's a weekend hardware project, not a library — you're expected to wire up a frequency-to-voltage converter yourself and adapt the pin constants to your build.

The core idea is clean: pitch → hue, volume → brightness, shift array on each tick. Dead simple to follow. The 1ms polling loop is a reasonable starting point for audio-reactive work at this scale. At 107 forks it's clearly been useful as a starting point for people building similar rigs.

The entire project is one .ino file with no abstraction — if you want to change LED count, color mapping, or sampling rate, you're editing magic numbers inline. There's no mention of the specific frequency-to-voltage IC or circuit schematic, so you're hunting through a 2014 blog post to reproduce the hardware. The 100–600 Hz range covers voice and low instruments but drops most of the interesting high-frequency content in music. No MSGEQ7 or FFT-based approach means you get a single pitch value rather than a real frequency spectrum, so calling it a 'waveform' is generous.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →