Yes it's possible, but you will only be able to count full steps of the motor, and it may be quite hard work to filter the signal generated by the motor (in hardware or software) to get accurate results. An optical encoder would be a more conventional solution.
↧