I'm designing a microcontroller controlled switch. I idea is to have a 120V outlet controlled by time of day, or a motion sensor, etc. The plan is to have a lamp plugged into the outlet.
I will switch the 120V with a relay, which I plan to have on the same board as everything else. Since I have the 120V anyway, I thought I would use a Recom AC/DC Converter to provide 5V.
My questions are more mechanical than electrical, but important to the design:
- How do I get the 120V to the board? Can I use a lamp cord with a standard plug on one end, with the other end connected to a terminal block?
- Can I use a 2-conductor cord (i.e. no separate ground) ?
- If I use a terminal block, what gauge wire should I use to connect from the block to the realy?
- Let's say I decide to make a "real" board out of this...can I put 120V through traces?