Arguably the most ridiculous thing I’ve ever created, but people get a kick out of it (myself included). Coded in Python.
ILoveTwitterLamp is a mains powered lamp that is controlled by the phrase “I love lamp” being sent to my Twitter account (note: It’s not enabled at the moment due to one misbehaving friend who shall rename anonymous for now! :D). It’s a fun way of linking the virtual world to the physical world.
- Raspberry Pi hooked up to a breadboard via PiCobbler
- Hooked up to a relay board capable of handling mains power.
- Main powered lamp
- On the breadboard there’s a momentary microswitch which resets the system (i.e. light off), waiting for any new tweets.
- Too much spare time
On the Raspberry Pi are some Python scripts for getting data from the Twitter API, whenever the phrase “I love lamp” is detected in either my home feed, direct message or mentions the relay board is triggered into action (via the GPIO pins) and my desk lamp turns itself on.
Python Code here: