Status change on GPIO when I just tap on it with a wire??
Posted: Sun Sep 16, 2018 1:22 pm
Can someone please try to put this code on your esp8266. The blue LED should turn on after flashing it. Then take any wire (like a breadboard wire) and tap it several times to GPIO12. Do not connect the wire to anything other than tapping the GPIO12! Does the LED turn off?? I have tried it on 2 different esp266 boards. Even when running on batteries, my LED turns off and I just can't figure out why??
How can the state change on a PIN just by tapping on it?? I am using INPUT_PULLUP so the PIN is NOT floating. Not only tapping on the PIN changes the state for me. I can even turn on the ceiling fan in my room and the PIN changes state?? I tried powering the esp8266 using a battery. Same results! I am so confused...
Here is the simple code: https://pastebin.com/1F4WBJ5p
How can the state change on a PIN just by tapping on it?? I am using INPUT_PULLUP so the PIN is NOT floating. Not only tapping on the PIN changes the state for me. I can even turn on the ceiling fan in my room and the PIN changes state?? I tried powering the esp8266 using a battery. Same results! I am so confused...
Here is the simple code: https://pastebin.com/1F4WBJ5p