GPIO buffer
Posted:
Mon Dec 25, 2017 5:26 pm
by Sigge
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
Re: GPIO buffer
Posted:
Wed Dec 27, 2017 9:49 am
by btidey
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?
Re: GPIO buffer
Posted:
Wed Dec 27, 2017 11:14 am
by Sigge
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?
Re: GPIO buffer
Posted:
Wed Dec 27, 2017 11:58 am
by jankop
Resistor 1k is too big for regular high logic level. Move this resistor to GPIO2 way and change its value to about 330 ohms