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:
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.


.


Arduino Forum > Using Arduino > LEDs and Multiplexing > Tons of buttons and debouncing


arduino

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor