May i suggest trying an external pull-up resistor of 10kΩ? The internal pull-ups in the RP2040 are very weak. I can imagine that the electromagnetic pulse of the relay can trigger the interrupt multiple times.
Statistics: Posted by pica200 — Wed Aug 07, 2024 6:44 pm