View Single Post
  #6   Spotlight this post!  
Unread 04-02-2016, 11:17
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 Ether View Post

CPR is cycles per revolution. One cycle has a rising edge and a falling edge on each channel.

The number of "counts" per rev depends on the way you decode it.

Counting rising and falling edges on both channels will give you 480 counts per rev

Counting rising and falling edges on one channel only will give you 240 counts per rev

Counting only rising - or falling - edges on one channel only will give you 120 counts per rev


Correct me if I'm wrong but would the 480 counts be for 4x, 240 for 2x, and 120 for 1x? Also, I have been told that 4x deciding is needlessly complicated for what I am doing (maintain RPM on a shooter with a PID) would you agree with that and if so what do you recommend?

Last edited by Sparx030 : 04-02-2016 at 11:30.
Reply With Quote