Skip to content
This library provides an interface for Infineon's current sensor TLI4970 with hall technology.
Branch: master
Clone or download
Latest commit 084091a Mar 25, 2019


Build Status

Library of Infineon's TLI4970 current sensor for Arduino.


The TLI4970 is a high-precision current sensor based on Infineon's proven Hall technology. The coreless concept significantly reduces footprint compared with existing solutions. TLI4970 is an easy-to-use, fully digital solution that does not require external calibration or additional parts such as A/D converters, 0 pAmps or reference voltage. It thus significantly reduces overall implementation efforts as well as PCB space and cost.

Key Features and Benefits

  • AC & DC measurement range up to ±50A
  • Highly accurate over temperature range and lifetime (max. 1.0% (0 h),
  • 1.6% (over lifetime) of indicated value)
  • Low offset error (max. 25mA)
  • High magnetic stray field suppression
  • Fast overcurrent detection with configurable threshold
  • Galvanic isolation up to 2.5kV max. rated isolation voltage (UL1577)
  • 16 bit digital SPI output (13 bit current value)
  • Small 7 mm x 7 mm SMD package
  • GUI for free download as well as integration in Arduino IDE with this repository

Target Applications

  • Photovoltaic and general purpose inverters
  • Power supplies (SMPS)
  • Battery chargers
  • Lighting applications
  • Electrical drives


Please find the datasheet of the TLI4970 variant here. Please ensure that you have the TLI4970-D050T4 variant of the sensor as the library has been designed for this one.


Integration of Library


Important Note This library uses the One Wire library from PaulStoffregen. Please install the One Wire library before you install or use the library for the TLI4970-D050T4 Current Sensor. You can find the One Wire library in the Library Manager in the Arduino IDE Sketch > Include Library > Manage Libraries... or directly in the official repository:

One Wire Library Repository

Installation of the Library

Please download this repository from GitHub by clicking on the following field in the latest release of this repository or directly here:

Download Library

To install the TLI4970 current sensor library in the Arduino IDE, please go now to Sketch > Include Library > Add .ZIP Library... in the Arduino IDE and navigate to the downloaded .ZIP file of this repository. The library will be installed in your Arduino sketch folder in libraries and you can select as well as include this one to your project under Sketch > Include Library > TLI4970.

Install Library


Please see the example sketches in the /examples directory in this library to learn more about the usage of the library.

Currently, there exist two separate evaluation boards:

Usage with TLI4970050 2 GO KIT

The Current Sensor 2GO is a budget-priced evaluation board equipped with the TLI4970-D050T4 current sensor combined with an ARM® Cortex™-M0 CPU. The Current Sensor 2GO has a complete set of on-board devices, including an on-board debugger. Build your own application and gadget with the Current Sensor 2GO. More information can be found here as well.

Please note that base of the Sensors 2GO is the XMC 2Go from Infineon. Therefore, please install (if not already done) also the XMC-for-Arduino implementation and choose afterwards XMC1100 XMC2Go from the Tools>Board menu in the Arduino IDE if working with this evaluation board.

Usage with TLI4970 CurrentSense Shield2Go

The TLI4970 CurrentSense Shield2Go is a standalone break out board with Infineon's Shield2Go formfactor and pin out. You can connect it easily to any microcontroller of your choice which is Arduino compatible and has 3.3V logic level (please note that the Arduino UNO has 5V logic level and cannot be used without level shifting).

  • Link to the wiki with more information

However, every Shield2Go is directly compatible with Infineon's XMC2Go and the recommended quick start is to use an XMC2Go for evaluation. Therefore, please install (if not already done) also the XMC-for-Arduino implementation and choose afterwards XMC1100 XMC2Go from the Tools>Board menu in the Arduino IDE if working with this evaluation board. To use it, please plug the TLI4970 CurrentSense Shield2Go onto the XMC2Go as shown below.

Board Information, Datasheet and Additional Information

The datasheet for the TLI4970-D050T4 can be found here TLI4970-D050T4 Datasheet while respective application notes and more documents are located here Application Notes. The product page is located here.

Please check the wiki with more information for the TLI4970 CurrentSense Shield2Go as well.

You can’t perform that action at this time.