airquality2 2.0.0.0
|
Air quality 2 click carries the iAQ-Core Indoor Air Quality sensor that measures VOC levels and provides CO2 equivalent and TVOC equivalent predictions.
We provide a library for the Airquality2 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 Airquality2 Click driver.
- Initialization function.void airquality2_cfg_setup ( airquality2_cfg_t *cfg );
AIRQUALITY2_RETVAL airquality2_init ( airquality2_t *ctx, airquality2_cfg_t *cfg );
- Reads all data information about the indoor air quality.void airquality2_generic_read ( airquality2_t *ctx, uint8_t *data_buf, uint8_t len );
uint8_t airquality2_get_all_data ( airquality2_t *ctx, uint16_t *value_co2, uint16_t *value_tvoc, int32_t *resistance );
This app measure indoor air quality.
The demo application is composed of two sections :
Initialization device.
This is a example which demonstrates the use of Air quality 2 Click board. Read all data information about the indoor air quality from register on the iAQ-Core module, display Prediction Value CO2 [ ppm ], Prediction Value TVOC [ ppb ] and Resistance Value. Results are being sent to the Usart Terminal where you can track their changes. All data logs on usb uart for aproximetly every 5 sec.
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.