SBAA449B October   2020  – October 2021 TMAG5110 , TMAG5110-Q1 , TMAG5111 , TMAG5111-Q1

 

  1.   Trademarks
  2. 1Introduction
  3. 2Latch Response of the 2D Hall Effect
  4. 3Two Axis Sensor Consideration
    1. 3.1 Magnet Selection
      1. 3.1.1 Pole Count
      2. 3.1.2 Magnet Strength
    2. 3.2 Sensor Selection
      1. 3.2.1 Axes of Sensitivity
        1. 3.2.1.1 In-Plane Sensor Alignment
        2. 3.2.1.2 Out-Of Plane Sensor Alignment
      2. 3.2.2 Sensor Placement
        1. 3.2.2.1 On-Axis Magnetic Field
        2. 3.2.2.2 In-Plane Magnetic Field
        3. 3.2.2.3 Out-of-Plane Magnetic Field
      3. 3.2.3 Sensitivity Selection
  5. 4Optimizing for Accuracy
    1. 4.1 Optimizing Placement for Accuracy
    2. 4.2 Optimizing a Magnet for Accuracy
  6. 5Application Implementation
  7. 6Summary
  8. 7References
  9. 8Revision History

Introduction

Quadrature detection of rotating magnetic fields is normally achieved using a dipole magnet by spacing two Hall-effect magnetic sensors 90° apart adjacent to the magnet. When using multi-pole magnets, this spacing may be set to any integer + ½ number of the pole spacing interval. Typically these magnets are polarized radially outward from the center of the ring, but there are also options to orient the polarization axially (vertically in the z-direction).

GUID-20200915-CA0I-RWKK-JQZD-ZQLHF9CDLND9-low.gifFigure 1-1 Quadrature Placement for Two Sensors

Quadrature detection in rotary encoders allows the user to monitor speed and direction of rotation as well as incremental changes in angle. Multi-pole magnets improve resolution of these angle measurements. As the number of poles increases we can resolve smaller changes in angle.

There are a few challenges that must be overcome to develop a robust quadrature solution. Here the design requires the placement of each sensor such that each detects the exact same portion of the magnetic field as the magnet rotates. Placement and alignment errors, magnet tilt, and off axis magnet rotation may all contribute to measurement error. A detailed description of these factors is available in Using Hall Effect Position Sensors for Rotary Encoding Applications.

Additionally, variations in device sensitivity will impact overall quadrature accuracy. For instance, let us consider a device with a typical BOP point of 4 mT with ±3 mT of tolerance. We must suppose the worst case where one sensor might trigger at 1 mT and the other will trigger at 7 mT. With each sensor in plane to a 20-pole Neobond12M magnet and each perfectly placed at a distance of 3.25 mm, we monitor a magnetic flux density plot as shown in Figure 1-2. The magnet has an outer diameter of 25.5 mm and an inner diameter of 21.5 mm. Unless otherwise noted, we will use this magnet throughout this discussion.

The magnetic flux density observed by each sensor is identical, but is electrically out of phase by 90° due to placement. With 20-pole magnet, each pole pair occupies 36° and will define one full period at the input. Therefore, 90° electrical phase separation is equivalent to 9° of mechanical rotation. The field component in the direction radially outward from the edge of the magnet reaches a peak amplitude of just over 8 mT, which is sufficient to always tigger both devices. If we consider the unlikely scenario of the worst-case device sensitivities, there is a possibility for a maximum 4.9° of mechanical error due to sensitivity mismatch. This error results from the mismatch between the expected phase offset and the observed phase produced when the extreme BOP thresholds occur in the same system.

GUID-20201006-CA0I-ZN7H-13W0-6BFWQ12XZT7Q-low.gifFigure 1-2 Two-Sensor Quadrature
These errors are of significant concern when trying to resolve precise angles of rotation. During continuous rotation, small quadrature errors for speed calculations may average out over time, but detecting distinct pole transitions for absolute position requires finer precision.

Using a 2D sensor such as TMAG5110 or TMAG5111 can help simplify the design and reduce build constraints. Placing both sensors internal to a single package immediately helps reduce potential alignment offsets. Additionally, the accuracy of TMAG5110 sensor is also improved. TMAG5110 combines two sensors oriented orthogonally to each other into a single package with an operating point symmetry of 1.5 mT.

We should now consider both the field directed in the z-direction and the field directed tangential (θ) to the face of the magnet.

GUID-20210107-CA0I-GDT9-QQH2-XG08TSL2XPLX-low.gifFigure 1-3 B-Field Components

In Figure 1-3, the 2D sensor is in the same relative position as before. We can see that the Z-component at this location is zero, so this requires a device sensitive to XY field components (Br and Bθ). With TMAG5110 or TMAG5111 , a through-hole package type is not required to achieve this alignment as XY, ZY, and ZX options are all available in the surface mount packaging.

Here, the tangential component (Bθ) has nearly the same amplitude as the radial component (Br). There is a slight variation in amplitude which will be additive to the error resulting from variation in device sensitivity. A 9° phase difference is expected between the two fields for this magnet. By adding the maximum BOP error between sensors, the resulting error is about 1.35°. This is a significant improvement on the previous scenario.

While this improvement is good, it could be improved further by carefully considering the nature of the magnetic field of a magnet and how it relates to our sensor placement.