
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
.
The software 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 29
Joystick view
4.4
Rotation view
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 = arccosBz
r
Theta = arctanBy
Bx
Below the polar coordinates a virtual rotation knob can be found. It can be used with the rotary knob
attachment described in
. When the user turns the hardware knob, also the indicator 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 depending on the radius r of the magnetic field.
TLE493D-A2B6 MS2GO
3D Magnetic Sensor 2 Go evaluation kit
3D magnetic sensor evaluation
User Manual
22
1.2
2019-09-06