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

User avatar
By Sigge
#72701 Trying to get my ESP-01 to boot regardless of reed switch state.

Unable to make my buffer work. Any help would be appreciated.

Attaching my wiring.

Original idea found here:

https://raw.githubusercontent.com/genguskahn/ESP8266-For-DUMMIES/master/SoC/DimmerDocs/GPIO_BUFFER.jpg
You do not have the required permissions to view the files attached to this post.
User avatar
By btidey
#72729 Are you saying the problem is it won't boot into running or you can't make sense of the switch input after it is running?

The circuit is holding GPIO2 high during boot and then turning that off after about 2 seconds. It therefore relies on the power supply coming up in under that time.

If it is booting OK then you need to post your code. Do you set pinMode to INPUT_PULLUP on GPIO2?
User avatar
By Sigge
#72732 Thank you for the rely!

If it boots then everything works well. But it does not always boot normally. It seems a bit random. Reed on or off and still goes to flash mode. RST and PD pulled high.

This circuit is powered high by the same power supply as the ESP-01 so it should be "up" already?

Good to hear someone else reading the circuit as I do. Sanity check.

My pin modes:

pinMode(GPIO0, INPUT_PULLUP);
pinMode(GPIO2, INPUT_PULLUP);

This time I solved this problem by using GPIO0 as ground (and changes code accordingly) but that only gives me one input from the esp-01. I will try this buffer with other component values. Perhaps a bigger 600 Ohm vs the 1 K? Bigger condenser to give me longer boot time?
User avatar
By jankop
#72733 Resistor 1k is too big for regular high logic level. Move this resistor to GPIO2 way and change its value to about 330 ohms