8.1 Speed Calculation

Speed can be calculated by measuring the number of edges of encoder pulses encountered (position difference) in a fixed time interval, or by measuring the time elapsed between the fixed number of edges of encoder pulses encountered.

  • Calculating speed by measuring the position difference in a fixed time interval.
    Equation 8-1. 
    ω m = Θ m ( n + 1 ) Θ m ( n ) Δ t
  • Calculating speed by measuring the time elapsed between a fixed number of encoder pulses
    Equation 8-2. 
    ω m = Δ Θ m t ( n + 1 ) t ( n )

Equation 8-1 provides good accuracy at higher speeds, and Equation 8-2 provides good accuracy at lower speeds though timer overflows must be addressed. In this document, the first method is used for the entire speed range. In this case, it must be considered that the minimum speed can be measured as follows:

Equation 8-3. 
ω m(min) = 120 no. of encoderpulses mech.rev * (Speed sampling rate in sec)