Research Robots Applications Industries Technology About Contact Sales
← Back to Knowledge Base
Robotics Core

Optical Rotary Encoders

The nervous system of precision navigation, optical rotary encoders translate mechanical motion into the digital language of robotics. They provide the critical feedback loop required for AGVs to execute sub-millimeter movements, ensure safety, and maintain high-efficiency path planning in complex environments.

Optical Rotary Encoders AGV

Core Concepts

Incremental Encoding

Generates pulses as the shaft rotates. It measures relative motion and speed, requiring a "homing" sequence upon startup to establish absolute position within the warehouse.

Absolute Encoding

Assigns a unique digital code to every angle of the shaft. Crucial for robotic arms and safety systems, as position data is retained even after a total power loss.

Resolution (PPR)

Pulses Per Revolution defines the granularity of measurement. Higher resolution (e.g., 5000 PPR) allows for extremely smooth velocity control at very low speeds.

Quadrature Output

Uses two signal channels (A and B) offset by 90 degrees. By reading which channel rises first, the AGV controller instantly determines direction of rotation.

The Optical Disc

The core component: a glass or metal disc with microscopic transparent and opaque lines that interrupt a light beam to generate the signal pulses.

Index Channel (Z)

A "Z" channel provides a single pulse once per revolution. This serves as a precise zero-reference point for verifying position counts during extended operation.

How It Works

The mechanism inside an optical rotary encoder is a triumph of optoelectronics. A light source, typically an LED, shines a concentrated beam through a rotating code disc. This disc is patterned with precise lines—like the spokes of a wheel—that alternate between transparent and opaque.

As the disc spins with the AGV's motor shaft, it "chops" the light beam. On the other side of the disc, a photodetector assembly captures these flashes of light and converts them into electrical pulses (square waves).

These pulses are sent to the AGV's central processor or PLC. By counting the frequency of pulses, the robot calculates speed. By counting the total number of pulses, it calculates distance traveled. The phase shift between signals allows it to determine forward or reverse motion, enabling precise PID control for smooth navigation.

Technical Diagram

Real-World Applications

Dead Reckoning Navigation

In environments where GPS or LiDAR signals are obscured, AGVs rely entirely on wheel odometry provided by encoders to estimate their position relative to a known starting point.

Forklift Mast Positioning

Automated forklifts use absolute encoders on the lift motor to know the exact height of the forks, ensuring pallets are picked and placed with millimeter precision at high rack levels.

Differential Steering

To turn, mobile robots often spin wheels at different speeds. Encoders provide the feedback necessary to synchronize these speeds perfectly, ensuring accurate turning radii and preventing tire slip.

Conveyor Synchronization

When an AGV docks with a static conveyor belt, encoders match the robot's roller speed to the conveyor speed, allowing for seamless, jerk-free transfer of goods.

Frequently Asked Questions

Optical vs. Magnetic Encoders: Which is better for AGVs?

Optical encoders generally offer higher resolution and accuracy, making them ideal for precise navigation and positioning. However, magnetic encoders are more robust against dust, oil, and vibration. For clean warehouse environments, optical is the gold standard; for harsh industrial floors, magnetic might be preferred.

What resolution (PPR) do I need for my robot?

This depends on your wheel diameter and required position accuracy. For a standard warehouse AGV, 1024 to 4096 PPR is common. Higher PPR provides smoother velocity control at low speeds, which is critical for docking maneuvers, but requires higher frequency processing capabilities.

How does dust affect optical encoders?

Since they rely on light transmission, dust on the optical disc can block signals, causing skipped pulses. For robotics, it is essential to use encoders with a high IP rating (e.g., IP65 or IP67) that feature sealed housings to prevent contaminant ingress.

Why use an Absolute encoder instead of an Incremental one?

Absolute encoders know their exact position immediately upon power-up without moving. This is safer for lifting mechanisms or steering angles where a "homing run" (moving to find a zero point) could be dangerous or physically impossible after a power cut.

What is the interface typically used for AGV encoders?

Incremental encoders typically use Push-Pull (HTL) or RS422 (TTL) logic. Absolute encoders often communicate via digital protocols like SSI, BiSS, CANopen, or EtherCAT, which allow for easier integration into complex fieldbus networks used in modern factories.

How do I troubleshoot signal noise in encoder cables?

Encoder signals are susceptible to electrical noise from motor drives. Use twisted-pair shielded cables, ground the shield at the drive end only, and route encoder cables away from high-power motor cables. Using differential signaling (RS422) drastically reduces noise interference.

What causes encoder failure in mobile robots?

The most common causes are mechanical bearing failure due to excessive shaft loading (misalignment), vibration damage to the internal glass disc, or fluid ingress attacking the electronics. Proper mounting using flexible couplings is vital for longevity.

Does temperature affect optical encoder performance?

Yes. Extreme heat can degrade the LED light source over time, while extreme cold can cause condensation on the optical disc. Ensure the encoder is rated for your operating environment, especially for AGVs entering cold storage freezers.

What is the "Index Pulse" and do I need it?

The Index (or Z channel) is a signal that triggers once per full rotation. It is useful for error checking—if the count isn't what it should be when the Z pulse triggers, the system knows a slip or error occurred. It's highly recommended for high-reliability navigation.

Can I retrofit optical encoders onto existing motors?

Yes, many "kit encoders" or hollow-shaft encoders are designed to mount directly onto the rear shaft of existing DC or BLDC motors. You simply need to ensure the shaft diameter matches and you have a mounting face for the tether or stator.

What is the difference between single-turn and multi-turn absolute encoders?

Single-turn encoders track position within 360 degrees (0 to 359). Multi-turn encoders track the position within a rotation AND count how many total rotations have occurred. Multi-turn is essential for linear actuators or wheels that travel long distances.

How does an optical encoder calculate speed?

Speed is calculated by the controller measuring the frequency of the incoming pulses (pulses per second) or by measuring the time duration between two pulses. The latter method is more accurate for slow-moving AGVs.

Ready to implement Optical Rotary Encoders in your fleet?

Explore Our Robots