SBAA463A january   2021  – april 2023 TMAG5170 , TMAG5170-Q1 , TMAG5170D-Q1 , TMAG5173-Q1 , TMAG5273

 

  1.   Abstract
  2.   Trademarks
  3. 1Introduction
    1. 1.1 Angle Measurement With One-Dimensional Sensors
    2. 1.2 Challenges of Angular Measurements
  4. 2Benefit of Multi-Axis Sensors
    1. 2.1 Simplified Mechanical Placement
    2. 2.2 Sensitivity Matching
    3. 2.3 CORDIC Angle Estimations
    4. 2.4 Tamper and Stray Field Detection
  5. 3Angular Measurement Considerations
    1. 3.1 Sensor Alignment
    2. 3.2 Sensor Calibration
    3. 3.3 Input Referred Noise
    4. 3.4 Impact of Sample Rate
  6. 4Practical Application
    1. 4.1 Push-Button Knob
      1. 4.1.1 Evaluating Design Constraints
      2. 4.1.2 Magnet Selection
      3. 4.1.3 Prototyping and Verification
    2. 4.2 Off-Axis Design
      1. 4.2.1 Sensitivity Gain Correction
      2. 4.2.2 Accuracy Verification
  7. 5Summary
  8. 6References
  9. 7Revision History

Angle Measurement With One-Dimensional Sensors

A traditional approach to angular measurements using rotating magnets utilizes two linear Hall-effect sensors which are placed 90º apart in plane with a diametric cylinder magnet.

GUID-20201118-CA0I-VH10-BZ2V-JPDVT9SGWWSS-low.gif Figure 1-1 Two-Sensor Angle Measurement

A standard Hall-effect sensor is only capable of detecting the component of the magnetic flux density, or B-Field, which is normal to the face of the device. With the configuration in Figure 1-1, each sensor is detecting only the portion of the B-Field which is directed radially outward from the center of the magnet along one axis. As the magnet is rotated, the resulting outputs produce matched sine and cosine waveforms with a 90º offset which correlates to the physical placement. We can observe that the peak magnetic flux density each sensor detects occurs when the pole of the magnet is perfectly aligned toward that sensor.

GUID-20201229-CA0I-FTVG-CCW5-8VNTMBLQLDSH-low.gif Figure 1-2 Two Sensor Input Signal

Given the trigonometric relationship of the outputs, the angle can be calculated by using the arctangent function. Specifically, the ATAN2 or ARCTAN2 function common in many math libraries is capable of accepting Cartesian (X,Y) inputs from all four quadrants and will calculate the associated angle.

This relationship provides a reliable method to determine the angle of rotating magnets. The Linear Hall Effect Sensor Angle Measurement Theory, Implementation, and Calibration Application Report is an additional resource that discusses this configuration in more detail.