Music Visualizer


It'll have music. It'll have lights. It'll be great.

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 ControlFunction
Left ArrowPrevious file
Right ArrowNext file
1Pause file/restart file
2Mute audio
3Switch between Microphone mode and SD mode

Presentation

Link to presentation slides - Download for voiceover

Schematic

https://os.mbed.com/media/uploads/spatel465/circuit-3-.png

Parts Needed

  • One Mbed LPC1768

200

  • Five 8-LED WS2812b WRGB LED Strips

200

  • Sparkfun MicroSD Breakout Board

200

  • Adafruit SPW 2430 MEMS Microphone

200

  • Adafruit Bluefruit LE UART Friend

200

  • Sparkfun TPA2005D1 Class D Audio Amp

200

  • PCB Mount Speaker

200

  • DC Barrel Jack

200

  • 5V/2A AC to DC Power Adapter

200

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

https://os.mbed.com/media/uploads/spatel465/resi.jpg

  • Smartphone with Adafruit Bluefruit Connect App

200

  • (Optional) 10k Potentiometer

200

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.

mbedLED Strips
GNDGND
P21DIN
VOUT (3.3v)VCC
GNDGND

MicroSD Breakout

mbedMicroSD Breakout
p8CS
p5DI
VOUT (3.3v)VCC
p7SCK
GNDGND
p6DO
CD

MEMS Microphone

mbedMEMS10uf decoupling capacitor
GNDGND-
VU (5v)Vin+
p16DC

Adafruit BLE Friend

mbedAdafruit BLEDC Barrel Jack
GNDGND-
VIN (3.3-16V)+
ncRTS
GNDCTS
p27 (Serial RX)TXO
p28 (Serial TX)RXI

Class D Audio Amp + Speaker

mbedTPA2005D1DC Barrel JackSpeaker
GNDPWR -, IN --
PWR ++
p18IN +
OUT ++
OUT --
p29S

Demo Setup

https://os.mbed.com/media/uploads/spatel465/mbed_setup.jpg

Demo Video

Code

Click here or navigate to the code tab at the top of the page


All wikipages