GPIO.FALLING INSANELY! sensitive - Raspberry Pi Forums
i had shutdown python script connected gpio pin using gpio.falling. long time getting seemed random shutdowns. started notice turning light switch on , off, turning ceiling fan on or off, , using electric lighter near trigger pi shutdown. switching high or low read of pin solved issue. there way use gpio.falling without being sensitive outside interference? setup: gpio.setmode(gpio.bcm) gpio.setup(17, gpio.in, pull_up_down=gpio.pud_up) wire connected pin 17 connect ground pin when wanted shutdown. thank help. are using pull resistor? try 10k. raspberrypi