PDA

View Full Version : Internet-Enabling a Lamp with the Raspberry Pi



wraggster
December 11th, 2013, 23:57
http://hackadaycom.files.wordpress.com/2013/12/lampcontrol.jpg?w=530&h=342 (http://hackadaycom.files.wordpress.com/2013/12/lampcontrol.jpg)
[Jack] sent in his writeup for internet enabling a home lamp (http://jack.minardi.org/raspberry_pi/make-an-internet-controlled-lamp-with-a-raspberry-pi-and-flask/). While we will certainly have some comments saying this is too simple, it does a great job of breaking things down to the basics. For those that aren’t confident in their electronic skills, this is an easy hack to a commercial device that greatly expands it’s capabilities. [Jack] started with a cheap wireless outlet controller (http://www.amazon.com/gp/product/B003ZTWYXY/ref=as_li_qf_sp_asin_tl?ie=UTF8&camp=1789&creative=9325&creativeASIN=B003ZTWYXY&linkCode=as2&tag=jackminardior-20). By opening the remote and wiring each switch to a 2N222A transistor, you can very easily control the remote from the GPIO pins on the Raspberry Pi. In [Jack's] case, he set up a web page using Flask (http://flask.pocoo.org/) that allows quick on/off control.
Of course, this method can be used in any number of instances where you have a wireless controller, from small lamps to garage doors. Given it’s simplicity, anyone can do it with even basic skills. If you’re a beginner who’s been itching to do some home automation, follow [Jack's] writeup and check an item off your todo list!

http://hackaday.com/2013/12/11/internet-enabling-a-lamp-with-the-raspberry-pi/