Rotary Encoders Explained: Incremental vs Absolute, Quadrature, Resolution and Interfaces
Rotary encoders tell a machine exactly how far and how fast a shaft has turned. This guide explains incremental and absolute encoders, quadrature signals, resolution, Gray code, optical and magnetic sensing, the most common electrical interfaces, and how encoders compare with potentiometers.
A rotary encoder converts the rotation of a shaft into electrical signals that a controller can count. Encoders give position and speed feedback in servo motors, robots, CNC machines, conveyors, cranes, printing presses, wind turbines and elevators. Choosing the right one starts with a single question: does the machine need to know its position immediately after power-up?

Incremental encoders
An incremental encoder produces a stream of pulses as the shaft turns. The controller counts the pulses to work out how far the shaft has moved, and measures their frequency to get speed.
- Channels A and B are two square waves offset by a quarter of a cycle (90°), known as quadrature. If A leads B, the shaft turns one way; if B leads A, it turns the other.
- Channel Z (index or reference) gives one pulse per revolution, used to find a home position.
- Resolution is given in pulses per revolution (PPR). Counting every rising and falling edge of A and B ("x4 decoding") gives four counts per pulse: a 1,024 PPR encoder yields 4,096 counts per revolution, or about 0.088° per count.
The catch: an incremental encoder only knows how far it has moved since it started counting. After a power loss, the machine has to return to a reference position (homing).
Absolute encoders
An absolute encoder outputs a unique digital value for every shaft position, so the position is known the instant it powers up, with no homing.
- Single-turn absolute encoders report position within one revolution. A 12-bit encoder divides a turn into 4,096 positions; 16-bit gives 65,536.
- Multi-turn absolute encoders also count complete revolutions, using gears, a battery-backed counter, or energy-harvesting technology such as Wiegand wires that work without a battery.
- Gray code is often used for the position code, because only one bit changes between neighbouring positions, avoiding big reading errors during transitions.
Incremental vs absolute
| Incremental | Absolute | |
|---|---|---|
| Position after power-up | Unknown, needs homing | Known immediately |
| Output | Pulse trains (A, B, Z) | Digital position word or fieldbus value |
| Cost | Lower | Higher |
| Wiring | Simple, high-speed counter input | Serial interface or fieldbus |
| Typical use | Speed feedback, conveyors, simple positioning | Robots, cranes, servo axes, safety-related positioning |
Optical vs magnetic encoders
- Optical: a light source shines through a patterned glass or metal disc onto photodetectors. Very high resolution and accuracy, but sensitive to dirt, condensation and strong shock.
- Magnetic: a magnetised wheel or a single magnet on the shaft is read by Hall effect or magnetoresistive sensors. More robust against dust, oil, moisture and vibration, with resolution now high enough for most industrial uses.
- Capacitive and inductive: less common, but robust and suitable for some motor feedback and harsh-environment applications.
Heavy-duty encoders for steel mills and similar plants add rugged housings, heavy bearings and high protection ratings. POSITAL's purchase of RESATRON shows the demand for such designs.
Electrical interfaces
| Interface | Encoder type | Notes |
|---|---|---|
| TTL / RS-422 | Incremental | 5 V differential line driver (A, /A, B, /B, Z, /Z); good noise immunity at high frequencies |
| HTL (push-pull) | Incremental | 10 to 30 V signals matching PLC inputs; robust over long cables |
| Open collector | Incremental | Simple and low cost; needs pull-up resistors; limited speed and distance |
| SSI | Absolute | Synchronous serial interface; clock and data over RS-422/RS-485 pairs |
| BiSS C | Absolute | Open, fast bidirectional serial interface, popular for servo feedback |
| Fieldbus and Ethernet | Absolute | CANopen, PROFINET, EtherCAT, EtherNet/IP and others; position sent directly to the controller |
| IO-Link and analogue | Absolute | Simple integration; analogue outputs such as 4-20 mA for basic angle feedback |
Rotary encoder vs potentiometer
A potentiometer is a variable resistor whose output voltage represents position. It is cheap and absolute, but its rotation is limited, its track wears, and analogue signals pick up noise. An encoder gives digital output, can rotate endlessly and, if contactless, does not wear. The small rotary encoder knobs used in hobby electronics and audio equipment are low-resolution mechanical incremental encoders, often with detents and a push switch; breakout modules typically label their pins CLK, DT, SW, + and GND.
How to choose a rotary encoder
- Absolute or incremental: do you need position at power-up?
- Resolution: enough counts per revolution for the smallest movement you must control.
- Maximum speed: check the encoder's maximum output frequency against PPR × rpm ÷ 60, and your counter's input limit.
- Interface: match your controller or drive.
- Mechanics: solid shaft with coupling, hollow shaft, or bearingless kit.
- Environment: protection rating, temperature, shock, vibration and dirt.
Frequently asked questions
What is the difference between PPR and CPR?
PPR is pulses per revolution on one channel. CPR (counts per revolution) usually means the count after quadrature decoding, which is four times the PPR.
Why does my encoder count drift?
Common causes are electrical noise on long single-ended cables, a counter input that is too slow, mechanical slip in the coupling, or a missing shield or ground connection. Differential outputs and shielded cable usually fix it.
What is a linear encoder?
The straight-line equivalent of a rotary encoder: a read head moves along a scale and reports linear position, used in machine tools and metrology.
Related guides: Hall effect sensors, proximity sensors, RS-485 wiring. See encoders and motion control at SPS 2027 and automatica 2027.
Find rotary encoder suppliers in the Sensor Times directory.