Use this forum to chat about hardware specific topics for the ESP8266 (peripherals, memory, clocks, JTAG, programming)

User avatar
By johved
#16390 Hei guys,
Im new here and frankly, about as novice as they come.
I had an idea about a remote controlled outlet and wanna try out the esp8266 for the Job. I made a sort-of circuit sketch, and im wondering if its even remotely correct. The thing is that i want the circuit to be driven by the same source as the outlet .
What can I use as the 220v to 5v converter?
You do not have the required permissions to view the files attached to this post.
User avatar
By ArnieO
#16404 Looks fine to me, providing you remember to connect CH_EN to 3.3V, and use a relay module, not only a simple relay. The modules are cheap om eBay and contain the necessary driver circuitry.
The 5V Power can for instance be a phone charger.
User avatar
By j0hncc
#16414 You may have some trouble with GPIO2 output. If your relay expects HIGH=ON, it may have a pull-down it which would cause ESP to boot into in a non-useful mode.

Also I think there is some brief output on GPIO0 and GPIO2 during boot up. If it's enough to trigger your relay module then it may bother you if (when!) the ESP resets.

Cheers,
John
User avatar
By jra
#16457 I would use one of the widely available relay modules (Sainsmart or equivalent) because:

1) You can't build one any cheaper yourself
2) The ubiquitous Songle relays are not breadboard friendly
3) The inputs are opto-isolated

Implication of the last feature is that these modules are active-low so you'll want to keep this in mind when you decide what pins to drive it with.