A rotary encoder is an electromechanical device used to convert the angular position or motion of a shaft into digital signals. It essentially measures the rotation and direction of rotation of a shaft and provides corresponding electrical outputs. The working principle of a rotary encoder can be understood in two main types: incremental rotary encoders and absolute rotary encoders.
Incremental Rotary Encoder:
An incremental rotary encoder generates a series of pulses as the shaft rotates. These pulses are used to measure the relative position and movement of the shaft. The main components of an incremental rotary encoder are:
a. Disc or Wheel: The encoder has a rotating disc or wheel mounted on the shaft. The disc typically has evenly spaced slots, holes, or markings along its circumference.
b. Light Source and Detector: On one side of the disc, there is a light source (usually an LED) and on the other side, there is a photodetector (such as a phototransistor). The light source emits light towards the disc, and the detector receives the light that passes through the slots or holes.
c. Signal Processing Circuitry: The photodetector generates electrical pulses whenever it detects changes in the light intensity as the slots or holes pass through the light path. The circuitry processes these pulses to determine the direction and speed of rotation.
When the shaft rotates, the disc interrupts the light path, causing the photodetector to produce a sequence of pulses. The number of pulses generated per full rotation is referred to as the encoder's "resolution." The resolution determines the precision of the encoder in measuring the shaft's position and movement. By counting and analyzing the pulses, it is possible to calculate the relative angular position and direction of rotation.
Absolute Rotary Encoder:
An absolute rotary encoder, unlike an incremental encoder, provides a unique digital code for each possible angular position of the shaft. This means that even if the power is turned off, the encoder retains the exact position information. The main components of an absolute rotary encoder are:
a. Disc with Coded Tracks: The encoder has a disc with multiple concentric tracks. Each track carries a unique binary pattern (code) that corresponds to a specific angular position.
b. Sensor Array: Above the disc, there are sensor elements that detect the binary code on each track. These sensor elements can be optical or magnetic, depending on the type of absolute encoder.
c. Signal Processing and Output: The signals from the sensor elements are processed by electronic circuitry, which interprets the binary code and provides digital outputs representing the absolute position of the shaft.
The number of tracks and the binary pattern's length on each track determine the resolution and accuracy of the absolute encoder. When the shaft rotates, the sensor array reads the code on each track, and the electronic circuitry decodes the position, giving an accurate representation of the shaft's absolute angular position.
In summary, rotary encoders are valuable devices for measuring rotational motion, and their working principle depends on whether they are incremental or absolute. Incremental encoders provide relative position and movement information through pulse counting, while absolute encoders give a unique digital output for each shaft position.