Go to Post Is it weird we think speed controllers are sexy? - vivek16 [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #16   Spotlight this post!  
Unread 20-02-2012, 16:29
jhellr13 jhellr13 is offline
Registered User
FRC #4272
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: US
Posts: 187
jhellr13 is an unknown quantity at this point
Re: Encoders getting different rates

Quote:
Originally Posted by tilky View Post
ok so since they both work, but at different rates, the method i gave above will work.
Exactly. In my code right now I just have the distance per count set at 1 for both and they are both at 1X. I'm just going to lay out 10ft, push the robot, get the readouts for both, divide 10ft * 12 inches by the count for each side. Then I will have the distance per count for both. If that goes the way I think, both encoders will be in sync with each other afterwards. What do you think?
Reply With Quote
  #17   Spotlight this post!  
Unread 20-02-2012, 16:31
tilky's Avatar
tilky tilky is offline
Registered User
AKA: Ryan Thielke
FRC #3137
Team Role: Programmer
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Connetquot
Posts: 188
tilky is an unknown quantity at this point
Re: Encoders getting different rates

it sounds perfect. and this test will kill 2 birds with one stone; you will be able to find the counts per foot at the same time
Reply With Quote
  #18   Spotlight this post!  
Unread 20-02-2012, 16:33
jhellr13 jhellr13 is offline
Registered User
FRC #4272
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: US
Posts: 187
jhellr13 is an unknown quantity at this point
Re: Encoders getting different rates

Quote:
Originally Posted by tilky View Post
it sounds perfect. and this test will kill 2 birds with one stone; you will be able to find the counts per foot at the same time
Great! Thanks for the help. See you guys next month at Hofstra
Reply With Quote
  #19   Spotlight this post!  
Unread 20-02-2012, 16:36
tilky's Avatar
tilky tilky is offline
Registered User
AKA: Ryan Thielke
FRC #3137
Team Role: Programmer
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Connetquot
Posts: 188
tilky is an unknown quantity at this point
Re: Encoders getting different rates

what school are you from?
Reply With Quote
  #20   Spotlight this post!  
Unread 20-02-2012, 16:36
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: Encoders getting different rates

Quote:
Originally Posted by jhellr13 View Post
I'm not exactly sure of the entire model number as I don't have them in front of me, but I definitely know one is all Ds and the other has Ds and a H.
The letters don't tell you how many counts per revolution the encoder provides. That's in the numbers. The E4P encoders used on AndyMark gearboxes have a "250" in the part number that refers to the 1/4" shaft they go on, but they have another three-digit number that's the important one here. The KOP encoders have been 250 or 360 counts per revolution.

Find out what the full part numbers are and you'll probably see why one of them is reporting much smaller values.
Reply With Quote
  #21   Spotlight this post!  
Unread 20-02-2012, 16:41
jhellr13 jhellr13 is offline
Registered User
FRC #4272
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: US
Posts: 187
jhellr13 is an unknown quantity at this point
Re: Encoders getting different rates

Quote:
Originally Posted by tilky View Post
what school are you from?
Comsewogue
Reply With Quote
  #22   Spotlight this post!  
Unread 20-02-2012, 16:41
tilky's Avatar
tilky tilky is offline
Registered User
AKA: Ryan Thielke
FRC #3137
Team Role: Programmer
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Connetquot
Posts: 188
tilky is an unknown quantity at this point
Re: Encoders getting different rates

ummm....where is that?
Reply With Quote
  #23   Spotlight this post!  
Unread 20-02-2012, 16:42
jhellr13 jhellr13 is offline
Registered User
FRC #4272
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: US
Posts: 187
jhellr13 is an unknown quantity at this point
Re: Encoders getting different rates

Quote:
Originally Posted by Alan Anderson View Post
The letters don't tell you how many counts per revolution the encoder provides. That's in the numbers. The E4P encoders used on AndyMark gearboxes have a "250" in the part number that refers to the 1/4" shaft they go on, but they have another three-digit number that's the important one here. The KOP encoders have been 250 or 360 counts per revolution.

Find out what the full part numbers are and you'll probably see why one of them is reporting much smaller values.
That could be it. I'll look into it
Reply With Quote
  #24   Spotlight this post!  
Unread 20-02-2012, 16:51
jhellr13 jhellr13 is offline
Registered User
FRC #4272
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: US
Posts: 187
jhellr13 is an unknown quantity at this point
Re: Encoders getting different rates

Quote:
Originally Posted by tilky View Post
ummm....where is that?
Suffolk county...
Reply With Quote
  #25   Spotlight this post!  
Unread 20-02-2012, 16:52
tilky's Avatar
tilky tilky is offline
Registered User
AKA: Ryan Thielke
FRC #3137
Team Role: Programmer
 
Join Date: Nov 2011
Rookie Year: 2011
Location: Connetquot
Posts: 188
tilky is an unknown quantity at this point
Re: Encoders getting different rates

ok. i'm guessing you know where connetquot is, so see you there
Reply With Quote
  #26   Spotlight this post!  
Unread 20-02-2012, 17:46
Brandon_L Brandon_L is offline
Someone told me there was food here
AKA: Brandon Liatys
FRC #2180 (Zero Gravity)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Newark, NJ
Posts: 1,200
Brandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond reputeBrandon_L has a reputation beyond repute
Re: Encoders getting different rates

We had the same problem with ours. One side was giving reliable readings everytime, the other would give us some random garbage. We figured it out by manually rotating the axis the encoder was on by 1 revolution, and looking at the output, several times. They were very consistent, compared to the other side that would give us garbage. We looked at our wiring and found that the plastic clip the wires plug into was cracked and one of the signal wires was pretty much not connected. Pull it out and just check on it. After we replaced it, its been working fine.

If you rotate them one revolution and both sides are giving similar readings every time, then you can go ahead and scale them. For example if side A was giving you 140 and B was 360, you know that 140X=360. 360/140=~2.6. So you multiply the one side by ~2.6 to get them equal.
__________________
FRC 2495 - Hamilton West Robotics [2007-2014] - whats a..."hive mind"?
FRC 3929 - Atomic Dragons [2012-2013]
FRC 2180 - Zero Gravity [2017-]

Just trying to collect all the possible team colors

Last edited by Brandon_L : 20-02-2012 at 17:48.
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 11:23.

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