SBAU380B June 2021 – December 2024 TMAG5170 , TMAG5170 , TMAG5170-Q1 , TMAG5170-Q1 , TMAG5173-Q1 , TMAG5173-Q1 , TMAG5273 , TMAG5273
This document serves to accompany the design files for the JOYSTICK-MAG-ACC attachment for the magnetic sensing evaluation kits (EVMs) that interface with the TI-SCB such as the TMAG5170EVM. In addition to this guide, the design files are provided as an example and may be used in a 3D printer to generate a demonstration of a simple joystick function using a three-dimensional Hall effect sensor.
All trademarks are the property of their respective owners.
This JOYSTICK-MAG-ACC attachment uses a 3/8" (9.5 mm) spherical magnet as both a magnetic field source and mechanical bearing. The magnet clips into the base where it may pivot above a three-dimensional Hall effect sensor. This motion allows the magnet to provide the necessary magnetic field input to the sensor to detect both angle and magnitude of tilt.
For correct function, it is important to follow this step-by-step guide to ensure proper alignment of the magnet polarization.
The result of ideal magnet alignment produces a field vector at the sensor location entirely in the Z direction. Depending on the tilt of the magnet, it is possible to calculate both the angle and magnitude of the X and Y components to determine the overall magnitude and direction of the thumb toggle tilt.
More details related to this operation can be found in Measuring 3D Motion With Absolute Position Sensors.