no22 2.0.0.0
|
NO2 2 Click is a gas sensor Click boardâ„¢, equipped with the MiCS-2714, a compact metal oxide (MOS) sensor. This sensor reacts to the presence of nitrogen dioxide (NO2) and hydrogen (H2).
We provide a library for the NO22 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for NO22 Click driver.
- Initialization function.void no22_cfg_setup ( no22_cfg_t *cfg );
NO22_RETVAL no22_init ( no22_t *ctx, no22_cfg_t *cfg );
void no22_default_cfg ( no22_t *ctx );
- Function for reading ppb datauint16_t no22_read_data ( no22_t *ctx );
float no22_get_ppb ( no22_t *ctx );
uint8_t no22_set_pht_state ( no22_t *ctx, uint8_t state );
Measure the level of NO2
The demo application is composed of two sections :
Driver init
Measures in span of 1 seconc ppb of NO2
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
Other mikroE Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.