Easy DIY Home Automation (using servo switches)

Easy DIY Home Automation (using servo switches)
This Instructable is all about one of life's simple actions, flipping a light switch on and off.

At oomlout we do it many times a day, so many in fact it came to a point where we asked ourselves "Can't we get an Arduino to do this?". Of course we can, what follows is how we went about doing it.

With the help of some acrylic, nuts and bolts and a small hobby servo we have made a great little switcher (we're calling it our Servo Switcher - (SESW)).

Features:
  • No need to mess with any high voltage wiring.
  • Switch is still operable by hand.
  • Easy to make and assemble

Applications:
  • Simple light switching.
  • Can be paired with sensor to make for more complicated applications. (security lights, temperature control on ceiling fans, night lights, the possibilities are endless) (some sensing examples are in a video on step 3 ).
  • Wire up a switch to a socket and control anything that has a plug.

(shameless plug)
If you feel like skipping the building and getting straight to experimenting lovely kits are available from the oomlout.com shop

(a small video of it running a demo program (ie. light switch rave)

 
Remove these adsRemove these ads by Signing Up
 

Step 1Parts & Tools

Parts & Tools
Two options here.

Option 1: Purchase a lovely kit from oomlout.com
  • kits with all the acrylic, bolts and servo motor are available from oomlout.com's web shop (here) ($20 or 3 for $40)

Option 2: Make your own.

Electronics
  • Mini Servo Motor - A small servo motor, these are available in many different power levels, but you will be requiring one of the stronger ones. We use (this one) (shipped from hong kong so can get quite pricey)

Nuts and Bolts: (available at home depot)
  • 3mm x 10mm bolt (x3)
  • 3mm nut (x2)
  • 3mm locknut (x1)
  • 3mm washer (x3)
  • 5mm washer (x4)
  • 6-32 x 1.25" machine screws (x2)

Acrylic - (several options)
  • Cut Your Own (Scroll Saw) -- Download the scroll saw pattern (03-(SESW)-Scrollsaw Pattern.pdf) glue it to a piece of 3mm Acrylic, cut and drill
  • Cut Your Own (Laser Cutter) -- Download (00-SESW-Parts File.eps or .cdr) and cut it on your laser cutter using 3mm acrylic
« Previous StepDownload PDFView All StepsNext Step »
42 comments
1-40 of 42next »
Sep 3, 2010. 2:05 AMmacmundi says:
Well done!! Though it can be achieved in a cheaper way without too many things hanging off the switch.
Aug 11, 2010. 6:04 PMDaniel Deacon says:
its not hard its just silly way of doing it ever thought about looking on ebay?
Nov 23, 2009. 1:06 AMstatic says:
  your design of the parts to operate a standard light switch, are similar how people used a float and a standard light switch, in years gone by. There are switches that use a low voltage relay to switch a lighting load, remotely. Those should be easier to come by as maybe less expensive than servos. An interest approach to do what has been done before.
Mar 21, 2010. 9:56 AMamdivoff says:
 hey static, could you point me to the switch your talking about?
Apr 18, 2010. 9:15 PMstatic says:
I hope my answer doesn't read like a cop-out,, but I don't have the catalogs readily at hand. The low voltage relays and the switches I have in mind are often used to control lighting fixtures in gymnasiums or other large rooms. the low voltage relay is located at the light fixture with the low voltage wiring that operates the relay ran back to the switch location. Often one rotary switch can control multiple fixture or multiple banks of fixtures. Also they are used to control the lights in long hallways from multiple locations. Perhaps you can find a local electrician or electrical parts retailer to show you.
Jan 6, 2010. 8:44 PMconrad2468 says:
 mind posting the files on thingiverse???? maybe turn them into .stl files?
Jan 19, 2009. 11:42 AMJakeTobak says:
Would have been better if you hit a switch to make the server hit the other switch.
May 25, 2009. 2:58 PMdagenius says:
very ironic. Hit a switch to trigger another switch.
Dec 26, 2009. 6:29 PMcomputer_guy says:
could you imagine? okay, hit this switch to switch on a switch a mile away to switch on a light here that will activate a switch that will turn off the switch.
Nov 23, 2009. 1:21 AMstatic says:
 There are many applications that use a switch to control another switch already in use. Often many layer of the technique. before the target gets switched.
Jan 22, 2009. 9:56 AMacidhax says:
How is this the hard way? Looks easy to me. The reason why he used motors is because this-> Servo < X10.
Nov 23, 2009. 1:16 AMstatic says:
 Not hard but overkill. There are devices that Arduino cold use to control the lights that would fit inside the switch box. 
Nov 22, 2009. 8:35 AMfkuk says:
use a plc
Nov 21, 2009. 3:15 PMbumsugger says:
Forgive me but I've yet to be "sold" on just what IS going on here,seems very much like using a "hammer to crack a nut !"
Nov 20, 2009. 4:23 PMMACKattacksnipe says:
if  you add like a sensor or something to your door so when you open it it turns the light on

Jan 22, 2009. 8:26 AMNirjuana says:
Sure you could do it this way but I'd go with the solid state relays.
May 3, 2009. 5:11 PMReCreate says:
They are called,TRANSISTORS! WOW
Nov 20, 2009. 2:31 PMSwishercutter says:
There is a big diffference between a transistor and a solid state relay.  Mainly transistors are not bidirectional.  SSR's use Triac's. 
Nov 20, 2009. 2:48 PMReCreate says:
oh...
Mar 27, 2009. 4:28 PMbman22 says:
i have been working on something similar. but instead of it being controlled with physical switches, it is controlled via internet. and my issue with solid state relay's, is that, because i wish to allow the user to turn the light on or off via both the switch and internet, i need to have a dual pole. Sadly, the solid state relays with dual throw are rare if existant
Jan 21, 2009. 1:15 AMgooseflight says:
Interesting solution but kinda ugly. I note that you want to steer clear of mains wiring but solid state relays is the way to go -- or X10.
May 25, 2009. 2:56 PMdagenius says:
I know this is prob'ly a stupid question, but wut is x-10?
Oct 31, 2009. 4:22 PMhumphreys7 says:
 X10 is a really easy way to do what you're trying to accomplish. It's a home control standard that's really easy and cheap to use. 
www.thehomeautomationstore.com/x10-home-automation.html

Thanks for the Instructable! My wife keeps flipping the switch to the power outlet I use to charge my computer. I'm always too lazy to get up and flip it, so I'm going to use your instructable combined with an IObridge so I can log onto my website, hit a button, and it will turn the outlet on. It's a 4-way switch, so I don't really know how to wire that with a relay.

Some people are mentioning solid state relays, the problem with most solid state relays, is they tend to flash on and off. This is because most of them are designed to let a few volts through, but then once a certain voltage is reached, they will trigger, and shut off. So this causes them to flash, which is the reason I go with regular relays. If you want a solid state relay, get a Z240D10 from OPTO22. www.opto22.com/site/pr_details.aspx
Nov 1, 2009. 8:33 AMdagenius says:
Not my Instructable!
Nov 1, 2009. 11:45 AMhumphreys7 says:
 Oh, right, I saw 3 of your comments, and kinda assumed..... no harm done.
May 25, 2009. 11:10 AMdagenius says:
You could also have rfid tag controll, of r/c, or a whole multitude of other options.
Mar 13, 2009. 4:31 AMparkinsonr says:
this will be great for me. I live in an apartment and can't install a store bought motion sensor switch, also with this being light activated I can turn on and off the light at night without getting out of bed and disturbing my wife!
Feb 9, 2009. 6:52 PMAvianjar says:
Have you considered using a relay with your arduino?? You could completely remove the light switch then! Cool project by the way.
Jan 22, 2009. 5:08 AMfroggyman says:
or you could do this the "old fashion" way and just get a bunch of string and some hooks. Anyways that would be more green, lol. I love it! 5stars
Jan 22, 2009. 4:59 PMvitruvian8807 says:
Yeah, I've had fun doing that, it really confuses people when you use fishing string and clear tape.
Jan 23, 2009. 5:11 AMfroggyman says:
yeah it does, and than you can also add in a trip line just above ankle level....
Jan 22, 2009. 9:58 AMddw_az says:
Like when Mr. Bean kept calling his home phone when he was away. Each time the phone would ring it would cause something to happen
Jan 21, 2009. 1:39 PMbwpatton1 says:
Thinking Out Loud- you could modify this to be "invisible" you could put this in the wall and drill a hole through the switch lever thingey:) and some how attach the servo. Hmmmmmmm..............
Jan 21, 2009. 1:25 PMantoine64 says:
that's great. a very interesting idea. of course you could have just used an automation switch like x-10 switches or wired in a relay. It seems like you did it the hard way. Good job though :)
Jan 20, 2009. 5:10 PMFaqMan says:
Great work hope to see this on the market soon.
Jan 20, 2009. 7:12 AMNachoMahma says:
. Great job! Rube Goldberg would be proud of this one. :) . Good luck with the business. This is the kind of "SPAM" I don't mind seeing.
Jan 19, 2009. 3:48 PMjaybuff says:
How are you powering the arduino in that video?
Jan 19, 2009. 7:03 PMjaybuff says:
I'm working on building an arduino controlled servo that unlocks my dead bolt whenever it sees certain RFID tags. From what I've read I suspect that it would drain batteries fairly quick. I have a light switch near by; i was hoping to power it from that in combination with a wall wart. Thanks for the post, this is very helpful!
Jan 19, 2009. 1:15 PMdosadi says:
Sorry, I don't get the appeal of this. X10 home automation hardware is a lot more flexible and modules cost less than $10 each on eBay. A serial interface X10 controller can be easily interfaced to an Arduino.
1-40 of 42next »

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
381
Followers
14
Author:oomlout