|
Re: Low Res Optical Encoders for Speed Control
You could use the getperiod method which returns the elapsed time between the two most recent edges, or you could read raw counts and divide the change in counts by the actual elapsed time since the counts were last read.
Each method has its pros and cons, and teams have been successful with both methods.
One or the other might be more appropriate depending on your encoder speed and the control algorithm you plan to use.
|