LED Cube

By Kyle Goins, Corbett Kaniff, Mitchell Spears, and Leo Wang

Task Delegation:

  • Kyle Goins - mbed code for audio signal processing and cube patterns, speaker and 3.5mm input implementation
  • Corbett Kaniff - LED cube construction
  • Mitchell Spears - SPIO implementation, breadboard wiring, mbed code for audio signal processing and cube patterns
  • Leo Wang - Web app and WiFi functionality

Goal:

The overall goal of this project is to construct a 4x4x4 LED Cube that blinks in sync with music. Utilizing a 3.5mm input into the mbed, the cube analyzes the incoming signal and blinks the different layers in sync with the amplitude of the incoming signal. The 3.5mm input also outputs to a speaker amplified by a Class D amplifier, making it so that audio can be played while using the LED Cube.

An SPI IO expander is used to select LEDs to light up. In order to light up a certain LED, its row and column is selected within the code. There are also several patterns available for the cube, all of which can be chosen from a web app that communicates with the mbed using the Adafruit ESP8266 Huzzah WiFi controller.

Hardware:

mbedhuzzahtrrsClass D AmpSpeakerMCP23S17LED Cube
p5SI
p6SO
p7SCK
p15CS
p19TIPIN +
p21layer 0 BJT Base
p22layer 1 BJT Base
p23Layer 2 BJT Base
p24Layer 3 BJT Base
p26RST
p27TX
p28RX
VOUTVCC
gndgndIN -VDD, A0, A1, A2gnd
5V
out ++
out --
GPIOA0..A7
GPIOB0..B7

Pinout: /media/uploads/kgoins3/doc1.png

Code:

Import programLED_CUBE_web_app

Web app and controls for LED Cube

Web App:

The web app selects which mode the LED Cube uses to sync to the music. Here is a screenshot of the UI:

/media/uploads/kgoins3/screen_shot_2018-12-13_at_9.44.47_am.png

Picture:

/media/uploads/kgoins3/screen_shot_2018-12-11_at_3.15.12_pm.png

Videos:


Please log in to post comments.