gpio.trig firing semi-randomly from EMI
Posted: Fri Jan 27, 2017 9:42 pm
While I've had some pretty decent success with my recently acquired NodeMCU v2 board, I am having one issue that's been bugging me. I have a button set up to a pin with gpio.trig to fire off a function. However my desk lamp ALSO fires off the function when I turn it on or off. So does the nearby water cooler, when the compressor kicks on or off. Sometimes just walking past it can fire it. I've read before that it's a good practice to pull unused gpio pins high to avoid this type of thing, but before I go jamming a bunch of resistors in there, I have some questions...
Thanks in advance to the hardware gurus out there trying to keep me from frying my board.
- * Do I also need to pull the SD1/2/3, CLK and CMD pins up? What about the two "reserved" pins next to ADC0? Could those also cause this?
* Are there pins that I should NOT pull up? (aside from the GND/3v3/Vin of course)
* Can I be a bit lazy and just pull up an unused rail on the bottom edge of my breadboard with a 10k resistor and then just tie them all to that, or do they each need to be pulled up separately to help isolate them from each other?
Thanks in advance to the hardware gurus out there trying to keep me from frying my board.