I have some pins in GPIO.IN mode reading buttons/alarm circuits. Since recently 2 of them started to trigger without a reason. I believe this all started after I changed power supply. However, changing it back didn't resolve the problem. 3 other pins are working as expected. Here's how my pins are set up in my python script:
GPIO.setup(11, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.add_event_detect(pin, GPIO.RISING, callback=alarmTriggered, bouncetime=300) GPIO.setup(19, GPIO.IN, pull_up_down=GPIO.PUD_UP) GPIO.add_event_detect(bellPin, GPIO.FALLING, callback=bell_pressed, bouncetime=300)
I have RPi3 model B. Any thoughts?