Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Technical Discussion (http://www.chiefdelphi.com/forums/forumdisplay.php?f=22)
-   -   Question on wheel speed sensors (http://www.chiefdelphi.com/forums/showthread.php?t=87182)

TroyCDH 18-10-2010 16:55

Question on wheel speed sensors
 
Are any teams using sensors and programming to limit wheel spin? During turns and maybe acceleration?

Can we sense and count rpm on our driving (powered) wheels and also sense rpm on a wheel that simply free turns by contact with the ground to get a land speed.

Can software (labview) compare these two revolution numbers and then determine wheel slip? For example the powered wheels real rpm compared to the needed rpm for the land speed. Can you then vary the electric motor output to ensure the inner radius wheels are putting out less power (rpm) to "equal" the outer radius wheels?

Sounds like a lot of work to me but I would guess that out of 3000 plus teams, some team is doing something like that.

Thanks Troy

EricH 18-10-2010 16:58

Re: Question on wheel speed sensors
 
Lots of teams use sensors to check wheel speed.

As for the other "Can you" questions you have, you might want to look at the 2009 traction control threads. Short answer is yes, long answer is that it'll be a lot of work and probably not worth it on carpet (given that the floor may or may not be carpet next year). 2009 really saw a lot of development of what you're asking about due to the low-traction floor.

Chris is me 18-10-2010 17:00

Re: Question on wheel speed sensors
 
A lot of teams used sensors and programming to detect wheel slip in 2009, when there was very little traction with the ground. For any other year, I think most wheel slipping is either inconsequential (acceleration) or desired (turning) so teams don't attempt to sense that for the slight traction edge.

Labview can implement traction control as you described; teams did it in 2009. There's no "traction control vi" that comes with it or anything but it can be done.

Most wheel speed sensors are used to track distance traveled in a straight / nearly straight line.

kgzak 18-10-2010 17:21

Re: Question on wheel speed sensors
 
I have built a speed controller so we can go an accurate and constant speed. My dad has built a ramp to control how fast we take off from and we have distance control. so if you combine all those together you could make any type of control you need for your robot. So yeah it's possible. It's a lot of work too. I spent the summer making a speed/distance controller. If you start testing now I bet you could get something done. The one thing we need to add still is a torque controller but that might be a project for another day.

The sensors we use are encoders and maybe we'll use the jaguars this year.

ajlapp 18-10-2010 17:26

Re: Question on wheel speed sensors
 
We always implement encoders on the drivetrain, typically on the driven wheels for navigation during auton and to help keep us straight during high speed jaunts across the playing field.

In 2009 we used encoders on undriven wheels to manage wheel slip and to give us accurate slip free navigation data during auton.......we have considered using undriven encoder wheels for other games, but we haven't found good cause for spending resources in this area when operating on carpet.

AdamHeard 18-10-2010 18:02

Re: Question on wheel speed sensors
 
Like everyone else said, very useful in 2009 with limited traction, but on carpet not so much.

When we're in high gear, there is no wheel slip, and I've never really watched for it, but we don't really slip under unloaded acceleration in low either. We certainly accelerate plenty fast in my opinion.

Sensors on drive are however very useful for other concepts mentioned in this thread.

Al Skierkiewicz 19-10-2010 08:09

Re: Question on wheel speed sensors
 
If you want an accurate auton, you will need some kind of wheel encoder. You need to know how far the robot has traveled. We have used an imprinted wheel with black and white spaces with a simple LED/photodiode sensors (gives up to .25"-.5" accuracy) and digital pots which give much greater detail. If you are worried about slip, use more sensors and compare several. Ignore the one that is far off and average the others. Crab turns introduce less error than tank turns but can be compensated for in software. If your design is prone to high current draws during turns, it may be better to use current sense to limit drive then to use wheel tach.

Gdeaver 19-10-2010 11:03

Re: Question on wheel speed sensors
 
Good quality Quadrature encoders are expensive. Another option is to use a latching hall effect switch and a diametrical magnet. They are very cheap and give 2 transitions per revolution. They are very tolerant of misalignment. They do not give direction.

Alan Anderson 19-10-2010 11:17

Re: Question on wheel speed sensors
 
Quote:

Originally Posted by Gdeaver (Post 977705)
Good quality Quadrature encoders are expensive.

Expensive is relative. The US Digital E4P is relatively inexpensive, and with appropriate attention to detail it works perfectly.

Mike Soukup 19-10-2010 13:49

Re: Question on wheel speed sensors
 
Quote:

Originally Posted by kgzak (Post 977625)
I have built a speed controller so we can go an accurate and constant speed. My dad has built a ramp to control how fast we take off from and we have distance control. so if you combine all those together you could make any type of control you need for your robot. So yeah it's possible. It's a lot of work too. I spent the summer making a speed/distance controller. If you start testing now I bet you could get something done. The one thing we need to add still is a torque controller but that might be a project for another day.

Since you did all this work before kickoff, you're either going to rewrite it or release it, right? You may want to read R25 from last year's rules.

Dave Scheck 19-10-2010 14:51

Re: Question on wheel speed sensors
 
Quote:

Originally Posted by Al Skierkiewicz (Post 977687)
Crab turns introduce less error than tank turns but can be compensated for in software.

That's not really true Al. Using either encoders or a gyro, you can get some really precise tank turns, especially with a lower gear ratio. Let's take driving through these 4 points as an example
Code:

    D
    |
    |
B---C
|
|
A

With a crab system, there is usually a significant delay in turning the wheels 90 degrees. So, unless you come to a complete stop, without coasting, your turns will be skewed. Your B->C transition will cause you to arc instead of making a sharp cut leaving you above C. Then your C->D transition will arc again and leave you to the right of D.

Also, don't forget that there is always concern for wheel alignment with a crab system that may also cause for other inconsistencies in the drive pattern.

With a tank drive with proper gearing, when you get to B and C, you will be able to make sharp, accurate turns.

Yes, you can probably get to point D faster with crab, but you sacrifice some accuracy doing it. Sometimes that matters, sometimes it doesn't. Look back to one of our less used programs in 2006. That was some of the most accurate driving that we've done (although any misalignment was compensated for with the turret). Look at some of the things that teams like 1114, 2056, 469 and countless others have been able to just tank drives, encoders, and gyros.

Crab isn't always the answer, and when it is, it isn't always an accurate one.

TroyCDH 19-10-2010 16:22

Re: Question on wheel speed sensors
 
Thanks for all of great responses.

Sounds like many people think that wheels on carpet would not benefit from sensors compared to the large amount of time it would take during the build season.

Thinking along the same lines, but more general now, what can be done during autonomous mode to keep straight directions actually straight and "X" degree turns really "X" degrees?

Is GPS legal? Do-able? Cost effective? Other ideas?

Thanks, Troy

EricH 19-10-2010 16:40

Re: Question on wheel speed sensors
 
Gyro, accelerometer, and wheel speed sensor with programming are good options. GPS has a good chance of not being able to give the <54 foot accuracy an FRC robot needs, especially when going through a stadium roof.

Lil' Lavery 19-10-2010 16:42

Re: Question on wheel speed sensors
 
Nobody is saying wheels on carpet don't benefit from sensors, but rather, they don't benefit from a "land speed" sensor as you were proposing. Almost every competitive team uses some form of sensors in their drivetrain, but usually just to monitoring their driven drive components. They'll mount a shaft enconder to their drive shaft or the output shaft on their gearbox, for example. They trust that the slip effects are small enough that any error they induce will not effect their gameplay.

If you want "external", field-oriented input, you don't always have to base it off the playing surface. Your GPS comment is on the right track. There have been games in the past with non-moving optical targets (such as the lights in 2004 and 2006) that can be incorporated into navigation software. While there hasn't been a game with enough stationary vision targets to triangulate your position on the whole field, using these points can certainly be helpful in many other ways.

Ether 19-10-2010 16:59

Re: Question on wheel speed sensors
 
Quote:

Originally Posted by TroyCDH (Post 977745)
Sounds like many people think that wheels on carpet would not benefit from sensors...

That's too much of a generalization of the responses.

If the only purpose of the sensors is to control wheel slip then that might be a fair generalization.

But if the purpose of the sensors is to improve autonomous accuracy then even on carpet - with minimal wheel slip - if you have no feedback of wheel position your accuracy is at the mercy of drivetrain friction and battery voltage and manufacturing tolerances of the motors.

Quote:

Originally Posted by TroyCDH (Post 977745)
...compared to the large amount of time it would take during the build season.

It doesn't take a large amount of time to put the KoP-provided sensor(s) on the wheel(s) and use that feedback in autonomous to improve the accuracy.




Dave Scheck 19-10-2010 17:49

Re: Question on wheel speed sensors
 
Quote:

Originally Posted by TroyCDH (Post 977745)
Thinking along the same lines, but more general now, what can be done during autonomous mode to keep straight directions actually straight and "X" degree turns really "X" degrees?

As has been mentioned, a gyro or wheel encoders will be your best bet. The tuning of your PID loop will determine how accurate your turn really is.

As far as driving straight goes, you can use those same sensors to make adjustments to your motor speeds to try to maintain a heading.

The tricky part to both of those problems is the experimental tuning of your PID loop(s). (This assumes that you can't get close mathematically). If you need a good C++ PID library, the Simbotics wrote a good one that we've been using for a couple years now. You can download it from their website

kgzak 21-10-2010 00:54

Re: Question on wheel speed sensors
 
Quote:

Originally Posted by Mike Soukup (Post 977725)
Since you did all this work before kickoff, you're either going to rewrite it or release it, right? You may want to read R25 from last year's rules.

Yup. I know about that rule. As soon as we have a functional website I will be posting it there. We just don't have a website up and running right now.

Joe Ross 21-10-2010 01:02

Re: Question on wheel speed sensors
 
Quote:

Originally Posted by kgzak (Post 977895)
Yup. I know about that rule. As soon as we have a functional website I will be posting it there. We just don't have a website up and running right now.

Make sure you also comply with <R67>. I'm not sure that your team website could be the only place you post the code, since it is "specifically affiliated with individual FRC teams". Some examples of "commonly used FRC community-accessible web resources" which would be the requirements would be chiefdelphi, firstforge, NI FIRST Community, FIRST forums, thinktank, etc.


All times are GMT -5. The time now is 23:44.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi