pht
2.0.0.0
|
PHT Click is a compact add-on board that contains a PHT combo sensor. This board features the MS8607, a digital combination sensor providing 3 environmental measurements all-in-one: pressure, humidity, and temperature from TE Connectivity. This sensor is based on leading MEMS technologies, provides factory-calibrated PHT data available over an I2C serial interface.
We provide a library for the PHT 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 PHT Click driver.
pht_cfg_setup
Config Object Initialization function. pht_init
Initialization function. pht_set_ratio
Set Ratio function. pht_get_temperature_pressure
Get temperature and pressure function. pht_get_relative_humidity
Get humidity function. This is an example that demonstrates the use of the PHT Click board.
The demo application is composed of two sections :
Initialization driver enables - I2C, performs the device reset and determines the oversampling ratio, also write log.
PHT Click board can be used to measure Pressure, Temperature and Relative Humidity. All data logs write on USB uart changes every 3 sec.
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.