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

Abstract

This application note proposes a two-level magnetic flux change and latch detection method in Z-axis using 3D linear Hall-effect sensors to decrease possible X or Y offset during the button press action of a joystick . By using hardware interrupt and software slew rate or absolute value detection method, a fast response to the Z-axis pressing action can be achieved. Simultaneously, by latching the last X, Y conversion numbers, this method can significantly reduce the X and Y offsets. The average error in the axis most affected by mechanical errors can be reduced from 265% to 8.8%.