SLYA092 June   2025 TMAG3001

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2Z-Axis Pressing Offset Issue in 3D Linear Hall Sensor
    1. 2.1 Root Cause of X, Y Offsets in Z-axis Pressing Action
  6. 3The Z-Axis Pressing Detection Method
    1. 3.1 General Introduction of Proposed Method
    2. 3.2 Software Slew Rate Detection
    3. 3.3 Hardware Threshold Detection and Interrupt
    4. 3.4 Latching Method
      1. 3.4.1 Implementation of Two-Level Detection Method
    5. 3.5 Test Result
  7. 4Summary
  8. 5References

Software Slew Rate Detection

At the beginning of pressing action, the Hall-effect sensor continuously monitors the magnetic field and sends this to the MCU. Once the MCU detects that the magnetic flux difference between two or more samples is larger than the pre-set value, the MCU can set a flag to indicates that the Z-axis has already been pressed. This first level of pressing detection is achieved by the software.

The threshold of the software can be manually adjusted by the user to fit different systems. For example, different magnets in the joystick and different distances between the joystick and 3D Hall sensor can cause different amplitude responses in the 3D linear Hall sensor. The setting value can be defined by simulation or experimental results. Figure 3-2 shows the simplified software detection function.

 Software Detection MethodFigure 3-2 Software Detection Method