Skip to content

Binary input does not respond after triggering #2107

Answered by Tellicious
yuantao313 asked this question in Q&A
Discussion options

You must be logged in to vote

According to your description and the script, there seems to be nothing wrong in this behavior. If the button is between GPIO13 and VCC, you would need to have a pull-down resistor to allow the voltage to drop and the input to reset.

However ESP8266 (the micro inside ESP-12F) doesn't feature internal pull-down resistors, so you have 2 options:

  1. install a pull-down resistor (4.7kOhm would work) between GPIO13 and GND and change its initialization to [[13],6,0,1] so to enable the invert GPIO behavior (active high)
  2. connect the button between GPIO13 and GND and change its initialization to [[13],6,1] so to enable the internal pull-up

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mmmjsz
Comment options

@yuantao313
Comment options

Answer selected by yuantao313
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants