View Single Post
  #4   Spotlight this post!  
Unread 04-02-2016, 09:08
Sparx030 Sparx030 is offline
Registered User
FRC #1251
 
Join Date: Jan 2016
Location: Florida
Posts: 14
Sparx030 is an unknown quantity at this point
Re: Finding RPMs with encoder

Quote:
Originally Posted by RyanN View Post
S4T is the model... nothing interesting there.

120 is the Counts Per Revolution (CPR). That's the resolution of the encoder per 360 degrees of rotation. So it will provide 120 counts/pulses/ticks per 360 degrees... or one count per every 3 degrees.

I'm not sure what language you're using, but I'm only familiar with the LabVIEW libraries.

The getRate() function will provide you with a counts / second value while getPeriod() will return the inverse, seconds / count. I imagine get() returns the total counts since the encoder count value was reset. The setDistancePerPulse() function should take in either degrees or radians equal to 3 degrees.

Finally, 250 is rather boring to this control mentor. It's just the shaft size, 250 mils or 1/4" shaft diameter.
I am using Java but this information was very helpful. I wan't able to find whether or not the code used counts per second, per minuet, or anything.

Thank you for replying.
Reply With Quote