Go to Post You know, sometimes it is really cool to be a geek! - dlavery [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
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-02-2012, 21:22
badger3.14's Avatar
badger3.14 badger3.14 is offline
Registered User
AKA: Hayden
FRC #2512 (Duluth East Daredevils)
Team Role: Alumni
 
Join Date: Feb 2012
Rookie Year: 2005
Location: Duluth
Posts: 17
badger3.14 is an unknown quantity at this point
encoder jumping between two values. please help!

On our robot, we are trying to use the 360 clicks per revolution encoders from us digital to regulate our speed for our shooter, but when powering up the wheels and reading the values in labview, the encoders read steadily until 20833.3 clicks per second. When going above that, the values jump from 20833.3 to 41666.7 clicks per second.

Any thoughts or answers???
Reply With Quote
  #2   Spotlight this post!  
Unread 14-02-2012, 21:38
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,533
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: encoder jumping between two values. please help!

You may be exceeding the capabilities of either the encoder or the cRio. Research the limitations of both with regard to data rates for the DI/O and the encoder you have chosen. Reading over 20000+ samples a second is significant overkill. Consider getting a different encoder wheel to tone that down to 100, 32, or even 16.
Reply With Quote
  #3   Spotlight this post!  
Unread 14-02-2012, 21:46
wireties's Avatar
wireties wireties is offline
Principal Engineer
AKA: Keith Buchanan
FRC #1296 (Full Metal Jackets)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2004
Location: Rockwall, TX
Posts: 1,170
wireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond reputewireties has a reputation beyond repute
Send a message via AIM to wireties
Re: encoder jumping between two values. please help!

Quote:
Originally Posted by badger3.14 View Post
On our robot, we are trying to use the 360 clicks per revolution encoders from us digital to regulate our speed for our shooter, but when powering up the wheels and reading the values in labview, the encoders read steadily until 20833.3 clicks per second. When going above that, the values jump from 20833.3 to 41666.7 clicks per second.

Any thoughts or answers???

The counting circuits in the FPGA are only good to 40000 counts per sec. How fast is your wheel turning? You had better use the k1X setting. We are going with 32 cpr encoders for this reason.
__________________
Fast, cheap or working - pick any two!
Reply With Quote
  #4   Spotlight this post!  
Unread 15-02-2012, 18:32
j.cole j.cole is offline
Registered User
FRC #0379
 
Join Date: Jan 2010
Location: Girard
Posts: 159
j.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud ofj.cole has much to be proud of
Re: encoder jumping between two values. please help!

Just had the same problem today. Got it fixed. The problem is the Decoding rate (at least that's what it's labeled as in LabView). If it is set to 4x the variation is huge, at 2x its smaller, and at 1x its almost nothing. Talk to the programmer and see what it's set to.
__________________

It's not normally a good idea to give a programmer a drill but rules are made to be broken.
Reply With Quote
  #5   Spotlight this post!  
Unread 15-02-2012, 19:30
badger3.14's Avatar
badger3.14 badger3.14 is offline
Registered User
AKA: Hayden
FRC #2512 (Duluth East Daredevils)
Team Role: Alumni
 
Join Date: Feb 2012
Rookie Year: 2005
Location: Duluth
Posts: 17
badger3.14 is an unknown quantity at this point
Re: encoder jumping between two values. please help!

thanks for the input, our team ordered two new 32cpr encoders today. i am hoping that this will fix the problem.
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:36.

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