26 May 2009

# Attractive technology

## Josef Janisch, senior product marketing manager, austriamicrosystems looks at enhancing the resolution of robust magnetic motion sensors

There are a number of integrated devices enabling linear motion sensing on the market today, supporting applications such as X-Y tooling tables, pneumatic pistons, sliding doors and zooming lenses.

Three technologies are commonly used in these applications, each with its advantages and disadvantages. Solutions that use resistive strips (potentiometers) are simple and inexpensive, but rely on mechanical contacts and are subject to wear and tear. Contactless optical solutions overcome these limitations, but their optical path can be affected by dirt, moisture and other contaminants.

A basic magnetic sensor overcomes the effect of both contaminants and physical degradation, but its precision is limited by the resolution – at best 0.5mm – of the magnetic pole strips which they sense. An interpolated solution, however, means this robust technology can deliver high resolution outputs. This technology is suitable for applications that require high reliability and can measure motion in increments as small as 15µm.

It is relatively simple to build a contactless linear motion sensor using Hall switches aligned with a multipole magnetic strip (see __figure 1__.) As the magnetic strip passes the Hall sensors, they switch in response to the changing magnetic field, producing a square wave output that indicates the number of magnetic poles that have passed. If the width of the magnetic poles is known, this square wave indicates the distance the magnetic strip has been displaced.

To determine the direction of motion, a second Hall switch can be placed half a pole length from the first so that it produces the same output signal but phase shifted by 90° electrically. This phase shift can be used to determine the direction of movement by evaluating which signal has a rising edge while the other signal is low – commonly known as a quadrature signal.

In __figure 1__, a movement of the magnetic strip from left to right would generate a rising edge on signal A, while signal B is low. Moving the strip from right to left would generate a rising edge on signal B while signal A is low. Looking at each quadrature signal (A and B) separately, the achievable resolution is one pulse per cycle, or one pulse per pole pair on the magnetic strip. This is referred to as a 1x quadrature signal. By applying an XOR function (A=B=0, A<>B = 1) to the combination of signals A and B, the number of pulses per cycle can be doubled, which is known as 2x decoding. A further increase of resolution can be achieved by generating a pulse from both rising and falling edges of each signal, which produces four pulses per cycle and is known as 4x decoding.

Although 2x and 4x decoding can be used to produce more pulses per pole pair, resolution is still limited by the length of these pole pairs – in practice approximately 0.5mm.

Overcoming the limitation in resolution imposed by the physical nature of magnetic pole strips requires the use of an interpolation technique. This technique benefits from the application of advanced analogue engineering techniques, whereas the basic magnetic sensor described above is limited by the digital nature of its output.

An interpolated magnetic sensor uses linear Hall sensors instead of Hall switches. Linear Hall sensors provide an analogue output proportional to the strength of the magnetic field perpendicular to the Hall sensor. Sliding a multipole magnetic strip over a linear Hall sensor generates a sinusoidal signal at the output of the sensor, as opposed to the square wave generated by a Hall switch.

By placing four Hall sensors exactly half a pole length apart, four sinusoidal signals are generated as the magnetic strip slides over the sensors. Each signal is phase shifted by 90° from its neighbouring sensor, as shown in __figure 2__. In mathematical terms, the four signals generated (H1, H2, H3 and H4) represent sine, cosine, inverted sine and inverted cosine.

Combining sine with inverted sine, and cosine with inverted cosine, provides another sine and cosine signal of double amplitude. This combination requires one input signal to be inverted, which therefore inverts interference from external magnetic fields. Any common mode interference is therefore cancelled out when sine and inverted sine are combined, and when cosine and inverted cosine are combined. This prevents extraneous magnetic fields in the vicinity of the sensor from degrading its output.

The two resulting signals can then be used as inputs for a signal processor (consisting of an a/d converter and a dsp), which can convert sine and cosine signals to a high resolution digital angle and magnitude output.

**Interpolation in practice**

A major advantage of using Hall sensors with interpolators is that they can be combined on a single silicon chip using standard cmos processing methods. Perhaps the most important feature of such devices is their ability to digitise and process at very high resolution the precise analogue output from Hall sensors.

Devices in austriamicrosystems' family of linear and rotary magnetic encoders use a CORDIC (coordinate to rotation digital computer) to achieve high performance processing of the position signal. First, the differential sine and cosine signals are digitised by high resolution a/d converters. The CORDIC converts two dimensional coordinates from one format to another. The input format is a rectangular coordinate system in which sine and cosine represent the X and Y axis respectively. The output format is a polar coordinate system with phase and magnitude outputs.

Using the sine and cosine inputs from the Hall sensors as shown in figure 2, the output phase information produced by the CORDIC represents a proportion of one pole pair length with a value of between 0 and 360°. Depending on the resolution of the CORDIC, one 360° phase can be broken into multiple steps. The number of steps CORDIC can resolve is called the interpolation factor. Since one phase corresponds to one pole pair length, breaking the phase into multiple steps generates high resolution motion detection.

As an example, the interpolation factor shown in figure 2 is 48 steps within one pole pair. In practice, much higher interpolation factors can be achieved. For instance, the AS5306 from austriamicrosystems achieves an interpolation factor of 160 steps per pole pair. Based on 40 pulses per pole pair, with a pole length of 1.2mm, this device offers a resolution of 15µm:

resolution = pole pair length/interpolation factor

= 2.4mm/160 = 15µm

**Conclusion**

While the interpolation technique described above is complex, its implementation – such as in the AS5036 – integrates the analogue electronics and signal processing, giving the system designer simple digital outputs which can be interfaced directly to a microcontroller. As a result, the design engineer can now use a robust, contactless motion sensor which is immune to dirt and other contaminants, and which achieves very high resolutions.

**Author**

Josef Janisch, senior product marketing manager, austriamicrosystems

## Supporting Information

Downloads

18459\p17-18.pdf

Websites

http://www.austriamicrosystems.com

Companies

Austriamicrosystems

This material is protected by Findlay Media copyright

See Terms
and Conditions.

One-off usage is permitted but bulk copying is not.

For multiple copies contact the
sales team.

# Do you have any comments about this article?

# Add your comments

Your comments/feedback may be edited prior to publishing. Not all entries will be
published.

Please view our
Terms and Conditions before leaving a comment.

# Related Articles

## MCXO delivers ±50ppb stabilityUnveiled for the first time at Embedded World, IQD's new IQMT-100 series MCXO ... |

## £6m for cooler tech start upIceotope, the UK start up specialising in liquid-cooled server technology, has ... |

## New debugger tool from UndoCambridge-based start up Undo Software has announced version 4.0 of UndoDB, its ... |

## Models move into mainstreamThe general idea behind model based system engineering, or MBSE, is that it ... |

## The system architecture jigsawIs a system architecture created from the apocryphal clean sheet of paper any ... |

## Protecting embedded systemsAn embedded system can be attacked by injecting malware at some point. Once ... |

## Design-to-cost visibilityDesign decisions have an accumulative impact on the life cycle cost of a ... |

## On-chip debug logicThis whitepaper outlines Altera and ARM's latest innovations in on-chip debug ... |

## Next Generation System Design – Platforms ...This paper from Altium examines the unified design platform as a new ... |

## Universal clocks from ExarExar has extended its range of telecommunications timing products with a new ... |

## Miniature OCXO delivers ±5ppbAvailable in an industry standard package measuring just 14 x 9.0mm and with a ... |

## OCXO module with GPSIQD's new IQCM-100 GPS advanced OCXO module, designed for use in LTE and 4G ... |

## Control Theory Seminar pt.1The Control Theory Seminar is a one-day technical seminar covering the ... |

## Control Theory Seminar pt.2The Control Theory Seminar is a one-day technical seminar covering the ... |

## Control Theory Seminar pt. 3The Control Theory Seminar is a one day technical seminar covering the ... |

## The Heartbleed glitchLast week we were awakened to the news of a new software 'glitch' called ... |

## Do we need frequency accuracy?Precision crystal oscillators, typically high performance temperature ... |

## Design reuseIt's become a cliché in news or science reports. A water treatment plant ... |

## Colin Smithers, PlextekPlextek's group chairman Colin Smithers tells Graham Pitcher how it's time for ... |

## Trevor Cross, cto, e2vGraham Pitcher speaks to Trevor Cross about how the new Electronics, Sensors ... |

## Charles Blackwood, AnsoftCharles Blackwood, UK sales manager, Ansoft talks with Chris Shaw |