Go to Post And I'm sure I speak for most if not all of CD when I say: "How can we help you do that?" - EricH [more]
Home
Go Back   Chief Delphi > Technical > Control System > Sensors
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-01-2012, 17:47
nazgul42 nazgul42 is offline
Registered User
FTC #4115
 
Join Date: Jan 2012
Location: Mequon
Posts: 3
nazgul42 is an unknown quantity at this point
Tetrix Encoders not returning consistent values

On the robot that my team built, there are two motors with encoders on them. The software running on the NXT brick is written in robotC. It looks like:
Code:
// Motor definitions here
task main()
{
  nMotorEncoder[leftArm] = 0;
  nMotorEncoder[rightArm] = 0;
  while (true)
  {
    nxtDisplayTextLine(1,"RArm: %d", nMotorEncoder[rightArm]);
    nxtDisplayTextLine(3,"LArm: %d", nMotorEncoder[leftArm]);
  }
}
If I rotate one of the motors about 90 degrees, the displayed encoder value changes to about -200. If I then rotate the motor back to the position where it was at zero, the encoder value changes to about 250. Since the encoder changes faster in one direction than another, there is no actual 'zero position'. The other encoder displays this same behavior. Why does this happen?
Reply With Quote
  #2   Spotlight this post!  
Unread 14-01-2012, 20:01
Rainydaymaker's Avatar
Rainydaymaker Rainydaymaker is offline
Registered User
AKA: Jim
FRC #1983 (Skunk Works)
Team Role: Mentor
 
Join Date: Sep 2011
Rookie Year: 2009
Location: Seattle WA
Posts: 28
Rainydaymaker is on a distinguished road
Re: Tetrix Encoders not returning consistent values

This can be due to a scratched encoder rotor. Or a nicked encoder wire.
Reply With Quote
  #3   Spotlight this post!  
Unread 14-01-2012, 23:37
nazgul42 nazgul42 is offline
Registered User
FTC #4115
 
Join Date: Jan 2012
Location: Mequon
Posts: 3
nazgul42 is an unknown quantity at this point
Re: Tetrix Encoders not returning consistent values

If the scratched encoder rotor is the case, is there any way to fix that?
Reply With Quote
Reply


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 03:58.

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