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: 2020-11-27
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: Gas
Downloaded: 2097 times
Not followed.
License: MIT license
RAQ Click is a compact add-on board targeted for use in refrigeration air quality (RAQ) applications. This board features the ZMOD4450, a gas sensor module designed for detecting gases associated with food ripening or rotting from Renesas Electronics Corporation.
Do you want to subscribe in order to receive notifications regarding "RAQ click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "RAQ click" changes.
Do you want to report abuse regarding "RAQ click".
Library Description
The library covers all the necessary functions to control RAQ Click board™. Library performs a standard I2C interface communication.
Key functions:
( uint8_t *cfg_data, uint8_t *prod_data, uint16_t *pid )
- Get sensor info function.( uint16_t *mox_lr, uint16_t *mox_er )
- Initialization of the sensor function.( float *rmox, uint16_t mox_lr, uint16_t mox_er )
- -.Examples description
The application is composed of three sections :
void application_task ( )
{
ret = raq_start_measurement( );
status_data = raq_get_status( );
Delay_ms( 10 );
while ( ( status_data & RAQ_STATUS_LAST_SEQ_STEP_MASK ) != RAQ_SUCCESS )
{
status_data = raq_get_status( );
Delay_ms( 10 );
}
ret = raq_read_rmox( &rmox, mox_lr, mox_er );
Delay_ms( 10 );
if ( ret == RAQ_SUCCESS )
{
FloatToStr( rmox / 1000, demo_log );
mikrobus_logWrite( " Rmox : ", _LOG_TEXT );
mikrobus_logWrite( demo_log, _LOG_TEXT );
mikrobus_logWrite( " kOhm", _LOG_LINE );
mikrobus_logWrite( "-------------------------", _LOG_LINE );
Delay_ms( 2000 );
}
else
{
display_error( );
}
}
Additional Functions :
void display_error ( )
- Display error status.Other mikroE Libraries used in the example:
Additional notes and informations
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.