Tuesday, October 22, 2013

Led stripe music visualiser. #spotify #RaspberryPi #arduino

This hack start as a idea to connecting Spotify to philips hue and make them flash in sync to the music. But during the path off the project it become more about led lights =)

Music visualiser built in to TV table



There is four parts in the current configuration

  1. Spotify app
  2. Raspberry pi controlling an addressable led stripe (optional)
  3. Arduino controlling non addressable led stripe (optional)
  4. Philips hue (optional)

The Spotify app

Spotify have an api to get realtime analyse of the playing track so it is possible to do beat detection and other fun stuff. When i started this project I had no idea how to visualities music and just test different things to it locked good. The code is at the moment a mess but you can find it here https://github.com/evilmachina/spotify-hue 




Raspberry pi

The raspberry pi is running a node.js app that is connected to a digital RGB LED Strip LPD8806 from Adafruit and the Spotify app is connecting to the node app using socet.io. Code https://github.com/evilmachina/node-led-visualiser  

R-Pi



Arduino

The Arduino is controlling Ikea dioder and are connected to the Raspberry pi using serial port and changes colour in sync to the beat and intensity to the base band.  

Using aluminum foil as reflector for the dioder 

Philips hue

The philips hue is more as some extra mode lights due to the hub is not not fast enough. Have only bean able to get one light bulb blink in sync whit the music whiteout lagging. 



And of course we have a version of this at our office to :)

Earlier version

For smaller more portal music visualiser check out the LED jar.

Happy hacking!
Marcus

Updated: Added link to LED jar