Always wanted to take total control of your electric appliances even without being at home? Well, thanks to this instructable you will be able to do that and much more.
Some friendly suggestions before starting:
- Electricity is very dangerous, read and follow the "DANGER:" advices written in this instructable.
- If you don't have any experience in the field of electrics/electronics seek for supervision from a knowledgeable person, although the circuit it's very simple If you don't know why you are doing what it's being explained the odds are if you make a mistake you won't be able to notice it, leading to unpleasant consequences.
- NEVER EVER work on the circuit while it's connected to the grid, also don't do it with it connected to the arduino, some tin solders transmit small amounts of current that can damage it.
- A steady power supply is recommended if the relay will be on during long periods of time.
To build a plug to plug arduino based-controlled switch you will need the following materials:
-1x plug to plug with manual switch (we want our circuit to fit inside).
-1x 5V relay (that holds 240V and 10A, check the datasheet of the one I used here).
-1x 2N2222 (also called PN2222) transistor.
-1x IN4002 diode (I used a 4007, small variations are acceptable).
-1x 1000 to 500 Ohms resistor. (I used one of ~750Ω)
-1x Prototype board (1,5x2 inches should be enough).
-1Strip x Female pin header (just for convenience).
Total cost: ~$6.
And the following tools:
-Microcontroller (preferably an original Arduino® board, notice I'm using a cheap imitation).
-Thermofusible glue gun + some glue (epoxy would work even better)