SLYA080 july   2023 TMAG5273

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Problem with Mechanical Knobs and Rotary Encoders
  5. 2Using 3D Hall Sensor for Angle Measurement
  6. 3On-Axis and Off-Axis Test
    1. 3.1 On-Axis Test
    2. 3.2 Off-Axis Test
  7. 4Push-Button Knob Function Test
  8. 5Summary
  9. 6References

On-Axis Test

Using the on-axis method, the magnet is placed directly above the sensor. As shown in Figure 3-2, the X and Y axes of the 3D Hall sensor are selected to determine the rotation angle of the magnet.

GUID-20230622-SS0I-561Z-DDJG-KSM5SNCDHG86-low.jpg Figure 3-2 3D Linear Hall-Effect Sensor On-Axis Test

The CORDIC engine of the TI 3D Hall sensors TMAG5273 and TMAG5170 calculates the angle seamlessly so the microcontroller can directly read the value of the register without processing the magnetic field data. Figure 3-3 shows the angle data and X and Y axes data in the actual test. Please note that the curve has a stepped shape due to manual turning of the knob.

GUID-20230622-SS0I-06T6-MWDD-PDXN3CV6RCJW-low.png Figure 3-3 Angle Data and XY Axes Data Output

When the magnet rotates, the X and Y axes of the magnetic field change in a sinusoidal mode. See Figure 3-4.

GUID-20230622-SS0I-QZZT-VST7-6G71HTFBXG7S-low.svg Figure 3-4 3D Linear Hall-Effect Sensor On-Axis Output