ESP GPIO reading input stopped functioning properly
Posted: Sun Aug 27, 2017 3:12 pm
I have a project where I use "sensor" which is effectively a switch on a long wire (around 3 meter of wire). I am using ESP 07 module and GPIO12 in configuration INPUT_PULLUP, and switch is connecting the input (GPIO12) to the ground (through additional 100 ohm resistor).
Sketch:
My project worked normally for a few (2-3) months, and then suddenly the reading stopped (basically reading seems to always show that the GPIO12 is connected to the ground). What could cause this behavior? What can I do to prevent this from happening?
Sketch:
My project worked normally for a few (2-3) months, and then suddenly the reading stopped (basically reading seems to always show that the GPIO12 is connected to the ground). What could cause this behavior? What can I do to prevent this from happening?