Sound Sensor — VU Meter (5 LEDs)
The louder the sound, the more LEDs light up
Sound
LEDs
analogRead
VU meter
What you will learn
- How to use map() to convert one range to another
- How to control multiple LEDs in parallel with one analog value
- How a VU meter is just a "bar graph" of sound intensity
What you will need
| Component |
|---|
| 1× 9V battery |
| 1× sound sensor |
| 5× 220Ω resistors |
| 5× LEDs (green, green, yellow, yellow, red) |
| 1× slide switch |
Step by step
Take it further
- Use analogWrite() on each LED to make the bar graph glow smoothly instead of digital on/off.
- Add a "peak hold" — the highest LED stays lit for 1 second after the sound drops, then falls back.
- Print a tiny ASCII bar graph to Serial Monitor: "▁▃▅▆█" that matches the LED pattern.
Practise it before you build it
Wire this circuit in the ThinkEdge Learn simulator first. The simulator runs a real Arduino sketch against a modified-nodal-analysis solver, so the LED on screen actually lights when the current is right — no hardware, no burnt components, and a class can try it in a browser.
Related projects
LDR — Light-Following Robot (Solar Tracker)It always faces the brightest spot
Ultrasonic — Pitch by DistanceCloser = higher pitch
Servo — Knob to AngleTwist to point
LDR — Sunrise Alarm ClockWhen the sun rises, the room wakes up with a soft glow
Arduino — RGB LED Color MixerThree pots, one RGB LED — mix any color of the rainbow
Police SirenAlternating red + blue LEDs with a wailing 600–1500 Hz buzzer
Guides that use this project
2 guides on the site build this project as part of a longer explanation. The guide says why the circuit works; this page says how to wire it.
ESP32-S3: What Changed and Why It Matters for Class BuildsThe ESP32-S3 adds a native USB port, Bluetooth 5 and vector instructions to the original ESP32. Here is what changed and what it means for class projects.
Flipper One and Sub-GHz Radio: What the Hardware Is DoingThe Flipper One pairs an RK3576 Linux computer with an RP2350 microcontroller. How its hardware works, what a sub-GHz radio really does, and where the legal line is.
Where this project sits
It is also part of these lists, which is how a class usually finds it.
Try the full simulator with your class
103 guided circuit projects, 21 lessons and an in-browser Arduino simulator. The first 15 projects are free, no account needed. One licence covers a whole school.