Kylo Ren's Lightsaber Based Audio Visualizer

by el10savio in Circuits > Arduino

704 Views, 0 Favorites, 0 Comments

Kylo Ren's Lightsaber Based Audio Visualizer

IMG_20160118_202714.jpg
kylo_ren.gif

Inspired by Kylo Ren's light saber I decided to make an audio visualizer using LEDs connected to an arduino and then use processing to pulse the LEDs based on the song...you guessed it right Imperial March.

Video

Kylo Rens's lightsaber based audio visualizer

Parts Required

IMG_20160118_202637.jpg

1. Arduino UNO with USB cable x1

2. Red LEDs [Because Dark Side!] x7

3. Jumper wires x7

4 Breadboard x1

5. 220 ohm resistors x5

Arduino Sketch

1.png
2.png
3.png
4.png
5.png
6.png
7.png
8.png
9.png

Here we link the arduino to processing using Firmata.

First we open up the arduino IDE

click Sketch

go to Include Library and click manage libraries

then in the text box we type Firmata and install it

once Firmata is installed we just need to open up the StandardFirmata program located int the examples folder inside Firmata library and upload it to the arduino.

Processing Sketch

1.png
2.png
3.png

Put this code in processing and run it after uploading the StandardFirmata program from the arduino IDE.

Before that click show sketch folder and paste the Imperial March mp3 song in it.

Processing utilizes the minim audio library to perform an analysis of the frequency variation of the song and in turn vary the brightness value of each LED.

Note:

If you don't have minim the steps to install it are shown in the pictures above.

Downloads

Setup

IMG_20160118_202650.jpg
IMG_20160118_202615.jpg
IMG_20160118_202629.jpg

Connect the LEDs as shown then connect a 220 ohm resistor to the positive end and connect all the resistors to ground of the arduino.

From the right connect the first led to pin 3.

next set of three LEDs to pin 5.

and rest three to pins 6,9 and 10.

Now you can enjoy the power of the dark side!