4.3 Joystick view
The joystick view is a virtual representation of a real joystick with an attached magnet, mounted above the 3D
magnetic sensor.
It is intended to be used with the Joystick adapter available for the 3D Magnetic Sensor 2 Go kit. For order
details and information about the used magnet refer to section Magnet heads.
The soware measures the magnetic field in all three dimensions and calculates the angles necessary to
determine the joystick position. Further information is given in the application note "Infineon 3D Magnetic
Sensor - How to Make a Magnetic Design for Joystick" which can be found on the Infineon home page.
Figure 27 Joystick view
4.4 Polar coordinates
In this view the calculated spherical coordinates of the magnetic field are displayed. Additionally it includes a
graphical presentation of the 3D Magnetic Sensor 2 Go rotary knob attachment .
The polar coordinates consist of the radius r as well as the angles Phi and Theta. They are calculated out of the
measured three dimensional magnetic field with following equations:
r =
Bx
2
+ By
2
+ Bz
2
Phi = arccos
Bz
r
Theta = arctan
By
Bx
Below the polar coordinates a virtual rotation knob can be found. It can be used with the rotary knob
attachment described in Magnet heads. When the user turns the hardware knob, also the knob in the GUI turns.
This is achieved by measuring the magnetic field and calculating the angle between Bx and By as described
above. Also a push functionality is implemented. When the user pushes the knob, the color of the direction
stripe turns from white to green. This is based on the magnitude of the magnetic field.
3D Magnetic Sensor 2 Go - TLE493D-A2B6
Low Power 3D Hall Sensor with I²C Interface
3D magnetic sensor evaluation
User Manual 21 1.0
2018-05-16
Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.Downloaded from Arrow.com.