Randomland - The Forum

Technology => Hardware and Software => Topic started by: zourtney on Aug 14, 2013, 07:42 PM

Title: Raspberry Pi controlled outlet box
Post by: zourtney on Aug 14, 2013, 07:42 PM
Alright, the hardware portion of my Pi-controlled AC outlet project (http://randomland.net/forum/index.php/topic,274.msg5707.html#msg5707) is done! The 4 outlets are independently controllable via software.

Now, I had trouble finding a thorough tutorial for this simple project. I might come back and update this post with a parts list, some novice-friendly wiring diagrams, snarky commentary, etc. I might even write up a Randomland-proper article, if we can straighten out our image hosting.

But for now, here are some pictorial highlights...or catch 'em all (https://plus.google.com/photos/118263545785118510462/albums/5912161667761819489)!

(https://lh5.googleusercontent.com/s5e4EI-SaDwvO4LnMSfJq4jMduKfz4_Z7HjNnMMXAGM=w284-h189-p-no) (https://plus.google.com/photos/118263545785118510462/albums/5912161667761819489/5912161666640019730?pid=5912161666640019730&oid=118263545785118510462) (https://lh5.googleusercontent.com/L5VZpljXQ5LW17rev_tf6iLx20w30rkXqmm-HGYGZdI=w284-h189-p-no) (https://plus.google.com/photos/118263545785118510462/albums/5912161667761819489/5912161908512272146?pid=5912161908512272146&oid=118263545785118510462)
(https://lh4.googleusercontent.com/eR4owzYynz6YyRKHdP1jqVw0Z8NCrpQhZrm3jEM-AJo=w284-h189-p-no) (https://plus.google.com/photos/118263545785118510462/albums/5912161667761819489/5912162556324897186?pid=5912162556324897186&oid=118263545785118510462) (https://lh5.googleusercontent.com/8-Ug38YXbTIwtq5Zyc05pIMCuhrc7EvMeMNeLsB8bkA=w284-h189-p-no) (https://plus.google.com/photos/118263545785118510462/albums/5912161667761819489/5912162974720828866?pid=5912162974720828866&oid=118263545785118510462)
(https://lh6.googleusercontent.com/x15FYuepm11dURVWq4QXSrXH9z2gzH78-DcMPrYcVQA=w320-h213-p-no) (https://plus.google.com/photos/118263545785118510462/albums/5912161667761819489/5912163948241716818?pid=5912163948241716818&oid=118263545785118510462) (https://lh3.googleusercontent.com/xAAz11mul-TI-cgENnAlM2fh0Vg04nQPkKvpHy7le94=w285-h189-p-no) (https://plus.google.com/photos/118263545785118510462/albums/5912161667761819489/5912163644695656002?pid=5912163644695656002&oid=118263545785118510462)
(https://lh5.googleusercontent.com/tOv1RVKPFiVyN7YnxGr86xn1LSVtGMc1Ny7DwSY1ilQ=w311-h207-p-no) (https://plus.google.com/photos/118263545785118510462/albums/5912161667761819489/5912164301136694914?pid=5912164301136694914&oid=118263545785118510462)
Title: Re: Raspberry Pi controlled outlet box
Post by: Cody on Aug 17, 2013, 09:22 AM
This is even more awesome sounding when I can see pictures of it! I'd try it, but I'm not sure I have the patience or need for it.  :P
Title: Re: Raspberry Pi controlled outlet box
Post by: zourtney on Aug 17, 2013, 02:03 PM
Haha, need? No, probably not. I'm not even sure what to do with it. Maybe some Christmas-time obnoxiousness? More permanently, I'll probably set it up in the living room or by the fish tank.

Anyway, as someone with a clue as to what he's doing, you could easily whip it out in an afternoon. The end result is quite basic. Basically, you're just wiring 4 switches that happen to be sitting snugly on a little blue circuit board. The biggest hurdle for me was the whole AC-wiring-demystification process.

But being (very) slow, careful, and wiring everything up 3 or 4 times in different configurations mean that I'll probably retain a good portion of what I learned. And that's what I really enjoyed about all this.



Edit: I can whip out a parts list and a juvenile wiring diagram, if you want to try it.



Edit 2: attached screenshot of my crappy web UI that lets you toggle outlets individually, or all at once.
Title: Re: Raspberry Pi controlled outlet box
Post by: zourtney on Aug 27, 2013, 07:57 AM
It ain't no pirate ship (http://randomland.net/forum/index.php/topic,273.msg5782.html#msg5782)...but I did spent a few hours to make a phone app for my light controller project. Maybe I'll make an Android one now?
Title: Re: Raspberry Pi controlled outlet box
Post by: Brad on Aug 27, 2013, 01:28 PM
That would be cool! You going to make it so we can control your house remotely? haha
Title: Re: Raspberry Pi controlled outlet box
Post by: zourtney on Aug 27, 2013, 07:17 PM
Thank goodness for router firewalls :)