SBAA539 March   2022 TMAG5170 , TMAG5170-Q1 , TMAG5173-Q1 , TMAG5273

 

  1.   Trademarks
  2. 1Introduction
  3. 2Magnet Selection
    1. 2.1 Placement Considerations
    2. 2.2 Magnet Properties
  4. 3Measurement Non-Linearity
  5. 4Mechanical Error Sources
  6. 5Signal Chain Errors
  7. 6Calibration Methods

Signal Chain Errors

In addition to the various mechanical errors, signal chain errors may exist that further complicate angle measurements. These factors may play a direct role in the quality of the measurement how the data is used. For linear Hall-effect sensors such as TMAG5170 and TMAG5273 the following parameters should be understood when designing for angle measurements.

Sensitivity Mismatch

As discussed earlier, amplitude mismatch can result in output angle non-linearity. Even in cases where the sensor is perfectly located with an ideal input, it is possible that the sensitivity gain error for each channel may vary somewhat. Small errors between each channel should be corrected using the same method to correct for input amplitude mismatch. That is, a scalar sensitivity gain adjustment should be applied to normalize the two output channels to the same amplitude.

Offset

Input referred offset will present itself as a fixed DC offset to the device output. It will directly create angle error as described in Offset. It is typical to perform an initial sweep with any rotating magnet to correct for this error. Using peak measured values, both sensitivity gain error and input referred offset can be minimized for any system.

Noise

Another key parameter that may impact the angle accuracy is the noise. Considering an RMS input referred noise parameter, this will represent a 1 sigma value. When considering any measurement system, the signal to noise ratio (SNR) will impact the best case resolution possible. When plotting SNR vs peak angle error, the final accuracy will generally follow the trend shown in Figure 5-1

Figure 5-1 Angle Error Resulting from Input Referred Noise

Unless the SNR meets or exceeds the value in this plot, the resulting error in angle calculation may create uncertainty which cannot be corrected for through calibration.

To combat limitations of SNR, a few options are available. Firstly, it is possible to use sample averaging to reduce the input noise by a factor of the square root of the number of samples. TMAG5170 and TMAG5273 offer up to 32x averaging which may be used to achieve a dramatic reduction in noise. This comes with the drawback of an increased sample time, which may cause undesirable delay that can limit maximum sample rates.

The other option would be to adjust the magnet strength or sensor proximity. Each of these options will increase the available magnetic field and improve the SNR of the measurement.

Quantization Error

Quantization error occurs as a result of converting the analog Hall-voltage to a digital using an ADC. The number of available bits in the ADC will set a minimum measurement resolution available to the microcontroller. For any given sample the typical maximum error will be less than or equal to 1/2 LSB. For demonstration purposes, the angle error using a full scale input into an 8-bit ADC is compared to the angle quantization error of a 12-bit ADC in Figure 5-2 and Figure 5-3.

Figure 5-2 8-bit Quantization Error
Figure 5-3 12-bit Quantization Error

TMAG5170 has an integrated 12-bit ADC and is able to return averaged results using a 16-bit output word length.

Propagation Delay

For any magnetic sensing application to determine position of a moving target, it is important to consider propagation delay of the sensor. The feedback to the microcontroller will be received by the microcontroller after some time and motion will continue uninterrupted in that time. Because of this, the measured angle of the rotating magnet will have some fixed phase delay that varies based on the conversion time of the sensor.

When the speed of the motor is known, this information may be used along with the sample rate of the sensor to calculate the change of position of the magnet during the conversion.

TMAG5170 and TAMG5273 allows for a customizable sampling pattern as well as averaging. This creates a variable propagation delay. Complete timing information is located in the data sheet. As an example the expected delay for various averaging modes using the XYX sample pattern are shown in Figure 5-4

Figure 5-4 TMAG5170 Angle Phase Error vs. Rotation Speed

A critical step in establishing a quality measurement will be to use a deterministic measurement scheme. This can be accomplished using the trigger modes of TMAG5170 and TMAG5273. Triggering the conversion to start at a known time will allow for the most accurate association of the output result to the actual magnet position.

Temperature Drift

As was discussed in Temperature Drift the magnetic field of any magnet is subject to vary with temperature. This can create certain challenges for measurement. TMAG5170 and TMAG5273 both offer programmable temperature compensation to allow the sensor to adjust to these changes in the magnetic field strength. Settings of 0.12%/C, 0.2%/c, and 0 are available to help accommodate most magnet configurations.

Additional Signal Chain Errors

When considering other magnetic solutions, it is additionally important to evaluate the impact of other error sources such as magnetic hysteresis and cross-axis sensitivity, which do not significantly affect TMAG5170 or TMAG5273. These factors tend to be more common in devices utilizing integrated magnetic concentrators or magneto-resistive sensors such as GMR or TMR.

Magnetic hysteresis is the result of having applied a magnetic field to a ferromagnetic material. Similar to the behavior shown in Figure 2-3, there will be some residual magnetization of the concentrator depending on the prior state of the magnetic field from the permanent magnet. As a result, angle measurements depend on the previous position of the magnet, and there will be differences to the observed input with a clockwise rotation of the magnet vs a counter clockwise rotation.

Cross-axis sensitivity is the result of some portion of one magnetic field channel being coupled into the measurement for another axis. This will produce some underlying non-linearity that is dependent on the state of the other channel. Removing this error from measurement requires a complex calibration routine.