Step 3Build Your Relays
I used Omron G5LE-1 relays, attaching wires with solder for the electrical connections and then adding hot glue around them for some structural integrity.
As per this guide, you should make sure to run the white wire directly to the outlet / end of extension cord and the black wire through the relay. For this to be useful, you'll also need to make sure you plug your creation into the wall corectly: black wire to small slot...
See photo 3 for a view of how you place the diode.
Obviously, you're now dealing with more potential to hurt yourself: AC does not feel good!
Oh, and there's no reason you can't use outlets or extension cords for both of these. I just switched it up for variety:)
| « Previous Step | Download PDFView All Steps | Next Step » |
























































Reason being is if you have any significant load on the AC side, when the power shuts off there could be a strong back EMF that upsets the micro and causes it to spaz.
Because your working with mains you need to stress that due care must be taken, due to the absence of the opto isolator there is a risk that any part of the circuit could become live with 120v mains
you can certainly try that relay, but it's unlikely to work consistently. as per the arduino specs, each i/o pin can only handle 40 mA.
good luck,
luke