humidity 2.0.0.0
|
Humidity Click is a compact add-on board used to sense the amount of water vapor in the air. This board features the HIH-5030, an analog output relative humidity sensor from Honeywell Sensing and Productivity Solutions. The HIH-5031 is a covered, condensation-resistant, integrated circuit humidity sensor that is factory-fitted with a hydrophobic filter allowing usage in many condensing environments.
We provide a library for the Humidity Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for Humidity Click driver.
humidity_cfg_setup
Config Object Initialization function. humidity_init
Initialization function. humidity_read_voltage
This function reads raw ADC value and converts it to proportional voltage level. humidity_voltage_to_rh
This function calculates relative humidity percents based on the voltage input. humidity_drv_interface_selection
This function sets a serial driver interface which will be used further in the click driver. This example demonstrates the use of Humidity click board.
The demo application is composed of two sections :
Initializes the driver and logger. The I2C communication interface is selected by default.
Reads the ADC voltage and then calculates the relative humidity from it. The calculated value of relative humidity in percents is being displayed on the USB UART approximately once per second.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
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. UART terminal is available in all MikroElektronika compilers.