Introduction: Arduino Controllable Lightswitch

Please see version 2 on my personal blog! 
http://echotwek.com/wp/2014/03/20/arduino-controlled-light-switch-v2/

When starting my quest for an automated household I learned a few things.

Off the shelve solutions are expensive,
DIY solutions are typically ugly.

and since i cant change the first thing,
i took it upon myself to try and fix the second thing.

DISCLAIMER.

this Instructable involves 
high voltage
sharp things
and other potential sources of bodily harm
do not attempt if you are not trained in such techniques
and etc.

this is my first instructable, so be kind.
also its not meant to be a complete instructable,
just a way for me to show you an idea i had that i thought was cool, it is in no means a finished project.


on the code side,
after you have dialed in what degrees are the max for on and off with the servo,
remember to call detach() about 300ms after telling the servo to turn your lightswitch "on"
or you will not be able to manually change the lightswitches state!

and a diode probably wouldn't hurt on the signal line so your not feeding back into your micro controller.






 

Comments

author
f0rc3 (author)2013-10-20

It would be nice if you say a little bit more regarding the wiring / power source or even post a circuit sketch. Neat idea though.

author
AdopteUnRoux (author)f0rc32017-01-05

This switch is a great idea !
I would also love to have some info about powering the arduino !

author
pborges475 (author)AdopteUnRoux2017-01-06

This is what I wanted to use, but theres not a ton of room in the box :(

https://www.aliexpress.com/item/Q17332-Hi-link-HLK-PM03-AC-DC-220V-to-3-3V-Step-Down-Buck-Isolated-Power/32634545400.html?spm=2114.01010208.3.10.8Fd9Bm&ws_ab_test=searchweb0_0,searchweb201602_5_10065_10068_10000009_10084_10083_10080_10082_10081_10060_10062_10056_10055_10037_10054_10059_10032_10099_10078_10079_10077_426_10103_10073_10102_10096_10052_10053_10050_10107_10106_10051,searchweb201603_9,afswitch_5,single_sort_0_default&btsid=e0813ebf-196e-4ca5-9e22-1a2590f9c966

author
wolf68_at_gmail_com (author)2014-02-26

Awesome, and intuitive solution. I would buy one of these. I cant seam to find this exact type of solution for sale. Please Post better instructions. This is exactly what I need for my new house. I have an outside light that I want this kind of switch for.

author
snander (author)2013-10-07

Nice instructable for the mechanical side of things. I can see this as being very useful. Great idea! A schematic, associated code, and identifying the remote would complete it.

author
pborges475 (author)snander2013-10-10

thanks, as for the code, i only have the demo code, i am working on a whole house automation system, for this demo i used https://code.google.com/p/rc-switch/ for the wireless and standard arduino servo code.

author
bfarm (author)2013-10-09

Its great in concept but wouldn't pass an electrical inspection. You don't meet the NEC if you modify devices.

author
audreyobscura (author)2013-10-07

You can use pixlr to rotate some of your images if you need to - that way they are easier to understand. Thanks for the share!

About This Instructable

19,897views

75favorites

License:

More by pborges475:Arduino Controllable Lightswitch
Add instructable to: