Counting contact bounce


i have no real experience microcontrollers or programming, i'm looking possibility of using arduino in reliability testing. have not purchased arduino yet, described here hypothetical.

desired process: 
1. starting low, button pressed sends high signal input of arduino.
2. upon release (change high --> low) want check switch activiation (low-->high-->low) within given time (will count bounce).
3. if switch bounces, send digital output true 1/2 second.

it seems simple, hoping rough outline of program base mine off of. also, arduino product recommendations or helpful tips appreciated.

you bounce on both press , release.
for switch input, each time there change in state increment variable. on first change start timer if there more count of 1 within time set 1/2 second o/p.
what doing?


Arduino Forum > Using Arduino > Project Guidance > Counting contact bounce


arduino

Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support