Go to Post We have to have a water-based game discussion each year, because every time I try to start up a "jello-based game" thread no one takes me seriously... - dlavery [more]
Home
Go Back   Chief Delphi > Technical > Electrical
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-02-2005, 19:08
AIBob's Avatar
AIBob AIBob is offline
AI Programmer
AKA: Bob Frank DOT org
FRC #0358 (Hauppauge Robotic Eagles)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Long Island, NY (in Binghamton now)
Posts: 297
AIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to beholdAIBob is a splendid one to behold
Send a message via ICQ to AIBob Send a message via AIM to AIBob Send a message via MSN to AIBob Send a message via Yahoo to AIBob
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.
__________________
- from B B frank


Last edited by AIBob : 20-02-2005 at 19:11.
  #2   Spotlight this post!  
Unread 20-02-2005, 21:24
jjdebner's Avatar
jjdebner jjdebner is offline
Jdizzle
AKA: Joshua Debner
None #0195 (Cyber Knights)
Team Role: Mechanical
 
Join Date: Jan 2004
Rookie Year: 2004
Location: Southington, CT
Posts: 79
jjdebner has much to be proud ofjjdebner has much to be proud ofjjdebner has much to be proud ofjjdebner has much to be proud ofjjdebner has much to be proud ofjjdebner has much to be proud ofjjdebner has much to be proud ofjjdebner has much to be proud ofjjdebner has much to be proud of
Send a message via AIM to jjdebner
Re: Strange Encoder Problem

which encoders are you using?
__________________
- 2004 Entrepreneurship Award, UTC Regional
- 2004 3rd Place, NJ Regional
- 2004 J&J Sportmanship Award, NJ Regional
- 2006 Championship Finalist
- 2006 Innovation in Control Award, UTC Regional
- 2006 Championship Inovation in Control Award
- 2007 Winner UTC Regional
- 2007 GM Industrial Design Award, UTC Regional
  #3   Spotlight this post!  
Unread 20-02-2005, 21:48
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
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.
  #4   Spotlight this post!  
Unread 20-02-2005, 22:20
Kevin Watson's Avatar
Kevin Watson Kevin Watson is offline
La Caņada High School
FRC #2429
Team Role: Mentor
 
Join Date: Jan 2002
Rookie Year: 2001
Location: La Caņada, California
Posts: 1,334
Kevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond reputeKevin Watson has a reputation beyond repute
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
__________________
Kevin Watson
Engineer at stealth-mode startup
http://kevin.org
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Auto Problem NotQuiteFree Programming 6 20-02-2005 17:12
encoder vs. motor stephenthe1 Programming 55 06-01-2005 22:07
Updated Encoder Code Available Kevin Watson Programming 2 04-01-2005 01:00
how to add steps in the provided encoder program for the edu Zaramel2002 Programming 3 11-02-2004 08:35
Major problem with chipphua motors aka Scott White Motors 18 19-03-2002 19:44


All times are GMT -5. The time now is 17:26.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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