Cool Responsive Slider

Your tweets light up this hat.

Instructions

The Easy Way

Post a tweet with the hashtag #xoxofest, and the hat will light up!

The Fun Way

Post a tweet with the hashtag #xoxofest, and include any one of these words: random, red, blue, green, yellow, white. The hat will do its best to obey.

The F2F Way

Come find me (@wubbahed). Then you can control the hat manually using a custom app.

How does it work?

The Short Answer

An Android app listens to Twitter and then tells the hat over Bluetooth how to light up!

The Long Answer

There are two pieces. For hardware, there is a Lilypad Arduino with a BLuetooth Mate Gold attached. This listens for and executes commands for how to control the four, multi-color LED lights. It's all powered by a Lithium polymer battery though I haven't done much testing, so I don't know how long it can go on one battery.

The logic for it all is running in a custom Android app on the Galaxy Nexus. Aside from handling the basic Bluetooth connection and providing basic manual controls of the hat, it starts a background service which connects to the Twitter Streaming API against a series of relevant hashtags. As the tweets come in, they are stored in local database, then parsed and if they contain a relevant word the appropriate command is sent to the hat.

Made Possible By

Twitter4J

An unofficial Java library for the Twitter API (compatible with Android)

Amarino

A toolkit, basically consisting of an Android application and an Arduino library which will help you communicate via Bluetooth between the two.

Sparkfun

Online store where you can buy Lilypad gear.

R/GA

I work here with an awesome bunch of very supportive folks.

BuzzApp

The free responsive template used to make this page.

XOXO Festival

The inspiration for this hat.