With the relay mounted (remember to leave some clearance) connect the hot (black) wires to the terminals on the relay and to the plug outlets.

Next we need to mount the 12V power supply to the box with some hot glue. while the glue is cooling get some 16Ga wire to connect the power supply to the outlet and tin the ends of the wires.
Connect the wires from the power supply (screw terminal) to the terminals for the AC in outlet and solder in place well.
Next we will mount our control board for this project. This is a simple Darlington transistor that is used to insure enough voltage arrives at the relay to trip it and reduce the load on the Arduino. We will connect it to the relay with some 16 Ga wire with tinned ends.
Finally we will add the Arduino with Ethernet shield installed to the box. I used some 3M command strips to mount it so if I wanted to remove it for future tinkering I could without damaging it. Connect the power supply to the Arduino and in the case of the demo source code your signal wire to the Arduinos pin 8 and power to 5V
OverView | Page 1 | Page 2 | Page 3 | Summary