Paul Spelman Emoji
Paul Spelman Emoji
  • Projects
  • —
  • About Me

Presidential headache

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.

How it worked

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.

Technical details and gear

I used the Twit library to access the Twitter API, and the Javascript is running via Node.js. The Arduino is hooked up to a driver and a stepper motor, which turns a plastic disc inside a DIY pill dispenser. The pill dispenser was made from some old protein powder tubs, plastic sheets, a funnel, and a bunch of duct tape. The rubber mask is from Amazon.

Code and Reference

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.

Picture of the POTUS Painkiller project
Next Project — Previous Project — Home