What is the formula for calculating the RPM of a rotary encoder?

The formula for calculating the RPM of a rotary encoder is:
RPM = (60 * 1000 / pulse_per_turn) / (millis() – TIME) * pulses.

Related Questions