SBAA539 March 2022 TMAG5170 , TMAG5170-Q1 , TMAG5173-Q1 , TMAG5273
Of initial important when designing for any angle measurement using magnetic inputs (Hall-effect, AMR, GMR, TMR) is the magnet used as an input source. Depending on the directional sensitivity of the sensor, it will be important to ensure that adequate field inputs are present for the sensor to operate normally.
Consider briefly TMAG5170 or TMAG5273. These devices are linear three dimensional (3D) Hall-effect sensors. TMAG5170 uses an SPI interface, while TMAG5273 communicates using I2C. With sensitivity in all three axes the sensor placement is flexible for either sensor.