
14-01-2007, 16:42
|
 |
 |
Registered User
no team
Team Role: Alumni
|
|
Join Date: Jan 2004
Rookie Year: 2003
Location: New York
Posts: 2,000
|
|
|
Re: Crab drive without a pot
Quote:
Originally Posted by Ian Mackenzie
True, but normal potentiometers have the nasty disadvantage of having a hard stop. When we did swerve drive in 2004, we broke a lot of potentiometers (especially in testing) by turning them too far. In hindsight, it might have been a better idea to use encoders, set the wheel to a known position at the start of the match, and probably have a limit switch as a backup that would be triggered (e.g.) when the wheel was straight ahead - so if anything happened, you could have a reset button that would spin the wheel until it triggered the limit switch and then would reset the encoder count. (You could also do this on the fly - every time that switch happens to be triggered, have an interrupt that corrects the encoder count.)
|
Did you try using a 10-turn pot?
__________________
-= Bharat Nain =-
Whatever you do, you need courage. Whatever course you decide upon, there is always someone to tell you that you are wrong. There are always difficulties arising that tempt you to believe your critics are right. To map out a course of action and follow it to an end requires some of the same courage that a soldier needs. Peace has its victories, but it takes brave men and women to win them. - Ralph Waldo Emerson
|