Old switch constantly tripping edge detection - Raspberry Pi Forums


hi,

wondering if had thoughts on how might solve problem have old switch vintage radio.

im converting old vintage radio pi powered media centre based on volumio.

wanted use original dials , (where possible) use original switches makes less work.

see pictures here
https://twitter.com/martinohanlon/statu ... 57/photo/1

original on/off switch causing me trouble, switch works, have tested resistance multimeter , when connect gpio pin can successful read accurate values pin.

when try , use edge detection trips.

there nothing particularly special switch, there copper plate rotates , connects 2 terminals, there picture of in link above.

have tried using internal , external (i.e. via resistor) pull ups same result.

before revert reading value of pin in loop , noting when changes has got ideas?

martin

can add debounce, maybe time.sleep(x) after first detection ? experimnet x in seconds.
if on/off can't see switching on , off fast.


raspberrypi



Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support