Arduino Controllable Lightswitch

21K758

Intro: 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.







8 Comments

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.

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

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

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.

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.
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.
Its great in concept but wouldn't pass an electrical inspection. You don't meet the NEC if you modify devices.
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!