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-22
Package Version: 1.0.0.1
mikroSDK Library: 1.0.0.0
Category: Gas
Downloaded: 9830 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.
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".
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 circuitExamples Description
The application is composed of three sections :
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:
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.