Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Electrical (http://www.chiefdelphi.com/forums/forumdisplay.php?f=53)
-   -   Walking Encoder Values (http://www.chiefdelphi.com/forums/showthread.php?t=93989)

Kingofl337 24-03-2011 22:41

Re: Walking Encoder Values
 
Can you use a multi-turn POT instead?

mikets 24-03-2011 23:14

Re: Walking Encoder Values
 
The optical encoder comes with a centering tool and a disc spacing tool. If you follow the instructions correctly in using those tools, you should not have any problem. We have a student that did not use those tools when assembling the encoder. He pressed the optical disc all the way down and ended up scratching it. So our autonomous acted strangely. After scratching our heads for a while, I finally pulled out the encoder and examined the disc and found the problem. Once we replaced the disc, everything worked fine.

pfreivald 24-03-2011 23:26

Re: Walking Encoder Values
 
Quote:

Originally Posted by mikets (Post 1044920)
The optical encoder comes with a centering tool and a disc spacing tool. If you follow the instructions correctly in using those tools, you should not have any problem. We have a student that did not use those tools when assembling the encoder. He pressed the optical disc all the way down and ended up scratching it. So our autonomous acted strangely. After scratching our heads for a while, I finally pulled out the encoder and examined the disc and found the problem. Once we replaced the disc, everything worked fine.

Are you kidnapping my students and making them install sensors on your robot?

mikets 25-03-2011 03:14

Re: Walking Encoder Values
 
Quote:

Originally Posted by pfreivald (Post 1044925)
Are you kidnapping my students and making them install sensors on your robot?

Is it why we keep losing our games? :)

Jared Russell 25-03-2011 07:54

Re: Walking Encoder Values
 
My suspects would be, in order:

1. Mechanical slippage between the encoder and the shaft whose rotation it is measuring (you seem fairly sure that this isn't the issue, and I believe you, but in general it is the first/easiest thing to check)

2. Improper spacing between the optical disc and the encoder circuitry. Use a spacer tool when installing the disc.

3. A "smudge" (fingerprint or scratch) on the disc that causes one of the photoreflectors to miss a count or two per revolution. Easiest solution: try another encoder disc.

4. EMI/wiring problem.

5. Code issue. Your code doesn't ever reset the encoder, does it?

6. An absurd pulse frequency (too high of a CPR on the encoder given the speed of the shaft it is measuring). However, in the cRIO era, you need to be well into the tens-of-thousands of pulses per second before this would be an issue, so it is unlikely.

Bryany 25-03-2011 10:46

Re: Walking Encoder Values
 
This might not be what's causing your problems, but on our robot, the encoder would be missing ticks off and on; it would read for one second, then it would pause, then it would read some more, and so on. The encoder was plugged in all the way, but we found that the problem was because the wire was going into the encoder at an angle. (that the wire coming off at an angle was pulling the encoder out of a proper connection) We taped the wire so that it comes out straight and haven't had any problems since.

pfreivald 25-03-2011 14:06

Re: Walking Encoder Values
 
Quote:

Originally Posted by Bryany (Post 1045037)
(that the wire coming off at an angle was pulling the encoder out of a proper connection) We taped the wire so that it comes out straight and haven't had any problems since.

All wires should have a strain relief! :ahh:


All times are GMT -5. The time now is 04:21.

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