Multiswitch timming?

I have a project where there are 2 to 4 N.O. Switches. I want to detect which switch closes first and the time it takes for the remaining switches to close. Display the time difference between each switch closure and the order they closed.

Probably timming should take only a few milleseconds total.

Does anyone think that an Arduino is capable and any directions on how?

Thanks

Joelaw

Joelaw:
I have a project where there are 2 to 4 N.O. Switches. I want to detect which switch closes first and the time it takes for the remaining switches to close. Display the time difference between each switch closure and the order they closed.

Probably timming should take only a few milleseconds total.

Does anyone think that an Arduino is capable and any directions on how?

Thanks

Joelaw

A Arduino Uno would certainly handle that. The key function to look at using is the millis() function which is a free running counter with millisecond resolution that allows you to 'time stamp' any events you wish, like change in button states. The rest is simple math.

Lefty

Hi,

See: https://github.com/drafski89/Quiz-Bowl-Machine-Arduino for an application doing this....

And google: quizbowl arduino

Depending on the accuracy you need and what you mean by a few milliseconds, you might consider using micros() instead.