OnlineDishwasher wrote:Thanks, that seems to cover the software although I'd rather have the device self-contained without requiring an Arduino.
Hi, the ESP8266 will run Arduino code.
OnlineDishwasher wrote:From reading further, it would appear the safer thing to do would be to use an off the shelf 5V 2A wall wart and have a plug inside the project that feeds the 5V PSU. I avoid making my own PSU (and a fire hazard) while still requiring only one connection to the mains.
Nothing wrong with that - if size is improtant these work well.
OnlineDishwasher wrote: I then solder the 5V output onto a perf board, feed it into a 3.3V step down so I have a 5V for the relays and a 3.3V for the ESP.
I was also thinking about ordering one of these relay boards to I just have to screw the 110V into it. Is there anything else I need to do to make this safe?
You might want to consider an SSR (solid state relay), they tend to be easier to switch (no coils with loads & reverse voltage protection). This one is only 2A switching but you can get much higher and will switch with the 3.3V output from the ESP, so no dual voltage needed.
This uses an ESP8266-01 and the parts above, measures 1 1/2" x 1 1/2" x 1 1/4" even with the terminals.
Looking at "wififofum's" post you may aswell cheat.