Quote Originally Posted by mackrackit View Post
Is it really a button type switch or some other kind of sensor?

I ask because a mechanical switch may not be the best at high speeds.

And the way you have the code implies the button is pulled high and at button press goes to zero volts. This can cause arcing as the contacts open giving the chance of several "make/breaks" on each press.

If the switch were wired pulled low and pressing it brought it high then the arcing is almost not a problem.

Just thoughts....
yes the idea is a proper botton switch, the wired to pull it low it is some thing that i dont understand.
The voltage for the circuitry is 5v....amperes very little, I think is not going to be a problem.

I am more concern with the switch being able to work at that speed...i dont know...i rather first understand the code, see what it should be, have something that i can built my proptotype on, and then see pros and cons.
Otherwise this can be very long...

Thanks for the help guys.
Best regards.