View Full Version : Crab drive without a pot
dpick1055
09-01-2007, 23:09
I was wondering if it would be possible to do a crab drive without using a pot to figure out what angle the wheel is it and if it is how difficult the programming would be. Thanks in advanced
I was wondering if it would be possible to do a crab drive without using a pot to figure out what angle the wheel is it and if it is how difficult the programming would be. Thanks in advanced
Trust me, you really want to put in a pot, it will only make your life easier during programming and then you can put wheels inexact positions and the robot will do exactly what u want it to do
dpick1055
09-01-2007, 23:11
How expensive would a pot be and where could we get them?
it would be about 2 dollars and 50 cents from radio shack
http://www.radioshack.com/search/index.jsp?kwCatId=&kw=potentiometer&origkw=potentiometer
but if you want it in large quantities u can get it cheaper at
www.digikey.com
get the linear-taper-potentiometer
dpick1055
09-01-2007, 23:16
Thanks.
I have a question about using pots on crab drives.
It seems to me like you could have a 359 degree rotation using a pot, but then to go from, say, rightish forward to leftish forward wouldnt you need to rotate the wheel all the way around the long way? Assuming 0 on the pot is straight ahead.
Are there pots that give you a range of values up to one turn and if you turn past that they would reset?
We were considering using encoders on these shafts... but I'm not the best programmer in the world :)
Any advice is greatly appreciated.
Thank you,
Dave
Lil' Lavery
14-01-2007, 01:07
You can buy pots that are set to a different amount of rotations, or you could use (like you suggested) shaft encoders.
AdamHeard
14-01-2007, 01:45
You could also use endless pots, it would be slightly harder to program than normal (you have to anticipate the "wrap around", still not to hard though) and you still get endless rotation as you desire.
Dave Scheck
14-01-2007, 09:59
We were considering using encoders on these shafts...I would highly recommend not using encoders to determine crab position. Yes they can work, but they require you to precisely position the wheel at startup. Since the encoder doesn't tell you where you are, you could have the wheel turned 90 degrees and the RC has no way of knowing that it's not centered. Pots are far superior in this aspect because they give you an absolute position at startup and the necessary corrections can be made.
Ian Mackenzie
14-01-2007, 14:52
I would highly recommend not using encoders to determine crab position. Yes they can work, but they require you to precisely position the wheel at startup. Since the encoder doesn't tell you where you are, you could have the wheel turned 90 degrees and the RC has no way of knowing that it's not centered. Pots are far superior in this aspect because they give you an absolute position at startup and the necessary corrections can be made.
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.)
meatmanek
14-01-2007, 15:06
A couple of years ago our crazy electrical guy made a full rotation potentiometer by cracking it open and cutting off the stop. (Not recommended, you can screw things up by putting voltage across a shorted potentiometer)
There are ways to use optical sensors to encode position rather than motion.
http://http://en.wikipedia.org/wiki/Gray_code
Bharat Nain
14-01-2007, 16:42
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?
Ian Mackenzie
14-01-2007, 17:56
Did you try using a 10-turn pot?
We had 5-turn pots, so 2.5 turns in either direction. 10 turns might have been better, but I still think we would have broken a few (and, of course, we would have had lower resolution - but I'm not sure that would have been significant).
Al Skierkiewicz
15-01-2007, 07:48
There are a couple of things that teams can do to use a standard 270 degree pot without breaking it. You can easily use a couple of nylon gears (from Small Parts) to couple the pot to your steering mechanism. You can mechanically limit the travel of your crab so that you stop turning before the pot is broken or you can spend some money and buy a continuous pot.
But dpick, as you can see, no one is telling you to do crab without a pot. There is no way for the robot or the driver to know that the crab system has actually gone where the driver has told it to go or for the software to get it back to driving forward.
Tristan Lall
15-01-2007, 10:17
Why not an absolute encoder? (Like this (http://www.usdigital.com/products/ma2/).)
Why not an absolute encoder? (Like this (http://www.usdigital.com/products/ma2/).)
Is there any functional difference between a pot and an absolute encoder? (I realize that they are different internally.) Why would someone use one over the other (for low speed applications, eg arms, steering)? Is there a reason teams use encoders that give counts instead of absolute encoders on higher speed applications (wheels)?
B.Johnston
17-01-2007, 19:43
Yes, the most significant advantage of this encoder is its free rotating shaft.
Plus it costs about the same as a 10 turn precision pot without the potential for value shifting due to vibration or temperature.
One possible reason to use raw quadrature input is to "count" beyond 1 revolution.
The source of this encoder USDigital has several other devices which can emulate pots by actively providing an analog voltage "incremented or decremented" by a quadrature pulse train (edac2) or an analog voltage feedback of the rate of pulses per second(etach2).
Additionally these devices incorporate the ability to self calibrate via a precise index marker pulse.
By selecting your counts per revolution carefully you can tailor the precision of the output to the neccessary resolution.
DonRotolo
17-01-2007, 22:42
Don't be afraid of potentiometers. Do use the correct value (I think 2.5k is the best match for the RC - or is it 5k??). Linear taper, as eshteyn noted, is what you need.
Connect a pot to the RC - one end to red, the other end to black, and the center to white, hooked up to an analog input - and get a feel for what kind of information you can get from it. You will see values in the range of 0 to 1023, varying linearly (linear taper, remember?) with rotational position.
Pots are available with 360 degree rotation, but these often have a small dead zone, where no signal is available.
Absolute encoders are great, can get costly (Mouser 594-601-1045 is one example, $60, get the connector wire too), but feature true 360 rotation, no dead zone, reliability and precision.
Multi-turn post can be a good solution, but you can eventually run out of turns if you don't enforce some kind of discipline on which way the wheels turn.
Running without pots (or similar) will lead to astoundingly poor performance.
Don
Al Skierkiewicz
18-01-2007, 07:50
Don't be afraid of potentiometers. Do use the correct value (I think 2.5k is the best match for the RC - or is it 5k??). Linear taper, as eshteyn noted, is what you need.
Don
100k wired as shown in the RC manual.
Dave Flowerday
18-01-2007, 09:15
100k wired as shown in the RC manual.
100K is for the OI. The RC manual shows 10K in use, but says anything between 250 ohm and 100K can be used.
Al Skierkiewicz
18-01-2007, 09:17
From the 2007 RC Reference Guide...
9. Analog Inputs
The analog inputs on the Robot Controller can be used to measure various conditions on the robot and
trigger automatic responses by the control program. There are 16 analog inputs available on the
ANALOG INPUTS connectors on the Full-Size Robot Controller.
Any sensor which outputs a variable 0-5V signal may be read with 10-bit resolution on these inputs.
Popular devices include potentiometers and gyro (yaw rate) sensors. Potentiometers should be wired per
the diagram below when connecting to the Analog Inputs. Always use 100kΩ potentiometers. For
wiring yaw rate sensors, refer to the sensor manufacturer’s data sheet.
Dave Flowerday
18-01-2007, 09:21
From the 2007 RC Reference Guide...
9. Analog Inputs
The analog inputs on the Robot Controller can be used to measure various conditions on the robot and
trigger automatic responses by the control program. There are 16 analog inputs available on the
ANALOG INPUTS connectors on the Full-Size Robot Controller.
Any sensor which outputs a variable 0-5V signal may be read with 10-bit resolution on these inputs.
Popular devices include potentiometers and gyro (yaw rate) sensors. Potentiometers should be wired per
the diagram below when connecting to the Analog Inputs. Always use 100kΩ potentiometers. For
wiring yaw rate sensors, refer to the sensor manufacturer’s data sheet.
The 2007 RC Reference Guide (dated 6-13-2006, and I just downloaded it from IFI) I have open says:
9. Analog Inputs
The analog inputs on the Robot Controller can be used to measure various conditions on the robot and trigger automatic responses by the control program. There are 16 analog inputs available on the ANALOG INPUTS connectors on the Full-Size Robot Controller. Any sensor which outputs a variable 0-5V signal may be read with 10-bit resolution on these inputs.
Popular devices include potentiometers and gyro (yaw rate) sensors. Potentiometers should be wired per the diagram below when connecting to the Analog Inputs. Use 250Ω – 100KΩ potentiometers. For wiring yaw rate sensors, refer to the sensor manufacturer’s data sheet.
And the diagram below it shows a 10K pot being used.
Are you looking at an old version?
Al Skierkiewicz
18-01-2007, 09:25
Yes you're right, the version I had downloaded earlier this month was dated in February sometime and that was what I quoted. I just downloaded the newest version and it contains the above quote. Old is deleted.
B.Johnston
19-01-2007, 20:05
I'm not sure if everyones missed the link that tristan posted, but, there's everything to "fear" about pots.
Even the best Linear pots exhibit some degree of non linearity especially near the outer portions of their range.
They suffer from thermal drift to some degree.
Mechanical forces on the shaft (not true to the rotational axis) affect the value at the wiper.
Shocks to the housing can shift values even when the pot isn't being rotated.
And last but not least exceeding the stop at the end of travel usually causes bad things to happen.
Why not revisit Tristans post and have another look at an "active" system with the potential to eliminate most of these problems.
I know that to a team, every Niagara First Team 1680, 1503 and 1114 would caution that if you can find a device for as close to the price of a precision pot without the drawbacks. Try it. 1503 and 1680 won't be going back to pots again if they can help it.
Bharat Nain
20-01-2007, 00:51
We have used pots successfully for many years. Ofcourse we have to recalibrate them from time to time, but as long as you make sure you dont break(mechanically, and wire them correctly, and use the correct potentiometer) them, they work wonderfully(atleast for us).
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.