Last Christmas I decided I had spent enough time bending over the various chairs to reach the switch to turn on and off the Christmas tree lights. So I bought a set of Energenie remote-controlled mains switches. I decided that this would be a great device to wire up to the Raspberry Pi, because I could then program the Pi to control my Christmas lights during the day. Unfortunately, the small remote control supplied with the distribution board does not have any mechanism of external control. So I got in contact with Energenie, the manufacturers of these great devices, to invite them over to Pi Towers and show them what a great thing Raspberry Pi is and why they should create a Raspberry Pi add-on to be able to control the devices… A couple of months later I get a visit from their team, who showed me the results of quite a bit of engineering (and a little fun I think): A little bit of information from the guys at Energenie:
While Amy Mather was in the office earlier in the year to do some work experience, I asked her to think of something she could do with the system and to write some code to prettify the existing Python code. She started by writing a basic function to control power sockets using some binary logic, and proceeded to hack one of the built-in Python games in Raspbian to make it play a song and turn on some disco lights when the player wins the game. Cue the music: …finally Rick-Rolled the Raspberry Pi blog! See Amy’s example code and the modified memory puzzle game on her GitHub. The basic usage for Amy’s energenie module looks like this: Want to control something simple from your Pi? Washing machine, Vacuum cleaner, liquidiser (create your own cat scarer): Buy yours at energenie4u.co.uk! |
A Semi-automated Technology Roundup Provided by Linebaugh Public Library IT Staff | techblog.linebaugh.org
Thursday, June 26, 2014
Controlling electrical sockets with Energenie Pi-mote
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment