This is part 2 from the blog MyIoT: Infineon Shield2Go Boards for IoT - Review
Here I will explain in detail about the tests I performed with the Infineon Shield2Go boards and the sensors. After setting up the Arduino IDE for the XMC_BOOTKIT and XMC2GO micro-controller and installing the libraries needed to work with the S2Go sensors I made a simple setup to test the S2Go sensors.
Blinking LED Test on XMC1100 Boot Kit
This was a simple test. The XMC1100 6 LEDs. I toggled the LEDs with different delays in between the toggling.
Blinking the LEDs on the XMC2Go board
The mini XMC2Go board has only 2 user leds as seen in the last theory blog.
Testing the S2GO DPS310-Pressure-Sensor with XMC1100 BootKit
It was a very straightforward test. After loading the zip files from GITHub in Arduino IDE the sample examples were easy to run. The DPS310 pressure sensor communicates to the XMC bootkit with I2C bus through SDA and SCL lines. I pulled the SDA and SCL lines with 10K resistors to the 3V3 power. As seen in my first blog the connections to the I2C lines are at pin 4 and pin 5 on the S2GO PRESSURE DPS310 Shield board.
My easy to go test setup
Testing the pressure sensor in Arduino IDE
The pressure is measured in pascal and not in millibar (as europeans are used to)
After disconnecting the sensor failure messages were also displayed as shown below
Testing the TLV493D-A1B6-3DMagnetic S2Go with XMC1100
The TLV493D-A1B6-3DMagnetic S2Go can measure in XYZ Cartesian format for linear motion detection and in Spherical format. The output of the of the sensor is also read by 2 wire I2C interface which can be upto 1 MBit/sec and 12 bit data resolution for each measurement direction (Bx, By and Bz linear field measurement up to +-130mT). The head of the S2Go board can be broken off and used in a another project easily.
TLV493D-A1B6-3DMagnetic S2Go interfaced to the XMC1100 bootKit
In this setup I measured by moving the 3D sensor by hand and recording the plot.
Measuring Angular Motion of the 3D sensor
Used the fast plotting code for the spherical coordinates
Note: This sensor has temperature drift and should be compensated for. Detailed way to calibrate the sensor is mentioned on the Infineon website.
Resolution of the sensor at different temperatures
Testing the TLI4970-D050T4 Current Sensor with XMC1100
TLI4970-D050T4 is a coreless magnetic current sensor. It is a digital current sensor with full measurement range of +/- 50Amps. It can be used to measure AC and DC currents. The ambient operating temperature of max 85°C (limited) due to the power dissipation in the current rail. This sensor uses the 3-pin serial peripheral interface (SPI) and 16-bit SPI protocol to output the value.
The transfer function is used in the code to measure the current vs the output sent via SPI.
My test setup to run the sample code and get the sensor working
In this blog I did the tests to get all the S2Go infineon sensors tested for the functionality and running. I plan to integrate these sensors in a small project in the future. The S2Go infineon sensor shields are easy to setup and working with Arduino. I also investigated the simulation aspects of the XMC1100 Bootkit board.
Wemos functionality Test
The wemos tests are done in the blog MyIoT: Infineon Shield2Go Boards for IoT with Wemos functionality