View Single Post
  #3   Spotlight this post!  
Unread 02-02-2014, 21:56
Mark McLeod's Avatar
Mark McLeod Mark McLeod is online now
Just Itinerant
AKA: Hey dad...Father...MARK
FRC #0358 (Robotic Eagles)
Team Role: Engineer
 
Join Date: Mar 2003
Rookie Year: 2002
Location: Hauppauge, Long Island, NY
Posts: 8,795
Mark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond reputeMark McLeod has a reputation beyond repute
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.
Reply With Quote