I2C Wiring

Wiring the TLV493D is easy, since it only requires power and two wires for an I2C connection. Additionally, the STEMMA QT connectors give you additional solderless options for wiring:

  •  Connect board VCC (red wire) to Arduino 5V if you are running a 5V board Arduino (Uno, etc.). If your board is 3V, connect to that instead.
  • Connect board GND (black wire) to Arduino GND
  • Connect board SCL (yellow wire) to Arduino SCL
  • Connect board SDA (blue wire) to Arduino SDA

Arduino Library Installation

Fortunately Infineon have written a library for you for the TLV493D which you can install using the Arduino IDE's Library Manager:

Click the Manage Libraries ... menu item, search for Infineon TLV493, and select theTLV493D-A1B6 library:

Cartesian Example

Infineon has provided a few examples, but the simplest example is the "Cartesian" example which reads the X, Y, and Z axis measurements in milli-teslas (mT).

Open the example by navigating to the appropriate spot in the examples submenu:

Once you compile and upload the example to your Arduino compatible board of choice, open the serial monitor, verify that your baud rate setting matches the example, and you should see measurements for the three axes being printed. If you wave a magnet near the sensor you can see the values changing!

This guide was first published on Sep 11, 2019. It was last updated on Sep 11, 2019.

This page (Arduino) was last updated on Sep 03, 2019.

Text editor powered by tinymce.