Go to Post I enjoy the brainstorming that's going on here, you guys out think me most of the time. Keep it up. - fnsnet [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-01-2009, 06:54
windell747 windell747 is offline
Registered User
FRC #2477
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2001
Location: Hawaii
Posts: 158
windell747 will become famous soon enoughwindell747 will become famous soon enough
maximum rpm for encoder.

Has anyone found the maximum rpm that the encoder can track a wheel before some of the pulses are missed because the pulse train is too fast? The reason why I ask is that I am considering using the encoder to track the velocity of a cell shoot wheel. any thoughts?
Reply With Quote
  #2   Spotlight this post!  
Unread 27-01-2009, 07:10
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: maximum rpm for encoder.

We know that the digital inputs on the cRIO are sampled at 153KHz. From the Shannon-Nyquist theorem we know that we need to sample at twice the maximum frequency we are expecting in order to fully reconstruct the waveform - so the maximum frequency of each encoder channel is 153KHz/2 = 76.5KHz.

Note that there may be (and there probably is) some filtering component on the input, so the actual limit could be lower. Still, I think that "tens of kilohertz" is probably the right answer.

What this means for encoder shaft RPM is a product of the gearing of your system and the CPR of the encoder.

For example, the kit encoders are 250CPR (1000PPR because of the 4x decode). So you probably want to limit these to a maximum of 10-20 rotations per second, or 600-1200 RPM. You can certainly buy lower resolution encoders (or you can make your own using reflective tape strips and an optical sensor - this is what we did in 2006 for our flywheel).

Last edited by Jared Russell : 27-01-2009 at 07:14.
Reply With Quote
  #3   Spotlight this post!  
Unread 27-01-2009, 07:22
windell747 windell747 is offline
Registered User
FRC #2477
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2001
Location: Hawaii
Posts: 158
windell747 will become famous soon enoughwindell747 will become famous soon enough
Re: maximum rpm for encoder.

great stuff! Thank you very much! I have some 100PPR encoders that might be able to do the job, otherwise, i might take you up on your make your own encoder wheel idea.
Reply With Quote
  #4   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
  #5   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
  #6   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
  #7   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: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