• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
  • Subscribe
  • Advertise

Sensor Tips

Sensor Product News, Tips, and learning resources for the Design Engineering Professional.

  • Motion Sensing
  • Vision systems
    • Smart cameras
    • Vision software
    • Lighting
    • Optics
  • Pressure
  • Speed
  • Temperature
  • Suppliers
  • Video
    • EE Videos
    • Teardown Videos
  • EE Learning Center
    • Design Guides
    • Tech Toolboxes

What are magnetic rotary encoders?

September 25, 2024 By Bill Schweber Leave a Comment

Part 1 of this FAQ looked at the optical rotary encoder, a low-cost, high-resolution, easy-to-use sensor for indicating incremental shaft position (although it can be “upgraded” to indicate absolute position as well).

Q: What is the basic principle of the magnetic encoder?
A: The magnetic encoder uses a rotating gear made of ferrous metal, and a magnetic pick-up has a permanent magnet and a sensing element (Figure 1 and Figure 2). As the gear (or ring) rotates, the teeth “disturb” the magnetic flux of the permanent magnet, which causes the flux field to grow and shrink. The changes in that field are sensed, and the sensing element generates a corresponding digital pulse signal output. To determine direction, the sensor is arranged to produce a quadrature signal pair as with optical encoders.

magnetic encoders
Figure 1: The magnetic encoder is based on sensing the passing of ferrous materials on the periphery of a gear or rotor, with the sensing done using a Hall-effect or magnetorestrictive device. (Image: Anaheim Automation)

 

magnetic encoders
Figure 2: The complete installation shows the placement of the key elements of the magnetic sensing set-up. (Image: Anaheim Automation)

Q: What is the construction and material of the sensing element?
A
: The two primary types used in encoders are Hall effect and magnetoresistive. Hall-effect sensors detect a change in voltage by magnetic deflection of electrons. Magnetoresistive sensors detect a change in resistance caused by a magnetic field. Hall-effect sensors generally cost less and are less precise than magnetic resistive sensors. This means that Hall-effect sensors, when used in an encoder, produce more output “jitter” or error in the signal caused by sensor variations. Also, the gear can be replaced by a rugged, rubberized ring with alternating ferrous and non-ferrous zones. (Figure 3).

magnetic encoders
Figure 3. Rings made of rubber-like material with alternating embedded magnetic/non-magnetic sections are available as one installation option for magnetic sensing. (Image source: RLS/Renishaw)

Q: What are the attributes of the magnetic approach compared to the optical approach?
A
: Magnetic encoders are less susceptible to errors or malfunction due to contamination because their sensors detect variations in magnetic fields embedded in the rotor; oil, dirt, and water do not affect these magnetic fields. They are also rugged as there is no glass disk (if that is what is used) to shatter. Finally, the magnetic approach uses a simpler bearing, so it is less likely to have bearing issues or failures. Magnetic sensors can operate at higher temperatures than optical encoders. Using magnetism as the element to produce a signal yields an assembly unaffected by dust, moisture, extreme temperatures, and shock.

Q: What are the resolution and cost of the magnetic approach compared to the optical approach?
A: The magnetic approach using gear teeth generally has a lower resolution, but using special rings with alternating sections results in a comparable resolution. As with any sensor-pickup system, resolution is a function of the sensor’s ability to unambiguously detect the desired target while not getting confused or misled by adjacent targets due to crosstalk, field overlap, or noise.

The magnetic approach is more expensive, so there is a relationship between cost and ruggedness. Many vendors offer both optical and magnetic encoders, so they can provide unbiased application support as to which would be a better solution in a given application.

Q: Are there alternatives to optical and magnetic encoders?
A
: Yes, some encoders use capacitive track-sensing principles similar to those used in digital calipers (this may seem strange, but it is true). These measure rotational movement using a custom ASIC to detect changes in the frequency of a signal modulated by capacitive reactance. Compared to the technology most commonly used in rotary encoders today, capacitive encoding holds some potential advantages over optical encoding.

Some transducers measure rotation while providing an all-analog, non-pulsed output. A resolver (and the somewhat similar synchro) uses a set of coils, with a primary one on the rotor and two secondary ones at right angles to each other on the stator. The rotor coil is then energized with a low-voltage (around 10 V) AC waveform (60 Hz or 400 Hz are common; frequencies of several kHz are also used). The relative phases of the induced signals on the secondary coils with respect to each other can be used to derive the absolute rotor angle. The resultant all-analog signal has very high resolution and accuracy.

The resolver is a very rugged transducer, as it consists solely of non-contact coils. It is used in harsh applications or when extreme long life is needed. However, it is relatively heavy and costly, and the excitation and decoding (demodulation) circuitry is more complicated. In many cases, the decoded analog output is digitized for further use.

References

  1. PC/104 and Small Form Factors, “Choosing a code wheel: A detailed look at how encoders work”
  2. CUI Inc., “The Advantages of Capacitive vs Optical Encoders”
  3. Craig, NYU Engineering, “Optical Encoders”

You may also like:


  • What are optical rotary encoders?

  • Intro to panel mount encoders

  • Safe compact encoders for autonomous vehicles

  • What are the types and uses of position sensors? 

  • Teardown: Inside an industrial absolute encoder

Filed Under: Encoder, Featured, Frequently Asked Question (FAQ), Magnetic Tagged With: encoders, FAQ

Reader Interactions

Leave a Reply

You must be logged in to post a comment.

Primary Sidebar

Featured Contributions

Automotive sensor requirements for software-defined vehicles: latency, resolution, and zonal architecture

High-current, low-impedance systems need advanced current sensing technology

A2L refrigerants drive thermal drift concerns in HVAC systems

Integrating MEMS technology into next-gen vehicle safety features

Fire prevention through the Internet

More Featured Contributions

EE TECH TOOLBOX

“ee
Tech Toolbox: Test & Measurement
We’ve gathered articles that include hands-on product tryouts and reviews. Indeed, every article in this issue uses an oscilloscope in one way or another so you might just call this “The Oscilloscope Tech Toolbox.”

EE LEARNING CENTER

EE Learning Center
“sensor
EXPAND YOUR KNOWLEDGE AND STAY CONNECTED
Get the latest info on technologies, tools and strategies for EE professionals.

RSS Current EDABoard.com discussions

RSS Current Electro-Tech-Online.com Discussions

  • EEPROM not being written or read on dsPIC30F2010
  • 12VDC ( 10 - 24 V ) to 0 to +/- 30VDC 1A dual tracking psu - for sale
  • What is involved to convert a small town to fiber optic?
  • volkswagen car stereo model rcd310
  • Dog fence help

EE ENGINEERING TRAINING DAYS

engineering
“bills

RSS Featured White Papers

  • 4D Imaging Radar: Sensor Supremacy For Sustained L2+ Vehicle Enablement
  • Amphenol RF solutions enable the RF & video signal chains in industrial robots
  • Implementing Position Sensors for Hazardous Areas & Safety

Footer

EE WORLD ONLINE NETWORK

  • 5G Technology World
  • EE World Online
  • Engineers Garage
  • Analog IC Tips
  • Battery Power Tips
  • Connector Tips
  • EDA Board Forums
  • Electro Tech Online Forums
  • EV Engineering
  • Microcontroller Tips
  • Power Electronic Tips
  • Test and Measurement Tips

SENSOR TIPS

  • Subscribe to our newsletter
  • Advertise with us
  • Contact us
  • About us

Copyright © 2025 · WTWH Media LLC and its licensors. All rights reserved.
The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media.

Privacy Policy