Infineon's 3D Hall-effect sensor allows 3-dimensional contactless position detection using an ultra low power integrated circuit. This tutorial will use their standard development kit to create a joystick for use in your projects.
The TLV493D is a 6-pin 3.3V I²C magnetic field and temperature sensor. The 3D Magnetic Sensor 2GO Development Kit contains the TLV493D (magnetic field sensor), the XMC1100 microcontroller ( datasheet ), the XMC4200 microcontroller ( datasheet ), and a micro USB port.
To follow along with this tutorial, you will need to purchase the 3D Magnetic Sensor 2GO Development Kit and the Magnetic Joystick. If you wish to interface with Arduino, you only need to purchase the TLV493D, but I recommend against this approach because it is difficult to work with the sensor's extremely small package.
Item Purchase References 3D Magnetic Sensor TLV493D $2 Datasheet | Manual | Brief TLV493D Development Kit $28 Datasheet | Manual Magnetic Joystick $22 none Arduino Uno R3 (or compatible) $15 Reference 4 position Header (0.100") $1 Datasheet Breadboard Jumper Wires $3 Datasheet Bi-Directional
Logic Level Converter $3 Datasheet Getting Started with Demonstration Software
Infineon provides a graphical user interface for its sensors. Go to their download page and install the GUI for 3D Magnetic Sensor . It installs programs in the folders "3D Magnetic 2 GO" and "Segger."
Use a micro-USB cable to connect the evaluation board to your PC
Open "3D Magnetic 2 GO"
Underneath the Programmer box, select the XMC2Go on COM5 (adjust the COM port as necessary)
Click the icon beneath and to the left of the Programmer box to connect—a drop down menu will appear
Click to select "TLV493D"—a Configuration drop down menu will appear
Click to select "Fast Mode"
Select either "Graph View" or "Joystick View"
Joystick view shows a virtual red joystick that moves as you move the joystick
Graph View shows a streaming graph of each cartesian axis value along with downloadable data
The Hall Effect and Hall-Effect Sensors
TheHall Effectdescribes a potential difference created by charges that separate to opposite sides of a conductor in the presence of a magnetic field. A visualization of the Hall Effect. Video courtesy of FraunhoferIIS via Wikimedia .
The TLV493D sensor is able to detect the magnetic field intensity in three orthogonal directions. The evaluation kit makes use of the Hall effect in the TLV493D and the calibration data from the magnet included in the joystick to determine the orientation of the joystick.