Binary input does not respond after triggering #2107
-
Hello everyone I am building a multiple function switch with ESP-12F and this firmware. {
"c": {
"io": [
[[12], 2],
[[13], 6]
],
"l": 2,
"b": [[0, 5]]
},
"a": [
{
"0": { "r": [[12, 0]] },
"1": { "r": [[12, 1]] },
"b": [[13]],
"t": 1,
"s": 5
}
]
} Then I deployed the software and hardware. A problem occured: when I tried to switch the status of the relay by the button, it would work once and stop working for a while, then it can work again but lost respond after triggering. It seems that it has a "cooldown time". |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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:
|
Beta Was this translation helpful? Give feedback.
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:
[[13],6,0,1]
so to enable the invert GPIO behavior (active high)[[13],6,1]
so to enable the internal pull-up