Tons of buttons and debouncing
i working on project driver using gigantic matrix of inputs on racing simulator. @ stage, have 25 inputs using 10 pins. code looks lie this:
what best way debounce these? have seen plenty examples 1 or 2 buttons debounced, 25+ buttons. buttons have not measure bounce @ on oscilloscope, imagine practice anyways.
your input appreciated.
code: [select]
if (pina == high)
if (pin1 == high)
button 1 pressed
if (pin2 == high)
button 2 pressed
if (pinb == high)
if (pin1 == high)
button 3 pressed
etc
what best way debounce these? have seen plenty examples 1 or 2 buttons debounced, 25+ buttons. buttons have not measure bounce @ on oscilloscope, imagine practice anyways.
your input appreciated.
best?
simplest, read switches every 50 ms.
.
simplest, read switches every 50 ms.
.
Arduino Forum > Using Arduino > LEDs and Multiplexing > Tons of buttons and debouncing
arduino
Comments
Post a Comment