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

Prototyping and Verification

With the knob attachment mounted to the EVM, the GUI offers the option to capture and plot the outputs of each channel, or as an alternative, there is a visual interface which displays real time updates to the magnet angle.

GUID-4EF9B2FB-E982-4A04-8A7A-CFFD66D1E6F4-low.png Figure 4-3 TMAG5170 Rotate & Push GUI

This output format helps to emulate the end application feel, but cannot tell us exact measurement errors.

Conversely, we can capture the data from a large number of data samples and then use this to plot of X and Y input data against the output angle. With this approach, we can look for anomalous behavior that would be indicative of any non-linearity in the angular response of the device.

GUID-20201229-CA0I-1V6M-MLSB-7W6LTH6PPSSW-low.gif Figure 4-4 TMAG5170 Knob Attachment Measured Data

Notice here there are a few small irregularities, but over the course of a full rotation we see fairly smooth results that are very near to the pattern of the ideal input. This is primarily due to the handling of the knob impacting the sensor proximity and magnet tilt. There is also some offset which results with a detectable portion of the magnetic field in the Z-direction.

Also notice that the peak magnitude does not match the simulated value here. During the prototype build it was discovered that the spring used in the original knob design needed to be replaced, and that the replacement spring was somewhat ferromagnetic. Despite this interference, the end result is still capable of detecting a reasonably accurate angle for this use case. When designing any application, it is always recommended to consider the impact of external materials on the observed magnetic field.