Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   Using a different gear tooth sensor (http://www.chiefdelphi.com/forums/showthread.php?t=62083)

Tim Skloss 19-01-2008 20:02

Using a different gear tooth sensor
 
5 Attachment(s)
There seems to be evidence that one of the two gear tooth sensors (GTS) sent in the FIRST KOP may be bad. We had one that worked and another that didn't. Autonomous accuracy is very important to our strategy this year so we HAD to have good tracking on both sides of our drive train.

As of this writing, I am not aware of any replacements available for the GTSs sent in the KOP. So we set out to adapt a low-cost COTS GTS to the Andy-Mark gearboxes. This thread explains how we did it.

I'm telling this story now because as of today we verified that the implementation was working well and we have the accuracy predicted in the mathematical analysis. We considered encoders, but to mount them requires more tricky mechanical linkages and parts.

The sensors are Honeywell model 1GT101DC. They are available from DigiKey for about $25. All you need is one PWM cable and a 5K-ohm resistor to connect it to the robot controller. The signal lead needs to be connected to the +5VDC lead via the resistor (pull-up for the sensor's open collector output). Software for reading the sensor's output can be found in this thread.

The sensor outputs a digital high level when it does not detect a ferrous object at its tip. When a ferrous metal is sensed at the tip it pulls the output low. (Therefore it can also be used as a limit switch!) Generally we mount the sensor 0.5 to 1.5 mm away from the gear or sprocket teeth. You can find the optimum distance by observing the output on an oscilloscope; tune for a 50% duty cycle when the gear/sprocket is rotating rapidly. An advantage of this setup is that you can quickly remove the GTS at the competition to clean off debris that tends to collect on the magnetic parts (gear tooth filings).

Of course mounting them into the AM gearboxes requires some effort, but it is manageable if you have a drill press. We drilled a hole in the "top" of the gearbox as show in pictures 1 and 3. The main hole was drilled directly above the gear so that the sensor will point directly at it. A smaller hole was drilled and tapped for a 1/4" bolt used to secure the sensor to the gearbox. Add a spacer and you have a secure mount as shown in pictures 4 and 5. Adjusting the length of the spacer allows you get the sensor-to-gear distance just right.

You will notice a few things:
-We machined a replacement aluminum plate for the gear box to allow us to more easily mount it to our chassis. Our chassis is made from ITEM brand extrusion which allows quick and easy construction, adjustment, and excellent maintainability.
-The GTS is sensing the high-speed 50 tooth gear that is driven by the CIM motors. This gives us more resolution in distance measurement. Currently we see 0.07 inch-per-tooth resolution using this setup and a 15/22 tooth sprocket ratio driving 6 inch wheels.
-Picture 6 shows our controls breadboard. We have been able to develop our autonomous code without the need for a rolling robot using this arrangement since kickoff. Today we moved the controls to the chassis for the first time and were able to show precise autonomous movement forward and in turns. The team was amazed at the accuracy, and frankly so was I!

So that's it. I hope to put this thread on the gearbox GTSs to rest. Hopefully FIRST (or someone else!) will make the KOP GTS boards available for purchase so teams can replace their faulty ones. Until then we are moving on to develop our autonomous and robocoach strategies.

Good luck teams!

KTorak 19-01-2008 22:01

Re: Using a different gear tooth sensor
 
We actually just got in some Honeywell ones from DigiKey. I'm not sure what model, as i'm not up with what the programmers are up to, but from when I played with them today, they seemed pretty cool.

galesc 22-01-2008 17:55

Re: Using a different gear tooth sensor
 
Good job with the research it is very much appreciated. Did you do any research or do you have any speculation about why one is good and one is bad? Is there any known part of the circuit that is bad on one and not the other?

Just try to get to the root of the problem.

Thanks.

efoote868 22-01-2008 20:25

Re: Using a different gear tooth sensor
 
we skipped the gear tooth sensor and went straight for shaft encoders. The programming team just got a mock up drive train, so we're going to be playing around with them.

I'm not sure the model, but I will post that if it works.

Tim Skloss 22-01-2008 22:19

Re: Using a different gear tooth sensor
 
Quote:

Originally Posted by galesc (Post 683806)
Good job with the research it is very much appreciated. Did you do any research or do you have any speculation about why one is good and one is bad? Is there any known part of the circuit that is bad on one and not the other?
Thanks.

I would have to assume that it is not component failure if one of the two boards is failing routinely. More likely there is a defect in the circuit board or the wrong part was placed during automated assembly. This happens quite commonly in electronics manufacturing, however it should have been picked up during acceptance tests.

SuperBK 24-01-2008 19:41

Re: Using a different gear tooth sensor
 
Do you guys think these Honeywell sensors would work looking at the SIDE of a gear instead of at the teeth directly?

Edit: I meant looking at the side of the teeth. Right at the edge of the gear. Drilling a 3/4 hold in the side of the gearbox looks like it could weaken it. For those that did drill it, did you have any problems? How big does the hole need to be. Our sensors should be arriving today.

Brian

TubaMorg 24-01-2008 22:52

Re: Using a different gear tooth sensor
 
Quote:

Originally Posted by SuperBK (Post 685196)
Do you guys think these Honeywell sensors would work looking at the SIDE of a gear instead of at the teeth directly?
Brian

Keep in mind that Hall effect sensors work by detecting a change of position of a ferrous material in close proximity to the sensor. If the sensor is is positioned to "look" at the side of the gear, then it won't know if anything has changed.

We wanted to thank Tim for this post, we are utilizing his research. We opted to change the mounting location so that we detect the output gear and changed the mount location to the side of the gear box. The greater distance from the wall of the gear box to the gear eliminated the need for a spacer. The distance was just right. Thanks Tim!

MrForbes 24-01-2008 23:24

Re: Using a different gear tooth sensor
 
Quote:

Originally Posted by Tim Skloss (Post 683977)
More likely there is a defect in the circuit board or the wrong part was placed during automated assembly. This happens quite commonly in electronics manufacturing, however it should have been picked up during acceptance tests.

apparently it wasn't picked up, resistors R3 and R4 are switched on one of our boards

billbo911 07-02-2008 00:37

Re: Using a different gear tooth sensor
 
Similar to what Tim did, we installed Honeywell encoders and both of our transmissions. Here is a picture of what ours looks like. We installed our gear tooth sensors on the output gear.

Code Monkey 07-02-2008 14:48

Re: Andy Mark encoders
 
We are using the encoders built into the Andy Mark Transmissions. I took one off for testing (works with new C18 encoder code perfectly) but I am worried about the coupling to the shaft. Has anyone taken one of these apart? I would like to put some sticky glue onto the coupling to keep it from slipping.


All times are GMT -5. The time now is 12:41.

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