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

User avatar
By Fr4gg0r
#9703
lethe wrote:
Markus Gritsch wrote:BTW, my intention of using pull-down is to be able to connect a switch to GPIO0 or GPIO2 of an ESP-01 board.

I don't get your need for a pulldown here. Just connect a resistor from VCC to the GPIO and a button from the GPIO to GND.


Adding unneeded external resistors is so arduino.
User avatar
By Markus Gritsch
#9723
lethe wrote:I don't get your need for a pulldown here. Just connect a resistor from VCC to the GPIO and a button from the GPIO to GND.
In your scenario, the external resistor isn't even needed: The same could be achieved with the internal pull-up. The problem with this configuration is, that if the switch is closed and a power cycle happens, the ESP is starting up in flash-mode, and not executing the user code anymore. Not very reliable.
lethe wrote:What's the issue with having it read 1 in open state?
As said, the problem is pulling the GPIO to 0 in closed state during power up.