Our 45th president used to tweet like a madman. He would mock people, insult our allies, spread conspiracy theories, and often just blast out nonsensical rants. I built this machine as a personal project to bring to life the feeling of living in this chaotic environment. It spits out one ibuprofen pill every time the president tweets. The more he tweets, the more pills end up in the bowl.
A script running on a laptop constantly scanned twitter to see if the president had posted a new tweet on @realDonaldTrump. As soon as a new tweet appeared, a command was sent to the microcontroller and a small motor turned 360 degrees, dispensing a pill which fell out of the mouth and into the bowl.
These labs on serial communication and serial input from Tom Igoe at NYU ITP were very helpful. After a much simpler earlier design proved unreliable, I based the pill dispensing mechanism on this prototype posted by Frank Charbonier.