Intro: Kylo Ren's Lightsaber Based Audio Visualizer
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.
Step 1: Video
Step 2: Parts Required
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
Step 3: Arduino Sketch
Here we link the arduino to processing using Firmata.
First we open up the arduino IDE
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.
Step 4: Processing Sketch
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.
If you don't have minim the steps to install it are shown in the pictures above.
Step 5: Setup
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!