Overview
Magnetic encoders consist primarily of a magnetoresistive sensor, a magnetic drum, and signal processing electronics. The magnetic drum is recorded with small magnetic poles at equal intervals. After magnetization, these poles generate a periodic stray magnetic field as the drum rotates. The magnetic sensor probe converts the changing magnetic field into changes in resistance via the magnetoresistive effect and, when excited by a voltage, these resistance changes produce voltage variations. The analog voltage signal is then processed by the signal conditioning circuitry and converted into a digital signal that can be interpreted by a controller. Magnetic encoders therefore use a magnetic-to-electrical design.
Optical encoders are composed of a light source, a code disk, and an optical receiver, where the code disk is the key component. Optical encoders are mainly used to measure displacement or angle. Traditional code disk materials include glass, metal, and plastic. Glass code disks can have very fine lines deposited on the glass and offer good thermal stability and accuracy, but they are fragile and can crack easily.

Characteristics and Advantages of Magnetic Encoders
- Strong immunity to interference: Magnetic encoders are resistant to electromagnetic interference in the environment and are suitable for demanding conditions such as high magnetic fields and strong vibration.
- High resolution and accuracy: Magnetic encoders can achieve high resolution and precision for applications with stringent measurement requirements.
- Simple installation: Magnetic encoders have a relatively simple mechanical structure and do not require complex optical alignment.
- Wide temperature range: Magnetic encoders typically operate reliably across a wide temperature range, making them suitable for environments with large temperature variations.
- Corrosion and contamination resistance: The magnetic drum and pole structure can operate stably in harsh environments and offers good resistance to corrosion and contamination.
Characteristics and Advantages of Optical Encoders
- Compact size: Code disks for optical encoders can be made in small sizes, suitable for space-constrained applications.
- Lower cost: The structural simplicity of some optical encoders can lead to lower manufacturing cost.
- Proven reliability: Traditional optical encoders have a long track record of reliable operation in many applications.
- Unaffected by magnetic fields: Optical encoders are immune to external magnetic field interference.
- High-speed capability: Optical encoders can be suitable for high-speed motion control where complex arithmetic processing is not required.
Selection Guidance
Both magnetic and optical encoders are common sensors for rotation and displacement. Magnetic encoders offer strong interference immunity, high accuracy, wide temperature range, and resistance to contamination, making them suitable where precision and stability are critical. Optical encoders offer compact size, lower cost, and established reliability, making them suitable where cost and space are primary concerns. Select an encoder based on the specific requirements of the application to ensure the chosen device meets operational needs.