TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (351 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136668 times)
  2. FAT32 Library (69910 times)
  3. Network Ethernet Library (55923 times)
  4. USB Device Library (46251 times)
  5. Network WiFi Library (41882 times)
  6. FT800 Library (41129 times)
  7. GSM click (28973 times)
  8. PID Library (26406 times)
  9. mikroSDK (26345 times)
  10. microSD click (25350 times)
Libstock prefers package manager

Package Manager

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]

< Back
mikroSDK Library

Air quality 3 click

Rating:

0

Author: MIKROE

Last Updated: 2018-03-16

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Gas

Downloaded: 4866 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.

No Abuse Reported

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".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

Air quality 3 click

Air quality 3 click

Native view of the Air quality 3 click board.

View full image
Air quality 3 click

Air quality 3 click

Front and back view of the Air quality 3 click board.

View full image

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:

  • System Initialization - Initializes I2C module, set CS and RST pin as OUTPUT and INT pin as INPUT.
  • Application Initialization - Initializes Driver, and module with default settings and also setup measurement mode.
  • Application Task - (code snippet) - This function read CO2 and TVOC value in the air and LOG information to UART. The operation is repeated each one second.
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:

  • UART
  • I2C

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.

ALSO FROM THIS AUTHOR

Brushless 6 click

0

Brushless 6 click is designed to drive a three-phase sensorless.

[Learn More]

RS485 3V3 click

0

RS485 click 3.3V is a RS422/485 transceiver Click board™, which can be used as an interface between the TTL level UART and the RS422/485 communication bus. It features a half-duplex communication capability, bus Idle, open and short-circuit detection, glitch free power-up and power-down for hot-plugging applications, thermal shutdown, and more. It is well suited for transmitting data packets over long distances and noisy areas, using the twisted wire bus, which offers good electromagnetic interferences (EMI) immunity. ESD protection of the transceiver IC ensures reliable operation, exceeding 16kV for human body model (HBM).

[Learn More]

Clock Gen click

5

Clock Gen Click offers an ideal replacement for crystals, crystal oscillators, VCXOs, phase-locked loops (PLLs), and fanout buffers in cost-sensitive applications.

[Learn More]