Go to Post *wonders if omni wheel rollers come in MOE green or have to be dyed* - EricH [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 24-03-2011, 19:09
JoeyPass JoeyPass is offline
Registered User
FRC #2169 (KING TeC)
Team Role: Coach
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Prior Lake
Posts: 13
JoeyPass will become famous soon enoughJoeyPass will become famous soon enough
Walking Encoder Values

We have two active Encoders on our robot that read the positions of our arm and wrist. After a couple of movements and bringing the arm and wrist back to starting position we are getting increasing values. It should be reading near zero each time we return to the initial positions but on the arm we get increasing or "walking values" in increments of about 4 - 6 per iteration. Has any one encountered this and do you have any suggestions.

Thanks,
  #2   Spotlight this post!  
Unread 24-03-2011, 19:10
MagiChau's Avatar
MagiChau MagiChau is offline
Registered User
AKA: Michael Chau
FRC #0085 (B.O.B. (Built on Brains))
Team Role: Alumni
 
Join Date: Jan 2010
Rookie Year: 2010
Location: Zeeland, Michigan
Posts: 875
MagiChau is just really niceMagiChau is just really niceMagiChau is just really niceMagiChau is just really nice
Re: Walking Encoder Values

I would have limit switches that when hit, reset the encoder.
  #3   Spotlight this post!  
Unread 24-03-2011, 19:21
Chris27's Avatar
Chris27 Chris27 is offline
Registered User
AKA: Chris Freeman
FRC #1625 (Winnovation)
Team Role: Alumni
 
Join Date: Mar 2005
Rookie Year: 2004
Location: Mountain View
Posts: 196
Chris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant futureChris27 has a brilliant future
Re: Walking Encoder Values

A properly working encoder shouldn't drift very much. Are you sure that the encoder isn't slipping?
  #4   Spotlight this post!  
Unread 24-03-2011, 19:27
JoeyPass JoeyPass is offline
Registered User
FRC #2169 (KING TeC)
Team Role: Coach
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Prior Lake
Posts: 13
JoeyPass will become famous soon enoughJoeyPass will become famous soon enough
Re: Walking Encoder Values

Absolutely positive that it is not slipping. This encoder (the hat) is set on very tightly.
  #5   Spotlight this post!  
Unread 24-03-2011, 19:52
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,998
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Walking Encoder Values

What kind of encoder?
__________________

I am N2IRZ - What's your callsign?
  #6   Spotlight this post!  
Unread 24-03-2011, 19:54
JoeyPass JoeyPass is offline
Registered User
FRC #2169 (KING TeC)
Team Role: Coach
 
Join Date: Dec 2007
Rookie Year: 2007
Location: Prior Lake
Posts: 13
JoeyPass will become famous soon enoughJoeyPass will become famous soon enough
Re: Walking Encoder Values

Optical encoder.
  #7   Spotlight this post!  
Unread 24-03-2011, 20:03
Teched3 Teched3 is offline
Hodge1
FRC #0175 (BuzzRobotics)
Team Role: Mentor
 
Join Date: Apr 2006
Rookie Year: 1996
Location: Connecticut
Posts: 319
Teched3 has much to be proud ofTeched3 has much to be proud ofTeched3 has much to be proud ofTeched3 has much to be proud ofTeched3 has much to be proud ofTeched3 has much to be proud ofTeched3 has much to be proud ofTeched3 has much to be proud ofTeched3 has much to be proud of
Smile Re: Walking Encoder Values

Is the encoder connected directly to an axle? If that is the case, then possibly the axle is slipping. We use reinforced rubber fuel line between our encoders and axles, and then tighten safety wire around each shaft, us well as file a flat on the axle to ensure no radial creep occurs between them. Enlighten us further on how it is set up and maybe we can help you solve the problem.
__________________
Sweat the details
Why is there never enough time to do it right, but always enough time to do it again!
Even if you're on the right track, if you sit still, you'll get run over!!!
  #8   Spotlight this post!  
Unread 24-03-2011, 21:00
plnyyanks's Avatar
plnyyanks plnyyanks is offline
Data wins arguments.
AKA: Phil Lopreiato
FRC #1124 (The ÜberBots), FRC #2900 (The Mighty Penguins)
Team Role: College Student
 
Join Date: Apr 2010
Rookie Year: 2010
Location: NYC/Washington, DC
Posts: 1,113
plnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond reputeplnyyanks has a reputation beyond repute
Re: Walking Encoder Values

Is there the possibility of any EMI with the encoder. We had a bad motor interfering with an encoder, causing the values to be dramatically different than what they should be
__________________
Phil Lopreiato - "It's a hardware problem"
Team 1124 (2010 - 2013), Team 1418 (2014), Team 2900 (2016)
FRC Notebook The Blue Alliance for Android
  #9   Spotlight this post!  
Unread 24-03-2011, 21:04
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,998
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Walking Encoder Values

Two common reasons for an optical encoder to slip are:

Mechanical: There is mechanical slippage. Check this carefully, don't assume anything.

Computational: Your input circuit is missing some of the encoder's output pulses. If you are using a hardware interrupt, then your encoder resolution (pulses per revolution) may be higher than the hardware can manage. If you are not using a hardware interrupt, that could be your problem.
__________________

I am N2IRZ - What's your callsign?
  #10   Spotlight this post!  
Unread 24-03-2011, 21:15
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: Walking Encoder Values

Quote:
Originally Posted by DonRotolo View Post
Computational: Your input circuit is missing some of the encoder's output pulses. If you are using a hardware interrupt, then your encoder resolution (pulses per revolution) may be higher than the hardware can manage. If you are not using a hardware interrupt, that could be your problem.

If you are using the cRio's Encoder or Counter modules, they are handled with dedicated hardware in the FPGA, and should never drop counts in any reasonable encoder.
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
  #11   Spotlight this post!  
Unread 24-03-2011, 21:34
Teched3 Teched3 is offline
Hodge1
FRC #0175 (BuzzRobotics)
Team Role: Mentor
 
Join Date: Apr 2006
Rookie Year: 1996
Location: Connecticut
Posts: 319
Teched3 has much to be proud ofTeched3 has much to be proud ofTeched3 has much to be proud ofTeched3 has much to be proud ofTeched3 has much to be proud ofTeched3 has much to be proud ofTeched3 has much to be proud ofTeched3 has much to be proud ofTeched3 has much to be proud of
Smile Re: Walking Encoder Values

what is your encoder pulse rate/ rev? When we First starting using them years ago, the pulse rate was too high for the software/computer to keep up. As Don noted earlier, eliminate mechanical slip, and then triple check software code. Have you marked the connector, encoder, and axle to visually see if it creeps?
__________________
Sweat the details
Why is there never enough time to do it right, but always enough time to do it again!
Even if you're on the right track, if you sit still, you'll get run over!!!
  #12   Spotlight this post!  
Unread 24-03-2011, 22:41
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: Walking Encoder Values

Can you use a multi-turn POT instead?
__________________
FIRST Team 501 PowerKnights - Mentor
FIRST Team 40 Checkmate - Mentor Alum
FIRST Team 146 Blue Lightning - Alumni
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


All times are GMT -5. The time now is 09:54.

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