/Getting_Started_Box_IoT

All you need to know about your new Infineon XENSIV™ - Getting Started Box IoT.

MIT LicenseMIT

Infineon XENSIV™ - Getting Started Box IoT

All you need to know about your new Infineon XENSIV™ - Getting Started Box IoT.

Quick start

A box consists of:

Microcontrollers

  • XMC 1100 Boot Kit – 32-bit Microcontroller based on ARM® Cortex®-M in Arduino Uno formfactor
  • 2x XMC™ 2Go – 32-bit Microcontroller based on ARM® Cortex®-M in Shield2Go formfactor
  • ESP32 – Wemos Formfactor including BLE and WIFI functionality

Sensors in Shield2Go formfactor

  • TLV493D-A1B6 – 3D Magnetic Hall Sensor
  • Rotate Knob – Add on component for 3D Magnetic Hall Sensor
  • Joystick - Add on component for 3D Magnetic Hall Sensor
  • OPTIGA™ Trust E – Hardware Security Chip
  • DPS310 – Barometric Pressure Sensor for consumer
  • TLI4970-D050T4 – Current Sensor with integrated current rail
  • IM69D130 – Digital MEMS Silicon Microphone

Accessories

  • Dual-Adapter Trust-X – Adapter for Infineon Shield2Go with Wemos formfactor equipped with OPTIGA™ Trust X
  • Triple-Adapter – Adapter for Infineon Shield2Go with Arduino Uno formfactor
  • USB-Cable
  • Solderless Connectors

About the Shields2Go

Infineon’s Shield2Go boards are equipped with one featured Infineon IC and provide a standardized form factor and pin layout for fast orientation. All boards come with solderless connectors allowing designers to stack the boards instead of soldering them. This makes the Shield2Go boards simple, reusable and flexible. In addition, each Shield2Go comes with a dedicated and ready-to-use, free Arduino library. The Shield2Go boards are compatible with all Arduino solutions with Infineon’s My IoT adapters. This combination of flexible hardware components and accompanying software speeds up the prototyping process. Designers can now focus and select only those components that they intend to design and which their layout requires, thus reducing the cost for a “box” or all-in-one solution of components that are rarely used in its entirety.

Installation instructions

Microcontrollers

Arduino IDE

Please download and install the Arduino IDE from here.

XMC™ 2Go XMC1100 and XMC1100 for Arduino

To add support for the XMC microcontroller series to your Arduino IDE please follow this guide. If you have already installed the XMC package in your Arduino IDE, consider updating it via the Board manager.

ESP32 WEMOS D1 MINI

Paste the following URL into the 'Additional Boards Manager URLs' input field under File > Preferences to add the ESP32 boards to the Arduino IDE.

https://dl.espressif.com/dl/package_esp32_index.json

Adding a Board JSON

To install the boards, please navigate to Tools > Board > Boards Manager... and search for ESP32. You will find options to install the board files for the microcontrollers. Click "Install" to add the boards to your Arduino IDE.

ESP-32 Board Entry

In the boards list Tools > Board, the ESP32 microcontroller boards are added and can be used from now on. For the ESP32 WEMOS D1 MINI choose the board MH ET LIVE ESP32MINIKit.

Shield2Go Boards

For a quick start with the Shield2Go boards you need to install the library for the respective Shield either with the built-in Library Manager of the Arduino IDE or directly from github.

TLV493D-A1B6 3D Magnetic Sensor Shield2Go

Library installation

Download the latest release as ZIP archive from here. In your Arduino IDE navigate to Sketch > Include Library > Add .ZIP Library... and choose the downloaded ZIP archive.

Examples

For example sketches navigate to File > Examples, scroll down to "Examples from Custom Libraries" and choose one of the examples in TLV493D-A1B6.

Full documentation

Please refer to the official TLV493D-A1B6 3D Sense Shield2Go repository for a full documentation.

DPS310 Pressure Sensor Shield2Go

Automatic library installation via the Library Manager

In your Arduino IDE navigate to Sketch > Include Library > Manage Libraries... and search for DPS310. Install the library.

Manual library installation

Download the latest release as ZIP archive from here. In your Arduino IDE navigate to Sketch > Include Library > Add .ZIP Library... and choose the downloaded ZIP archive.

Examples

For example sketches navigate to File > Examples, scroll down to "Examples from Custom Libraries" and choose one of the examples in DPS310.

Full documentation

Please refer to the official DPS310 Pressure Shield2Go repository for a full documentation.

TLI4970 Current Sensor Shield2Go

Library installation

Download the latest release as ZIP archive from here. In your Arduino IDE navigate to Sketch > Include Library > Add .ZIP Library... and choose the downloaded ZIP archive.

Important note:. Please install the One Wire library from PaulStoffregen 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.

Examples

For example sketches navigate to File > Examples, scroll down to "Examples from Custom Libraries" and choose one of the examples in TLI4970.

Full documentation

Please refer to the official TLI4970 Current Sense Shield2Go repository for a full documentation.

Optiga™ Trust E Shield2Go

Library installation

Download the latest release as ZIP archive from here. In your Arduino IDE navigate to Sketch > Include Library > Add .ZIP Library... and choose the downloaded ZIP archive.

Examples

For example sketches navigate to File > Examples, scroll down to "Examples from Custom Libraries" and choose one of the examples in OPTIGATrustE.

Full documentation

Please refer to the official Optiga™ Trust E Shield2Go repository for a full documentation.

IM69D MEMS Microphone Shield2Go

The IM69D is a I2S (Inter-IC Sound) device and does not need a special library. It works out-of-the-box with the XMC microcontroller series. The ESP32 is not yet natively supported.

Examples

For example sketches navigate to File > Examples, scroll down to "Examples for XMC1100 ..." (depends on which board you have choosen) and choose one of the examples in I2S.

Please refer to the official IM69D MEMS Microphone Shield2Go repository for a full documentation.

Dual-Adapter Trust-X

The Dual-Adapter Trust-X is a adapter for combining Infineon Shield2Go boards with Wemos formfactor microcontroller boards. The adapter is equipped with an OPTIGA™ Trust X chip.

OPTIGA™ Trust X

Automatic library installation via the Library Manager

In your Arduino IDE navigate to Sketch > Include Library > Manage Libraries... and search for OptigaTrustX. Install the library.

Manual library installation

Download the latest release as ZIP archive from here. In your Arduino IDE navigate to Sketch > Include Library > Add .ZIP Library... and choose the downloaded ZIP archive.

Examples

For example sketches navigate to File > Examples, scroll down to "Examples from Custom Libraries" and choose one of the examples in OPTIGATrustX.

Full documentation

Please refer to the official OPTIGA™ Trust X repository for a full documentation.

Examples

Joystick and Pressure Sensor on the ESP32 Wemos D1 Mini

This example shows how to use the Getting Started Box IoT in order to show sensor data from the 3D Magnetic Sensor and the Pressure Sensor on a Website, which is hosted by the ESP32 Wemos D1 Mini.

Hardware

Required Hardware:

Now connect all devices together:

  1. Mount the 3D-printed Joystick Adapter onto the TLV493D-A1B6 Shield2Go and tighten the screw.
  2. Plug the TLV493D Shield2Go with connected Joystick-Adapter into Socket 1 of the Dual Adapter.
  3. Connect DPS310 Shield2Go to Socket 2 of the Dual Adapter.
  4. Connect the Dual Adapter to the ESP32 Wemos D1 Mini. Make sure it's connected the right way (check with the picture below).
  5. Use a micro USB-cable to connect the ESP32 Wemos D1 Mini to the PC.

Afterwards it should look like this:

Software

To get the software for this example, download this repository from GitHub by clicking on the following field in the latest release of this repository:

After downloading you can extract the ZIP-file and then navigate to "examples/Joystick_Pressure/". Open the Joystick.ino with the Arduino IDE and follow these steps to upload the sketch:

  1. Click on Tools > Board and select the Board MH ET LIVE ESP32MINIKit there. (If you do not find the Board, make sure you've installed the ESP32-Boards as described here)
  2. Select the right COM-port via Tools > Port. Mostly it's the port with the highest number. If you are not sure which COM-port your ESP32 Wemos D1 Mini is connected to, simply unplug it and check which COM-Port number disappeared in the list (you have to reopen the list in order to refresh it).
  3. Upload the Sketch via Sketch > Upload.

Result

After uploading the sketch, the ESP32 Wemos D1 Mini sets up a WiFi - access point with the SSID "myIoT" and the password "ifxIoT2019":

A webserver is started by the ESP32 on its local IP. The website can be seen when a device is connected to the access point and calls http://192.168.4.1 in the browser.

The SSID, Password and URL can also be seen via the Serial Monitor in the Arduino IDE (Baudrate: 115200, maybe a reset by pressing the button on the ESP32 Wemos D1 Mini with open Serial Monitor is necessary in order to see the output)

That's it. Now you can monitor the sensor values on the website.