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

Impact of Sample Rate

Another variable to consider when designing a system that employs a 3D sensor for angle calculations is the sample rate of the sensor. For example, consider Table 3-1 which applies to TMAG5170.

Table 3-1 Update Rate Settings
OPERATING MODE REGISTER SETTING UPDATE RATE COMMENT
SINGLE AXIS TWO AXIS THREE AXIS
X, Y, Z Axis CONV_AVG = 000b 22.2 ksps 14.3 ksps 10.5 ksps Fastest update rate
X, Y, Z Axis CONV_AVG = 001b 14.3 ksps 8.3 ksps 5.9 ksps
X, Y, Z Axis CONV_AVG = 010b 8.3 ksps 4.5 ksps 3.1 ksps
X, Y, Z Axis CONV_AVG = 011b 4.5 ksps 2.4 ksps 1.6 ksps
X, Y, Z Axis CONV_AVG = 100b 2.4 ksps 1.2 ksps 0.8 ksps
X, Y, Z Axis CONV_AVG = 101b 1.2 ksps 0.6 ksps 0.4 ksps Best SNR case

In the operating conditions presented in Table 3-1, the update rate for the various averaging modes is shown for one, two, or three axis operation.

In any system performing angle calculations on a moving target, the angular step between each measurement will be set by this sample rate. For instance, suppose TMAG5170 is sampling all three axes with the maximum averaging rate, or as we see in Table 3-1, 0.417 ksps. The time between each sample is about 2.4 milliseconds. If the magnet being sensed were rotating at 100 RPM, then the resulting angle change between each sample is 1.44 degrees. This will appear as a fixed offset in the measurement as well as define the minimum detectable change in angle.

Additionally, depending on the sample rate settings, there may be additional angle error. While operating in a pipelined fashion for the maximum sample rate, the typical conversion time for any TMAG5170 conversion is expected to be about 25 microseconds. If averaging 32 conversions, then the total sample time is about 800 microseconds. Over this time frame for the averaging of the first channel, the angle will have changed by 0.48 degrees. By the time the second channel conversion is complete, the angle will have increased by the same amount again for a total motion of about 1 degree. This offset in timing between the two samples will result in angle error. This again highlights the benefit of the pseudo-simultaneous sampling.

Care should be taken in systems where the magnet is rotating at high rates to account for these types of errors and select settings appropriately.