TOP Contributors

  1. MIKROE (2650 codes)
  2. Alcides Ramos (350 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 (136552 times)
  2. FAT32 Library (69746 times)
  3. Network Ethernet Library (55849 times)
  4. USB Device Library (46189 times)
  5. Network WiFi Library (41811 times)
  6. FT800 Library (41001 times)
  7. GSM click (28930 times)
  8. PID Library (26386 times)
  9. mikroSDK (26289 times)
  10. microSD click (25303 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

Ozone 2 click

Rating:

10

Author: MIKROE

Last Updated: 2018-03-22

Package Version: 1.0.0.1

mikroSDK Library: 1.0.0.0

Category: Gas

Downloaded: 9037 times

Not followed.

License: MIT license  

Ozone 2 click carries an MQ131 sensor for Ozone (O3). The sensor outputs an analog voltage, which is converted by the onboard MCP3551 22-bit ADC converter or it is sent to the microcontroller via AN pin on the mikroBUSâ„¢, depending on the position of ADC SEL. jumper. The click is designed to run on 5V power supply.

No Abuse Reported

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

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

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

Ozone 2 click

Ozone 2 click

Native view of the Ozone 2 click board.

View full image
Ozone 2 click

Ozone 2 click

Front and back view of the Ozone 2 click board.

View full image

Library Description

The library carries functions for initialization and reading the pa a digital value from MCP3351. Conversion of value to PPM is not covered by the library because it depends on the measurement environment.

Key functions

  • uint32_t ozone2_read() - Reads a digital value from MCP3351 ADC circuit

Examples Description

The application is composed of three sections :

  • System Initialization - GPIO and SPI module initialization
  • Application Initialization - SPI Driver initialization
  • Application Task - reading raw digital value from ADC each one second and displaying it via UART terminal
void applicationTask()
{
 readValue = ozone2_read();
 LongWordToStr(readValue,text);
 mikrobus_logWrite("Read Value: ",_LOG_TEXT);
 mikrobus_logWrite(text,_LOG_LINE);
 Delay_ms(1000);
}

Keep on mind that this is a raw measurement which should be converted to exact Ozone PPM value using formulas provided by circuit producer. Conversion to PPM depends on few conditions - more details 
can be found in the datasheet.

The full application code, and ready to use projects can be found on our 
LibStock page.

mikroE Libraries used in the example:

  • UART
  • SPI
  • Conversions

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

Angle 6 click

0

Angle 6 Click is a compact add-on board that detects the absolute angular position of a permanent magnet, typically a diametrically magnetized cylinder on a rotating shaft. This board features the MAQ470GQE, a 12-bit contactless angle sensor with PWM output from Monolithic Power Systems. It supports a wide range of magnetic field strengths and spatial configurations, with both end-of-shaft and off-axis (side-shaft mounting), supported configurations. Fast data acquisition and processing provides accurate angle measurement at speeds from 0 to 60,000 rpm, alongside magnetic field strength detection with programmable thresholds.

[Learn More]

FRAM 2 click

0

FRAM 2 click carries the CY15B104Q 4-Mbit (512K x 8 serial F-RAM. A ferroelectric random-access memory or F-RAM is non-volatile and performs reads and writes similar to a RAM. The memory is accessed using an industry-standard serial peripheral interface (SPI) bus.

[Learn More]

AudioAmp 9 click

0

AudioAMP 9 Click is a compact add-on board reproducing input audio signals with desired volume and power levels at sound-producing output elements. This board features the PAM8124, a 10W efficient, Class-D audio power amplifier from Diodes Incorporated for driving stereo speakers in a single-ended configuration.

[Learn More]