SLYU064A June   2023  – December 2023 TMAG3001 , TMAG5170 , TMAG5170-Q1 , TMAG5170D-Q1 , TMAG5173-Q1 , TMAG5253 , TMAG5273

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2Joystick Design
    1. 2.1 Establishing Form Factor
      1. 2.1.1 Choosing Mechanical Implementation
      2. 2.1.2 Choosing Magnetic Implementation
    2. 2.2 Magnet Sensor Placement
    3. 2.3 Design Calculations
    4. 2.4 Post Processing
    5. 2.5 Prototyping and Bench Testing
    6. 2.6 Error Sources
      1. 2.6.1 Mechanical Hysteresis
      2. 2.6.2 Nearby Material Influence
      3. 2.6.3 Fulcrum Slippage
      4. 2.6.4 Offset
  6. 3Lever Design
    1. 3.1 Establishing a Form Factor
      1. 3.1.1 Choosing Mechanical Implementation
    2. 3.2 Magnet Sensor Placement
    3. 3.3 Design Calculations
    4. 3.4 Prototyping and Bench Testing
    5. 3.5 Error Sources
  7. 4Summary
  8. 5References
  9. 6Revision History

Magnet Sensor Placement

The end goal is to map the device output to a distinct mechanical position. As our magnet contained in the moving body is not confined to a single straight path, but rather a rotation, yawing, tilting, or pitching within one or more planes, at least 2 Hall-Elements are needed to avoid spatial aliasing as indicated in Figure 2-3. Figure 2-4 illustrates that with data from perpendicular sensing elements, both a unique joystick pitch value and unique rotation value can be extracted from 2 sensors that by themselves can not distinguish joystick position.

GUID-20230512-SS0I-2JJT-PWWD-PF9BBCXWVJXK-low.svgFigure 2-3 Aliasing
GUID-20230512-SS0I-GCJW-MNDB-BGQKDQJPP8S3-low.svgFigure 2-4 2 Sensor Pitch and Rotation Extraction

Figure 2-5 shows a single device design that utilizes a 3D sensor like the TMAG5273, which has hall elements sensing along the x and y axis, or the TMAG3001 for space constrained applications. For this design, strive to place the device such that you obtain an output similar to Figure 2-6. As the joystick shaft is moved in a circular path for a given pitch, the x-axis and y-axis fields exhibit a sinusoidal behavior relative to the sensor.

GUID-20230216-SS0I-XWFZ-M31K-TR1Z5BZNK0ZP-low.svgFigure 2-5 1 Device Design
GUID-20230512-SS0I-VDX3-TT3M-8ZD2WV6CFZ1S-low.svgFigure 2-6 1 Device Example Plots

Figure 2-7 shows a two device design that utilizes 2 Hall-Elements sensing along the z-axis with output behavior as indicated in Figure 2-8. For the two device design, an analog output device can be used like the TMAG5253 or if there is not an available ADC, a digital design like the TMAG5273 or TMAG3001 can be used.

GUID-20230216-SS0I-HVSD-GWHN-PCBXFJG8JKK6-low.svgFigure 2-7 2 Device Design
GUID-20230512-SS0I-SLQG-VRBF-GTR0DZ23NT97-low.svgFigure 2-8 2 Sensor Design Goal