SLYA080 july 2023 TMAG5273
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.
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.
When the magnet rotates, the X and Y axes of the magnetic field change in a sinusoidal mode. See Figure 3-4.