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
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.
if on/off can't see switching on , off fast.
raspberrypi
Comments
Post a Comment