I have a raspberry pi 3 model without anything attached.
If I configure a GPIO as input with the internal pull up resistor enabled, the GPIO reads high as expected.
However, the interrupt randomly detectes raising edges. I can even cause them by touching the USB casing (which the RPI connects to ground) with a single wire.
Why? How can I stop that? I already tried
- an external pull 4kOhm-pull-up resistor
- a 0.1mF capacitor between 3.3v vcc and gnd
- a 0.1mF capacitor between gpio and gnd
For clarification: I want to detect my door bell ringing using an opto-coupler. I also want to have as much precision as possible so that I can decode ringing-codes (50ms precision should be enough though). Sadly I get random false positives :(