Source: https://mokxi.com/learn/path/build-music-visualizer
Updated: 2026-11-20

All paths

# Build a music visualizer

Turn sound into light: levels, a fixed-point FFT into octave bands, beat detection, LED matrix bars, color themes and a party wall.

Arduino Uno R3 Free 6 lessons 5 h 3 chapters 1,685 XP Maker · Intermediate +150 XP

0 of 6 done

Start the course free Microphone levels Lesson plan for teachers

What you will build

## 3 projects, built step by step

6 lessons in 3 chapters, about 5 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.

Chapter 1 project

### Bands with FFT

Split sound into frequencies with a 64 point FFT in whole numbers: 62.5 Hz bins, the loudest found, bins gathered into octave-wide bands, and aliasing.
Open it in the simulator

Chapter 2 project

### Matrix bars

Draw the spectrum on a 16 x 8 WS2812 panel: eight bands as bars two columns wide, 4 dB a LED, with peak dots that hold and fall.
Open it in the simulator

Chapter 3 project

### Project: a party wall

Everything at once: bars, themes, a beat flash from the microphone, and an automatic gain so quiet and loud music both fill the wall.
Open it in the simulator

The map

## Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

## Hear the music

Levels, then frequencies with an FFT.

Open 205 XP

### Microphone levels

Sample sound 4000 times a second and measure it: the resting level, the RMS and the peak, and why a bare electret microphone barely moves the ADC.

0 of 5 steps

Start What is in it

Project Locked 410 XP

### Bands with FFT

Split sound into frequencies with a 64 point FFT in whole numbers: 62.5 Hz bins, the loudest found, bins gathered into octave-wide bands, and aliasing.

0 of 5 steps

4 questions, graded as you go.

Chapter 2

## Show the music

Beats that flash, and bars that dance.

Locked 174 XP

### Beat flash

Find the beat: a block of sound much louder than the running average flashes the panel, with a lockout, and a few beats give the tempo.

0 of 4 steps

Project Locked 348 XP

### Matrix bars

Draw the spectrum on a 16 x 8 WS2812 panel: eight bands as bars two columns wide, 4 dB a LED, with peak dots that hold and fall.

0 of 4 steps

4 questions, graded as you go.

Chapter 3

## Throw the party

Colors, then the whole wall.

Locked 174 XP

### Color themes

Color the bars three ways on a button: fire and ocean by height, rainbow by column on a hue wheel, every color worked out per LED.

0 of 4 steps

Project Locked 374 XP

### Project: a party wall

Everything at once: bars, themes, a beat flash from the microphone, and an automatic gain so quiet and loud music both fill the wall.

0 of 5 steps

3 questions, graded as you go.

Syllabus

## Every lesson in the course

All 6 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

### Hear the music

- Microphone levels Sample sound 4000 times a second and measure it: the resting level, the RMS and the peak, and why a bare electret microphone barely moves the ADC.
- Bands with FFT Split sound into frequencies with a 64 point FFT in whole numbers: 62.5 Hz bins, the loudest found, bins gathered into octave-wide bands, and aliasing.

Chapter 2

### Show the music

- Beat flash Find the beat: a block of sound much louder than the running average flashes the panel, with a lockout, and a few beats give the tempo.
- Matrix bars Draw the spectrum on a 16 x 8 WS2812 panel: eight bands as bars two columns wide, 4 dB a LED, with peak dots that hold and fall.

Chapter 3

### Throw the party

- Color themes Color the bars three ways on a button: fire and ocean by height, rainbow by column on a hue wheel, every color worked out per LED.
- Project: a party wall Everything at once: bars, themes, a beat flash from the microphone, and an automatic gain so quiet and loud music both fill the wall.

Keep going

## The next course on your track

Build a music visualizer is part of the maker track, a ladder of courses from zero to expert.

Next course

### Build a networked escape room

Three Unos on nRF24L01 radios run a three-room escape game: addresses, acks, retries, state sync, hints and resets from a game master panel.
Open the next course

Track

### Maker track

Follow the starter kit you already own, then build a claw machine, a balance bot, a handheld console or an LED cube, each a short course checked by the simulator.
See every course on the track

Kits

## Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

Have a kit already?

### Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.
See every kit

Questions

## About Build a music visualizer

Is Build a music visualizer free?

Yes. All 6 lessons of Build a music visualizer are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real Arduino Uno R3?

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.

How long does Build a music visualizer take?

About 5 hours: 6 lessons in 3 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.

What will I build?

Each chapter ends in a project that puts it together: Bands with FFT, Matrix bars and Project: a party wall.

Where do I start?

With "Microphone levels", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.
