Getting Started
Warning
This project is under development and not ready for use.
In this quick tutorial we will go through one of the XENSIV™ PAS Gas sensors examples, using the Rapid IoT connect developer kit (CYSBSYSKIT-DEV-01) and the PAS CO2 Miniboard.
Required Hardware
In case of using the miniboard, the following items are also required:
Jumper cables
Required Software
Software Installation
Install Arduino IDE. If you are new to Arduino, please download the program and install it first.
Install PSOC6 Board. The official Arduino boards are already available in the Arduino software, but other third party boards such as Infineon’s PSOC™ 6 need to be explicitly included. Follow the instructions in the installation guide to add the PSOC6 board family to Arduino.
Install the library. In the Arduino IDE, go to the menu Sketch > Include library > Library Manager. Type XENSIV PAS Gas Sensors and install the library.
Hardware Setup
For this example we are going to use the I2C interface with the PAS CO2 Miniboard and Rapid IoT connect developer kit (CYSBSYSKIT-DEV-01).
Add 10 Kohm pull-up resistors to the SDA and SCL lines, and provide 5VDC to the VDD5V pin. Connect the boards as shown in the following diagram:
Connect the Rapid IoT Connect Developer Kit to your computer with the USB cable.
With everything ready, now we are going to upload and run one of the library examples.
Select the board
Once installed the PSoC6 board family, you can select the Rapid IoT Connect Developer Kit from the menu Tools > Board:. Choose CYSBSYSKIT-DEV-01 depending on your hardware setup (Tools > Board > Infineon PSoC6 > CYSBSYSKIT-DEV-01).
Open the example
With the library installed in the Arduino IDE, you can include it from the menu Sketch > Include Library > XENSIV PAS Gas Sensors. The header
#include <pas-gas-ino.hpp>will be added to your sketch. Open and run one of the examples provided in File > Examples > XENSIV PAS Gas Sensors.Try the continuous mode example for I2C: File > Examples > XENSIV PAS Gas Sensors > continuous-mode.
Build and run the example
What’s next?
This is just the start 🚀 !
Check out the rest of the available library examples and find out more about the library functions in the API reference section.


