SBAA632 April   2024 TMAG3001 , TMAG5170 , TMAG5170-Q1 , TMAG5170D-Q1 , TMAG5173-Q1 , TMAG5273

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2Implementation and Testing
    1. 2.1 Build Configuration
    2. 2.2 Data Collection
    3. 2.3 Speed Calculation Methods
      1. 2.3.1 Continuous Sampling
      2. 2.3.2 Running Average
      3. 2.3.3 Zero-Crossing
      4. 2.3.4 Periodic Sampling
  6. 3Summary
  7. 4References

Zero-Crossing

In systems that need less resolution, the control loop can be adjusted to look for zero-crossings. Even in cases where there is significant non-linearity, the zero crossing point can occur repeatedly at the same relative point in each gear tooth. Tracking the time between each zero-crossing event can eliminate any concerns with angle linearity that result from the shape of the metal target, but can not accrue extra memory requirements in the MCU.

However, the drawback here is that one full period of travel is required to calculate speed. In the example of a 32 tooth bicycle sprocket, this is 11.25 degrees of rotation. While this is an improvement over the 30deg rotation needed by the 12 magnet degree, the feedback in not as immediate.