Project - Twitter Drumbot
This project was created because, as a member of HACMan, I was asked to provide an installation for the December 2010 'Playspace' event at Manchester's Contact Theatre. Since then it's also been shown at Maker Faire UK in March 2011, Brighton Mini Maker Faire in September 2011, Blank Media's User Generated Content exhibition in June 2011, and the 2014 Connected Communities Festival in Cardiff. It is also featured in the book Hack This! by John Baichtal
It plays the drums when people tweet certain words!
It's powered by an Arduino Diecimila with an Adafruit Ethernet shield. The Arduino reads an online PHP script every five seconds. The PHP script uses the Twitter search API to search Twitter for the desired word(s), and finds the latest matching tweet. It determines if this tweet has been found previously, or if it's new. The result is sent back to the Arduino. An LED flashes every time a successful connection is made.
If the tweet is new, the Arduino plays four bars of samba-style rhythms. At the start of each bar, each instrument chooses randomly from a set of pre-written patterns, so there are many possible combinations.
The instruments are struck by 'drumsticks' attached to solenoids, originally from HP laser printers. The solenoids are driven through a transistor interface (see diagram below), and are powered by a 24v power supply from a Canon printer.