The CN0357_example is a toxic gas(CO) detector demo project for the Arduino Uno base board with additional EVAL-CN0357-ARDZ shield, created using the Arduino IDE.
This user guide gives a detailed explanation about CN0357_example toxic gas (CO) detection project for Arduino base board and EVAL-CN0357-ARDZ gas sensor shield. The gas sensor shield consists of portable gas detector circuit.
The EVAL-CN0357-ARDZ shield circuit provides a potentiostatic circuit for biasing the electrochemical sensor and 16-bit Sigma-Delta ADC. The small currents passing in the sensor is being converted to a voltage that can be read by the ADC. The 16-bit ADC value is received via SPI interface of the EVAL-ADICUP3029 board, where the gas concentration is computed.
The CN0357_example application configures the necessary components, processes ADC output value and make all necessary conversions in order to provide the gas concentration. A UART interface (9600 baud rate and 8-bits data length) is used to send the results to terminal window: CO Concentration in Parts Per Million(PPM) are the outputs provided in the terminal window.
At the start of the project, the software computes the necessary parameters and configure the digital rheostat(AD5270) . The required parameters are the sensor sensitivity and feedback resistor range. These can be modified by changing the values of the constants ui16sensorRange and ui16sensitivity found in the CN0357_example.ino file of the project.
The following is a list of items needed in order to replicate this demo.
The source code and include files of the CN0357_example can be found here:
The Arduino Sketch is used to load the example into Arduino IDE. The project is composed of three main parts:
The CN0357 comes with a carbon monoxide sensor, and those default settings are programmed into the software.(No configuration required) If you decide to use a different type of sensor, you will need to change the sensor sensitivity and range within the software.
In CN0357_example.ino file the user can configure parameters:
uint16_t ui16sensorRange = 2000; //value is in units (PPM)
uint16_t ui16sensitivity = 65; //value is in units (nA/ppm)
These two steps can also be done using the quick buttons on the Arduino sketch. Check out the image below for locations of the quick buttons.
Data is output using the USB cable from the Arduino to the PC. The USB port acts as a serial terminal to display the data being transmitted via UART. Opening the serial terminal window from the Arduino IDE is very easy, simply click on the button shown in the picture below.
You may need to configure the serial terminal depending on the current settings of the Arduino IDE. Make sure the settings are as follows:
Select COM Port Baud rate: 9600 Data: 8 bit Parity: none Stop: 1 bit Flow Control: none
The Arduino tools are easy to use, and there are many tutorials and users guides to help learn how to use the Arduino IDE.
For more information on how to use the tool basics, please check out the Arduino tutorials page.
To download the Arduino tools, check out the Arduino software page.
End of Document