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

User avatar
By ArnieO
#16532 Looks fine to me.
The ESP-01 has two GPIOs. So you could use a relay module with two relays, they only cost around half a dollar more than the one with one relay. That way you can control two outlets for almost the same cost.
http://www.ebay.com/itm/2-Channel-5V-Relay-Module-for-Arduino-ARM-PIC-AVR-/271859223837?pt=LH_DefaultDomain_3&hash=item3f4c128d1d

This little module gives you a complete 1117 based stepdown 5V->3.3V for half a dollar:
http://www.ebay.com/itm/5-PCS-DC-5V-to-3-3V-Step-Down-Power-Supply-Module-AMS1117-3-3-LDO-800MA-/271636529720?pt=LH_DefaultDomain_0&hash=item3f3ecc8238
User avatar
By ArnieO
#16533
j0hncc wrote: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

I have successfully implemented a project with GPIO0 and GPIO2 of an ESP-01 directly connected to the inputs of a relay module (powered by 5V). The inputs of my relay module are active low with optocouplers. I have no detectable triggering of relays during startup.