Thread: Ultrasonic Help
View Single Post
  #10   Spotlight this post!  
Unread 20-03-2011, 13:45
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Ultrasonic Help

We have a 10-turn pot sensing drum rotations. The drum rotates slightly more than 10 times, so it is chained (with plastic sprockets) to the drum shaft, providing a slight reduction. We now use about 8 turns of the pot over the entire travel distance.

We don't like encoders for absolute positioning because we don't know exactly where we are, only where we think we should be based on where we assumed (or sensed, with another sensor) we started. The largest issue is that, if we don't start at home, we have to move to home to reset. If we have a practice robot and we don't fold it up into the start position before running it, or we stop running deployed code to change something without folding up into start position, we no longer know exactly where we are. That said, for some mechanisms, it's the best way to do it.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack