I am a hobbyist working on a home automation design. I am using this project to learn more about electronics and electricity. Most importantly, I like my house and I'm not keen on burning it down any time soon.
The project I'm designing is a small PCB that I'd like to be able to place at every power socket that has an ethernet jack providing data/power to a uC that can control two 120VAC 15A relays. I'm hoping to expand it with sensors to track power consumption, provide a 5 and/or 10v USB charger port, etc.. etc..
My question is, where is a good place (book preferrably) to learn about the correct way to design higher voltage traces and other PCB best practices.
Things I'm curious about are:
1) The correct/safe way to mix electronic circuitry and high voltage on the same PCB (minimum distances, trace size, layer guidelines, etc..)
2) Code requirements for a device that is to be placed in a wall
3) Learn more about relays, hall effect (for monitoring circuit?)
Thanks!