11-15-2022, 08:31 PM
@challenge
Yeah, one could poke moOde in the eye with a sharp stick to make it ignore inconvenient effects but that makes me cringe.
In general, the InterWeb is full of posts and blog entries concerning noisy behavior on supposedly digital inputs.
EMI/RFI is always a possibility. The behavior of a Pi's GPIO input is a complicated subject. For example: https://forums.raspberrypi.com/viewtopic...9&t=133740
As an aside, a 30-cm length of wire is called an antenna
Drawing on good practice in the radio and audio industries, one would use a twisted pair of wires between the button or switch and the GPIO block, grounded only at the GPIO end. In severe cases one might also run the twisted pair inside a shield with the shield also grounded only at the GPIO end. In more severe cases, one might have to fashion some passive signal conditioning with one or more resistor(s) and possibly even capacitor(s), also at the GPIO end. Google is your friend.
Regards,
Kent
Yeah, one could poke moOde in the eye with a sharp stick to make it ignore inconvenient effects but that makes me cringe.

In general, the InterWeb is full of posts and blog entries concerning noisy behavior on supposedly digital inputs.
EMI/RFI is always a possibility. The behavior of a Pi's GPIO input is a complicated subject. For example: https://forums.raspberrypi.com/viewtopic...9&t=133740
As an aside, a 30-cm length of wire is called an antenna

Drawing on good practice in the radio and audio industries, one would use a twisted pair of wires between the button or switch and the GPIO block, grounded only at the GPIO end. In severe cases one might also run the twisted pair inside a shield with the shield also grounded only at the GPIO end. In more severe cases, one might have to fashion some passive signal conditioning with one or more resistor(s) and possibly even capacitor(s), also at the GPIO end. Google is your friend.
Regards,
Kent