Encoder ‐ is a part that converts mechanical motion (linear or rotational) into a series of electrical pulses.