music visualizer
Team Members¶
Section A - Joo Won Lee
Section B - Shlok Patel
Description¶
An RGB LED Music visualizer that analyzes WAV files stored on a microSD card or takes audio input from the MEMS microphone, and displays the volume levels onto 5 RGB LED strips arranged in a 8x5 grid. Additionally, playback of the WAV files can be manipulated with controller inputs sent from a smartphone connected with the Adafruit Bluefruit Connect app.
| Adafruit App Control | Function |
|---|---|
| Left Arrow | Previous file |
| Right Arrow | Next file |
| 1 | Pause file/restart file |
| 2 | Mute audio |
| 3 | Switch between Microphone mode and SD mode |
Presentation¶
Link to presentation slides - Download for voiceover
Schematic¶

Parts Needed¶
- One Mbed LPC1768

- Five 8-LED WS2812b WRGB LED Strips

- Sparkfun MicroSD Breakout Board

- Adafruit SPW 2430 MEMS Microphone

- Adafruit Bluefruit LE UART Friend

- Sparkfun TPA2005D1 Class D Audio Amp

- PCB Mount Speaker

- DC Barrel Jack

- 5V/2A AC to DC Power Adapter

- 330Ω Resistor (Orange - Orange - Brown - Gold)

- Smartphone with Adafruit Bluefruit Connect App

- (Optional) 10k Potentiometer

Wiring¶
WS2812b WRGB LED Strips¶
These LED Strips are chained together, with the output end of one strip connected to the input side of the next strip. Additionally, a 330Ω Resistor is placed in series between mbed p21 and LED strip DIN to prevent any issues from voltage spikes.
| mbed | LED Strips |
|---|---|
| GND | GND |
| P21 | DIN |
| VOUT (3.3v) | VCC |
| GND | GND |
MicroSD Breakout¶
| mbed | MicroSD Breakout |
|---|---|
| p8 | CS |
| p5 | DI |
| VOUT (3.3v) | VCC |
| p7 | SCK |
| GND | GND |
| p6 | DO |
| CD |
MEMS Microphone¶
| mbed | MEMS | 10uf decoupling capacitor |
|---|---|---|
| GND | GND | - |
| VU (5v) | Vin | + |
| p16 | DC |
Adafruit BLE Friend¶
| mbed | Adafruit BLE | DC Barrel Jack |
|---|---|---|
| GND | GND | - |
| VIN (3.3-16V) | + | |
| nc | RTS | |
| GND | CTS | |
| p27 (Serial RX) | TXO | |
| p28 (Serial TX) | RXI |
Class D Audio Amp + Speaker¶
| mbed | TPA2005D1 | DC Barrel Jack | Speaker |
|---|---|---|---|
| GND | PWR -, IN - | - | |
| PWR + | + | ||
| p18 | IN + | ||
| OUT + | + | ||
| OUT - | - | ||
| p29 | S |
Demo Setup¶

Demo Video¶
Code¶
Click here or navigate to the code tab at the top of the page