|
Re: Pulsing Solenoid
That's going to rapid fire the solenoid on and off until the driver's reaction time allows him/her to let go of the button.
I'd add code to fire only once per button press.
The second 10ms Wait isn't necessary.
We did something similar once before. I'll try to look up the solenoid reaction time.
I think I'd start with a longer period for the solenoid, so you start testing with it moving and proceed to slow it down until you reach the optimum time.
I seem to remember that it only starts twitching at around 6ms.
__________________
"Rationality is our distinguishing characteristic - it's what sets us apart from the beasts." - Aristotle
Last edited by Mark McLeod : 02-02-2014 at 22:03.
|