Esp8826 on pcb power question

Hello all and thanks in advance for any help. I have a project that I am in the beginning stages of. I'm not sure exactly when I'll have the chance to work on it, but I wanted to gather up some info.

I want to design a pcb that I can mount an esp8826 chip on and be able to control a 120vac 10-15a device (light). I know there are some off the shelf sonoff switch type devices out there that will do this, but I would like to expand my pcb a little further for my specific needs. So, are there any relays out there that are mountable to a pcb, that have a coil rating that a 3.3 esp device can control and handle a load of 10-15 amps of current with 120vac?

I'm almost certain the sonoff switches use an esp8826 chip. I am guessing they are controlling the relay with some type of optocoupler? What relay would I need and what power adapter/converter (120vac to 3.3vdc) would I need to use the 120vac incoming to power the esp8826 device on a pcb?

I'm including a very basic wiring diagram of what I'm trying to do:

Thanks!

if you do a web search for esp8266 relay you will get plenty of links to relays with on-board ESP8266 module
the majority of relays in the links are rated at 10amp 120volts so you need to check your requirements
you stated in post 1 control a 120vac 10-15a device (light) - that is 1.8kW light which is very powerful? are you sure of your figures?

Yes, well kind of. I don't think my load will ever get anywhere near that, but it will be protected by a 15 amp breaker. I wanted to be covered by that.

As I am doing a little more research, I guess one of my questions is more about designing the power supply on a pcb that would power the esp8226 device from the 120vac incoming power to the 3.3 dc power.

Thanks!

have a look on ebay for PCB Mount AC to DC Power Supply 3.3V
make sure your relay is rated for a load of 15amp at 120V and will also operate from a 3.3V signal
I assume it is a 15amp resistive load not an induction motor - if it is an induction motor double the relay specification

I have found these:

They appear to be what I need for powering the esp device, and I could solder one of them to the pcb. However, I assume I could create my own power supply on the pcb itself with a transformer and some diodes/capacitors? That could be interesting....

Thanks for the help!

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.