Hello,
I am using the TMAG5273x1 sensor in combination with a diametric ring magnet.
The positions I've tested are all off-axis.
The positions I've tested are:
- Off axis with radial and axial dustances such that Bx and By are equal in amplitude.
- In plane
However, I'm having trouble with getting consistent results, due to tolerances in my setup.
The significance of the error due to tolerances depends on the sensor placement position relative to the magnet.
According to "SBAA463 - Angle Measurement With Multi-Axis Linear Hall-Effect Sensors, chapter 3.1 sensor alignment"
The ideal sensor alignment for an in-plane setup is based on a 45° rotation, such that the radial and tangential magnet if field strength will be measured equally in amplitude by the sensor XY hall elements.
I'd like to try this out, but I'm curious about how angle calculation will be done in this configuration with the sensed magnetic fields having a phase shift, and thus introduce an angular error.
My question is:
How can I get accurate angle data with a 45° rotated in-plane sensor?
Currently I expect +- 1 degree accuracy (before mechanical tolerances) to be good enough for my application.
Follow up questions:
Can the TMAG5273x1 correct for the XY phase offset?
Do I need to correct this in my microcontroller?