JAJU835 December 2021
Figure 3-6 shows the DRV5056 output voltage versus trigger displacement distance after calibration.
Table 3-3 shows the worst observed error in Figure 3-7. The post-calibration error is affected by noise, linearity error, and possible magnet positioning errors. To reduce the impact of linearity error, calibration was done using multiple points and lines. Additional averaging of the sample data can be done to reduce noise.
CONDITION | ABSOLUTE VALUE OF WORST OBSERVED ERROR |
---|---|
Simulated (1 line, 2-point) | 0.363% |
Calculated (1 line, 2-point) | 0.372% |
Simulated (1 line, 3-point) | 0.289% |
Simulated (2 line, 2-point) | 0.184% |
Simulated (4 line, 2-point) | 0.0789% |
From the results, the 1 line, 3-point calibration provides a reduced worst-observed error than the 1 line, 2-point calibration. Note that the utilized best-fit line algorithm works by minimizing the sum of the squared errors instead of minimizing the worst observed error. As a result, using more points for the best-fit line may not always result in a reduction of the worst observed error as it did in this case.
In addition, increasing the number of lines from 1 to 2 to 4 also reduces the worst observed error.