For accurate angle measurement, the center of the magnet is aligned to the center of the sensor with acceptable tolerances. Follow these steps to ensure that the sensor is calibrated for best accuracy:
- Reference angle calibration - Set the reference angle based on the magnet alignment to the sensor. This error can be saved in the microcontroller for runtime absolute position calculation. This error is also known as angle offset in a system.
- Electrical offset calibration - See Calibration of Sensor Errors for the offset calibration procedure. If the sensor cannot be rotated across the full range, then the electrical offsets cannot be calibrated.
- Amplitude mismatch calibration - See Calibration of Sensor Errors for the amplitude mismatch calibration procedure. If the sensor cannot be rotated across the full range, then the amplitude mismatch cannot be calibrated.