An incremental optical encoder that has N windows per track is connected to a shaft through a gear system with gear ratio p. Derive formulas for calculating the angular velocity of the shaft by the
(a) Pulse-counting method
(b) Pulse-timing method
What is the speed resolution in each case? What effect does step-up gearing have on the speed resolution?