Research Careers Contact

GlossaryEncoder

Encoder

An encoder is a sensor that converts a shaft's position or motion into an electrical signal a controller can read. In robots, encoders on motors and joints tell the motor driver and the controller where each joint is and how fast it is moving.

How it works

The two main types are incremental and absolute.

  • Incremental encoders output pulses as the shaft turns, usually as two channels, A and B, offset by a quarter cycle so the controller can tell direction. An index pulse marks one point per turn. Position is counted from a reference, so it is lost when power is lost.
  • Absolute encoders output a unique position value for every angle, read over a serial interface. They know the position at power up without moving to a reference. Multi-turn absolute encoders also count turns.

Encoders sense position in several ways. Optical encoders read a patterned disk with a light source and sensor. Magnetic encoders read a magnet's field with Hall or magnetoresistive sensors, which tolerate dust and vibration. Inductive and capacitive encoders read patterns on a circuit board, which makes them thin and robust. In motor drive systems covered by standards such as IEC 61800-5-1, the encoder provides the feedback that the drive's control acts on.

Encoder vs Hall sensor

Hall sensors on a BLDC motor give a coarse position, six states per electrical turn, enough to commutate the motor. An encoder gives much finer position, from hundreds to millions of counts per turn, which is needed for smooth low-speed motion and precise positioning.

Why it matters

A robot can only move as precisely as its encoders measure. Encoder noise or error becomes position error, vibration or poor control. A lost encoder signal can make a joint move unpredictably, so FMEA work on robot joints usually covers it, and encoders are often part of safety functions.

How to get it right

  • Choose resolution and accuracy for the required motion, not just the highest count available.
  • Use differential signaling or a robust serial protocol over long cables.
  • Keep encoder lines away from motor phase wiring.
  • Calibrate magnetic encoders for magnet offset and mounting error.
  • Detect and handle signal loss in firmware.

Encoders in robotics and drone hardware

Robot joints often carry two encoders: one on the motor for commutation and one on the joint output to measure position after the gearbox. Small encoder boards sit inside the joint next to the motor driver and report over CAN or EtherCAT, so they need careful layout against motor noise.

Learn more