Sunday, January 27, 2013

Weekend Dork Project: Magic Button


Having done some "work" to get the Raspberry Pi (RPi) to display information (current date and IP address output to a 2-line LCD), I wanted to do a project that, with a minimal user interface, did something a bit more. I wanted to again use the GPIO pins, this time to take physical user input and Do Something Interesting.



Earlier Saturday Dork Project: Get the Raspberry Pi talking (via Python script) on the GIPO pins to a freshly-soldered up mini LCD: At boot, outputs time stamp and current IP address (of Pi) to LCD. 







I imagined a user interface of a single button. Something elegant about that, to me. It won't ask what Web browser I am using or demand that I install a plugin.

Pressing the button could do any number of things. A Python program similar to this one runs, listening on the GPIO ports for a button press. Right now, pressing the button causes the program to send a file with status information to the Pi's local mail server which is configured to use Gmail to send mail. It then sends the email to an SMS email address. Ultimately, the phone receives a text message (video below).














No comments: