06-28-2020, 09:13 PM
I haven't done any digital control work with a RPi and its GPIO. With other SBCs and microcontrollers, we used software filtering, aka software debouncing, to deal with mechanical switches. I expect the technique would work for you but I'm not in a position to to work through it with you. Google is your friend.
Regards,
Kent
Regards,
Kent