TOP Contributors

  1. MIKROE (2660 codes)
  2. Alcides Ramos (356 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 (137013 times)
  2. FAT32 Library (70135 times)
  3. Network Ethernet Library (56028 times)
  4. USB Device Library (46353 times)
  5. Network WiFi Library (41968 times)
  6. FT800 Library (41295 times)
  7. GSM click (29056 times)
  8. mikroSDK (26492 times)
  9. PID Library (26452 times)
  10. microSD click (25413 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

NO2 2 click

Rating:

5

Author: MIKROE

Last Updated: 2019-10-09

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Gas

Downloaded: 2741 times

Not followed.

License: MIT license  

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

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "NO2 2 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "NO2 2 click" changes.

Do you want to report abuse regarding "NO2 2 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

NO2 2 click

NO2 2 click

Native view of the NO2 2 click board.

View full image
NO2 2 click

NO2 2 click

Front and back view of the NO2 2 click board.

View full image

Library Description

The library includes functions for reading ADC value from device via SPI module. Function for converting ADC value to ppb and control over pht pin.

Key functions:

  • uint16_t no22_read_data ( void ) - Reads ADC value from device
  • float no22_get_ppb ( void ) - Converts ADC value to ppb
  • uint8_t no22_set_pht_state ( uint8_t state ) - Sets state of pht pin

Examples description

The application is composed of three sections :

  • System Initialization - SPI and GPIO modules init
  • Application Initialization - Driver init
  • Application Task - Measures in span of 1 seconc ppb of NO2
void applicationTask()
{
    uint16_t temp_data_read;
    float data_ppb;
    
    mikrobus_logWrite( "ADC : ", _LOG_TEXT );
    temp_data_read = no22_read_data(  );
    WordToStr( temp_data_read, demo_text );
    mikrobus_logWrite( demo_text, _LOG_LINE );
    
    mikrobus_logWrite( "PPB : ", _LOG_TEXT );
    data_ppb = no22_get_ppb(  );
    FloatToStr( data_ppb, demo_text );
    mikrobus_logWrite( demo_text, _LOG_LINE );
    
    mikrobus_logWrite( "___________________________", _LOG_LINE );
    
    Delay_ms( 1000 );
}

Other mikroE Libraries used in the example:

  • SPI
  • UART

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB 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

Ambient click

0

Ambient click carries the Melexis MLX75305 IC. It’s a CMOS integrated optical sensor that consists of a photodiode, a transimpendance amplifier, and an output transistor.

[Learn More]

Diff Press click

0

Diff Press Click is an accurate pressure sensor Click board™ capable of measuring differential pressure.

[Learn More]

Charger 13 click

0

Charger 13 Click is a single lithium-ion (Li+) cell battery charger. This click can be used for Low-Cost Li-Ion battery chargers, or Power Tools, toys, backup energy storage solutions, etc.

[Learn More]