Arduino Getting Started

Overview

This getting started guide helps you to properly connect a XENSIV™ TLx5012B with the right platform and teaches you how to install the required software to use it.

Required Hardware

Microcontroller

If you have one of the TLE5012B E1xxx 2GO Kits than no further hardware is needed as this includes already a XMC1100 2Go board. Please select this board in the Arduino IDE.

../../_images/TLx5012B-Exxxx_Board_top-persp.jpg

If you have a breakout board or bulk chip, you need an Arduino compatible board with at least one SPI channel.

../../_images/XMC4700_Relax_Kit.jpg
  • or

../../_images/arduino-marked.png

Required Software

  • The Arduino IDE, which can be downloaded here

  • This library installed in the Arduino IDE, the instructions can be found here

  • When using an Arduino compatible XMC board, please find installation instructions here.

Tutorial

Software Installation

  1. Install the Arduino IDE. If you are new to Arduino, please download the program and install it first.

  2. Include the XMC boards in the IDE (if a XMC is used). The official Arduino boards are already available in the Arduino IDE, but other third party boards as the Infineon XMC MCU based ones need to be explicitly included. Follow the instructions in the link to add the XMC board family to the Arduino IDE.

  3. Install the library. In the Arduino IDE, go to the menu Sketch -> Include library -> Library Manager. Type xensiv tlx5012b and install the library.

Ready To Go!

Now you can upload the provided example code to your Arduino compatible board. For this, navigate in your Arduino IDE to File -> Examples -> XENSIV TLx5012B Angle Sensor. Don’t forget that you need a magnetic field to get a valid angle value. You can use a magnet or a magnetic field generator or of course a motor for this purpose.

For a specific description and overview of all examples please refer to Arduino examples.