We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: MIKROE
Last Updated: 2018-03-16
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: Gas
Downloaded: 5376 times
Not followed.
License: MIT license
Air quality 3 click is the air quality measurement device, which is able to output both equivalent CO2 levels and total volatile organic compounds (TVOC) concentration in the indoor environment.
Do you want to subscribe in order to receive notifications regarding "Air quality 3 click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "Air quality 3 click" changes.
Do you want to report abuse regarding "Air quality 3 click".
Library Description
The library carries all necessary functions to have complete control over Air quality 3 click.
Key functions
void airq3_getCO2andTVOC( uint16_t *algData ) - Read Co2 and TVOC values.
void airq3_setMeasurementMode( uint8_t mode ) - Set measurement mode.
void airq3_init() - Default module initialization must be called before module usage.
Examples Description
The demo application is composed of three sections:
void applicationTask() { airq3_getCO2andTVOC(&AIRQ3_Data[0]); ByteToStr(AIRQ3_Data[0],text); mikrobus_logWrite("CO2 value : ",_LOG_TEXT); mikrobus_logWrite(text,_LOG_TEXT); mikrobus_logWrite(" ppm",_LOG_LINE); ByteToStr(AIRQ3_Data[1],text); mikrobus_logWrite("TVOC value : ",_LOG_TEXT); mikrobus_logWrite(text,_LOG_TEXT); mikrobus_logWrite(" ppb",_LOG_LINE); Delay_1sec(); }
mikroE Libraries used in the example:
Additional notes and information
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.