Go to Post The [FIRST Robotics] competition is a friendly / gentleman's sort of sport... It is only a forum to put our machines to the test, and see how well we did against what WE set out to do -- not to see which team can build the best robot. - KenWittlief [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 Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 27-06-2009, 23:10
Ranana_Prussy's Avatar
Ranana_Prussy Ranana_Prussy is offline
Registered User
no team
 
Join Date: Jun 2009
Location: Israel
Posts: 5
Ranana_Prussy is an unknown quantity at this point
maximum rpm for encoder

So its been suggested to me that for ppvs I increase the rp maximum to 5. I thought Id see what the board thinks of that idea.
Reply With Quote
  #2   Spotlight this post!  
Unread 31-01-2010, 11:23
TheWhiteReaper's Avatar
TheWhiteReaper TheWhiteReaper is offline
Robot Operations Leader/Programer
AKA: Jeremy
FRC #1723 (First Bots of Independence)
Team Role: Webmaster
 
Join Date: Jan 2010
Rookie Year: 2008
Location: Missouri
Posts: 5
TheWhiteReaper is an unknown quantity at this point
Re: maximum rpm for encoder.

If you look at the sensor manual it says that the maximum RPM's of the sensor is 10000. But i don't anyone is going to need anywhere near that. And it all depends on the processing speed of your cRIO.
__________________
RESPECT THE DUCT TAPE!!!!!


Reply With Quote
  #3   Spotlight this post!  
Unread 31-01-2010, 11:59
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Re: maximum rpm for encoder.

Anecdotally,

we are sampling at 20,000 cps without any difficulty using the kit-supplied encoders.

This is using the 4X sampling feature, which is enabled by default. This means even though the encoders produce 250 cpr, the cRIO is actually able to read 1000 cpr by capturing every edge transition on both phases.

My related question is:

I've noticed in the WPILib documentation that the FPGA is only mentioned when using the 4x encoder mode. In 1x mode, the documentation mentions that a Counter object is used instead. If we use 1x mode, is the FPGA NOT used to count pulses? If the FPGA is not used, does this reduce our maximum count rate by more than a factor of 4? Does this basically mean the 4x mode is always our best bet when using encoders?
__________________
In life, what you give, you keep. What you fail to give, you lose forever...
Reply With Quote
  #4   Spotlight this post!  
Unread 31-01-2010, 14:19
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: maximum rpm for encoder.

Quote:
Originally Posted by Mr. Lim View Post
I've noticed in the WPILib documentation that the FPGA is only mentioned when using the 4x encoder mode. In 1x mode, the documentation mentions that a Counter object is used instead. If we use 1x mode, is the FPGA NOT used to count pulses? If the FPGA is not used, does this reduce our maximum count rate by more than a factor of 4? Does this basically mean the 4x mode is always our best bet when using encoders?
The FPGA implements 4 encoders and 8 counters. The encoders are used in 4x mode while the counters are looking at only one of the phases in either 1x or 2x mode. The FPGA is doing the counting in either case.

If you're just counting pulses, you'll get the highest resolution with 4x. However, if you're using the rate feature, you will probably get better results (less noise) with 1x, as it is always counting the same transition.

As for the maximum rate question: http://decibel.ni.com/content/message/12523#12523
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Screwing Encoder into Encoder Mount? Adrien Electrical 3 25-01-2009 18:14
Inputs for the Encoder petet4 Electrical 2 19-01-2009 13:26
Wanted: CIM RPM data For actual robots de_ Motors 8 12-04-2008 20:07
Co-Operating for maximum hurdels Leav Rules/Strategy 15 08-01-2008 16:54
Kevin Watson's encoder code with RPM output MaxM Programming 2 05-02-2005 00:06


All times are GMT -5. The time now is 21:59.

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