Chief Delphi

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

AIBob 20-02-2005 19:08

Strange Encoder Problem
 
We have a big problem here at 358, we were testing our encoders, and it seems that in one direction the encoders say that we have gone 20 feet, and when we go in the opposite direction, it says that we have gone 21 feet, while we go the same distance in both directions. Although I am not sure if this is mechanical, software or electronical yet, I was just wondering if anyone else has had this problem, and how they solved it. If no one has had this problem then we would have to account for it in the program, but that would make a big mess in our code, adding an additional two longs for both forward and back and having the total be the difference of them times their proper coefficients of cource, but I would rather not have to do that to the code. So if you have a solution, your help would be greatly appriciated.

jjdebner 20-02-2005 21:24

Re: Strange Encoder Problem
 
which encoders are you using?

Alan Anderson 20-02-2005 21:48

Re: Strange Encoder Problem
 
We fixed our highly inconsistent encoder readings in software, by interrupting on both rising and falling edges of the Phase A signal. The apparent root cause of the problem was mechanical jitter, tricking the software into counting multiple times as the encoder stayed roughly in the same place. An electronic solution (search for "7474") didn't fix our problem, but it might for you.

Kevin Watson 20-02-2005 22:20

Re: Strange Encoder Problem
 
Quote:

Originally Posted by AIBob
We have a big problem here at 358, we were testing our encoders, and it seems that in one direction the encoders say that we have gone 20 feet, and when we go in the opposite direction, it says that we have gone 21 feet, while we go the same distance in both directions. Although I am not sure if this is mechanical, software or electronical yet, I was just wondering if anyone else has had this problem, and how they solved it. If no one has had this problem then we would have to account for it in the program, but that would make a big mess in our code, adding an additional two longs for both forward and back and having the total be the difference of them times their proper coefficients of cource, but I would rather not have to do that to the code. So if you have a solution, your help would be greatly appriciated.

What is the actual distance traveled and how many counts per second are you generating?

-Kevin


All times are GMT -5. The time now is 11:40.

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