Skip to main content

GSS AN011 - interfacing to Arduino

24 September 2021

This application note is to explain how to connect a GSS CO2 sensor to an Arduino board

Arduino is an open-source hardware and software company that designs and manufactures single-board microcontrollers and microcontroller kits for building digital devices. There are number of different hardware options available, and most allow easy connection to a GSS CO2 sensor.

GSS sensors have a variety of methods to communicate with an external microcontroller, including UART and I2C digital serial ports, as well as legacy analogue interfaces. For the purposes of this application note, it will concentrate on the popular UART interface although similar principles apply when using the I2C interface.

The sample code implements a software UART, using two general purpose digital I/O pins on the Arduino UNO to communicate with the GSS sensor. All data from this UART is passed to the Arduino UNO hardware UART and allows data to be transferred to PC via the Arduino USB connection.

The connection diagram works with the sample code, but it is possible to use other pins, if the corresponding modifications are made to the code.