temphum24 2.1.0.0
|
Temp&Hum 24 Click is a compact add-on board that measures the surrounding environment's humidity and temperature. This board features the HDC3021, an integrated capacitive-based relative humidity and temperature sensor with a removable tape cover from Texas Instruments. The HDC3021 is characterized by its high accuracy (±0.5RH and ±0.1°C over a wide operating temperature range) and high resolution, providing 16-bit data to the host controller with a configurable I2C interface. Offset Error Correction reduces RH sensor offset due to aging, exposure to extreme operating conditions, and contaminants to return the device to within accuracy specifications.
We provide a library for the TempHum 24 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 TempHum 24 Click driver.
temphum24_cfg_setup
Config Object Initialization function. temphum24_init
Initialization function. temphum24_default_cfg
Click Default Configuration function. temphum24_read_temp_and_rh
This function reads the temperature in celsius and the relative humidity level in percents. temphum24_read_temp_history
This function reads the temperature minimum and maximum values since the beginning of the measurements. temphum24_read_rh_history
This function reads the relative humidity minimum and maximum values since the beginning of measurements. This example demonstrates the use of Temp & Hum 24 click board by reading the temperature and humidity data.
The demo application is composed of two sections :
Initializes the driver and performs the click default configuration which resets the device and starts the auto measurement mode with data rate of 1 Hz.
Reads the temperature (degrees C) and the relative humidity (RH) data and displays the results on the USB UART approximately once per second.
It also reads and displays the minimum and maximum values measured since the beginning of measurements.
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.