Greg SchaferSoftware DeveloperBoulder, CO, USA

ProjectsThings I've built

ThoughtsWhat I'm thinking about

GuidesCode-related tutorials and guides

HobbiesGaming, sports, cooking, etc.

DataViz: Music Goggles

01 May 2013

What

After many software projects in our Data Visualization class (we scraped Twitter for DHS keywords, blended Toy Story, and mapped filming locations with Three.js), we decided to try something with hardware.

We used a Raspberry Pi to play music and to control LEDs set in goggles in time with the music. The goggles were sandblasted so that the wearer would be immersed/isolated within the music and lights.

For making the goggles, we started with chemistry/lab goggles and a breadboard on top, then eventually moved on to welder’s goggles which were easier to mount LEDS in.

Goggle versions

After lots of wiring, soldering, and writing python to run on the pi, the goggles were done! It’s definitely not the prettiest headgear, but it worked on the first try incredibly.

Goggles done

After building the goggles was complete, we did a lot of code-tweaking to match the music better and to be more visually pleasing. The below video shows one of our early efforts, when it was still a bit seizure-ific:

We made it less flashy by lowering our beat detection threshold (so the color would change less often) and by keeping the LEDs on between beats. Unfortunately, we didn’t get a more up-to-date video or one with synced audio. Check below for the code and specific tools/libraries that we used.

Tech