LED Music Visualizer

July 17, 2013 0 Comments Hardware

I’ve spent the past few days finally working on the music visualizer that I’ve wanted to make for well over a year now. While there are a few issues, it still looks beautiful, so I decided to call the first version of this project “done”.


As the video shows, the visualizer doesn’t require much hardware knowledge. So long as you have the equipment to do some soldering (or at least a friend who does), this project is entirely viable.

Materials

Setup

  1. Solder on the header pins that came with the ShiftyVU shield and fit on top of Arudino.
  2. Replace the audio output from your computer with the Y splitter. Plug your normal output as well as the extra cable into the splitter. The extra cable plugs into the ShiftyVU shield.
  3. Desolder the LED strips from each other. They should come in sets of 16 LEDs. Cut each one in half for 8 LEDs per strip.
  4. Lay out the strips where you want them to be and measure how much wire you’ll need. The bars don’t necessarily need to be soldered in the same direction. In my case, every other strip is backwards. This is very easy to account for in software.
  5. Cut and strip all the wire you need. Solder the LED strips together with the wires, making sure you’re always connecting an output to an input (marked by “CO/DO” and “CI/DI” respectively). Here’s the Adafruit article on wiring this particular LED strip.
  6. Optionally, solder the JST SM plug to the input of the first strip. That way you can unplug the LEDs if it’s ever necessary.
  7. Plug in the power supply to the 2.1mm jack to screw terminal block converter. Attach a red wire to the + block and a black one to the - block. The red wire can go directly to the +5V on the LEDs, but the black one must be in a common ground with the Arudino. Luckily, the Arduino has 2 GND ports, so plug the black wire to one of those ports, and then run another black wire from the other GND pin to the LED’s GND wire.
  8. Plug the data wire (DI, green wire) into the Arduino’s digital pin 2 and the clock wire (CI, yellow wire) into digital pin 3.
  9. Download the source code from my GitHub repository, follow the installation instructions, then upload it to your Arduino.
  10. Put on some music and stare!

In the next version of this project, I’m planning on building a small circuit to read the audio in myself. As I explain in the video, the ShiftyVU does some filtering of the audio that doesn’t work well with spectrum analysis, but is good enough to make something visually pleasing.

Source Code

Github

In case you glanced over the setup section.

Progress

Here are some of the pictures I posted on Facebook and the videos I posted on Instagram as I was working on the project.

dat VU meter #arduino #daftpunk

A video posted by Robert Rouhani (@robertrouhani) on

Still a VU meter, but making progress... #arduino #musicvisualizer #parovstelar

A video posted by Robert Rouhani (@robertrouhani) on

My project, now with 100% more FFT and a better color gradient algorithm #arduino #colors #musicvisualizer #justice

A video posted by Robert Rouhani (@robertrouhani) on

Now the LEDs are mounted under the desk. It's impossible to tell from the video, but the frosted glass diffuses the light in a very cool way. #arduino #musicvisualizer #colors #digitalism

A video posted by Robert Rouhani (@robertrouhani) on

Share

Facebook Twitter