Thats why I decided to do this. To have the most functionalities possible I put a arduino inside the plug switch.
This way it was possible to add a light sensor to the plug and program it to turn on and off what is connected to it using a laser.
It just compares the last three reads and, if the second value is bigger than the first and the third one, it turns on/off the plug.
Here is a demonstration:
WARNING:
In this project it is required to open a device which has 220V in some parts, so be careful!
I'm not liable for anything stupid you do.
Remove these ads by
Signing UpStep 1: Gather the materials
- Home Automation System Switch
- Arduino - I decided to make one, but you can use any other
- 4N25 optocoupler
- 220 Ohm resistor
- LDR
- 10k Ohm resistor
- LED
- 220 Ohm resistor
-
Wires














































Visit Our Store »
Go Pro Today »




http://www.amazon.com/AmerTac-RFK100LC-Mounted-Switch-Receiver/dp/B000HJBE68/ref=sr_1_15?ie=UTF8&qid=1303759300&sr=8-15
You should be able to simulate what the RF receiver does ;)
I bought my kit in a local shop, so I find it quite hard to give you a link...
The only one I feel comfortable to give is this, which shows you how to build one: http://www.sparkfun.com/tutorials/119