How does it work?
Temp&Hum 23 Click is based on the SHT45, a digital sensor platform for measuring relative humidity and temperature at different accuracy classes from Sensirion. The SHT45 builds on a wholly new and optimized CMOS chip offering reduced power consumption, high accuracy, and a digital I2C interface for the fastest data transfer. It covers extended operating humidity, and temperature ranges from 0 to 100%RH and from -40°C to 125°C with accuracies of ±1%RH and ±0.1°C.
The SHT45 communicates with MCU using the standard I2C 2-wire interface. The sensor performs best when operated within the recommended average temperature and humidity range of 5-60°C and 20-80% RH. Long-term exposure to conditions outside the recommended normal range, especially at high relative humidity, may temporarily offset the RH signal. After returning to the recommended average temperature and humidity range, the sensor will recover to within specifications.
This Click board™ can only be operated with a 3.3V logic voltage level. The board must perform appropriate logic voltage level conversion before using MCUs with different logic levels. However, the Click board™ comes equipped with a library containing functions and an example code that can be used as a reference for further development.
Specifications
Type
Temperature & humidity
Applications
Can be used for high-volume applications
On-board modules
SHT45 – relative humidity and temperature sensor from Sensirion
Key Features
Low power consumption, high accuracy, covers extended operating humidity and temperature ranges, internal heater, fully functional in condensing environment, fast data transfer, and more
Interface
I2C
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
S (28.6 x 25.4 mm)
Input Voltage
3.3V
Pinout diagram
This table shows how the pinout on Temp&Hum 23 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED Indicator |
Temp&Hum 23 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | – | 3.3 | – | V |
Temperature Accuracy | – | ±0.1 | – | °C |
Relative Humidity Accuracy | – | ±1 | – | %RH |
Resolution | – | 16 | – | bit |
Operating Humidity Range | 0 | – | 100 | %RH |
Operating Temperature Range | -40 | +25 | +125 | °C |
Software Support
We provide a library for the Temp&Hum 23 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
The package can be downloaded/installed directly from NECTO Studio Package Manager(recommended), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for Temp&Hum 23 Click driver.
Key functions
-
temphum23_soft_reset
This function performs the software reset by sending the soft reset command. -
temphum23_read_serial_num
This function reads the 4-bytes unique serial number by using I2C serial interface. -
temphum23_read_measurement_high_precision
This function reads the temperature and humidity measurements with high precision.
Example Description
This example demonstrates the use of Temp&Hum 23 click board by reading the temperature and humidity data.
void application_task ( void )
{
float temperature, humidity;
if ( TEMPHUM23_OK == temphum23_read_measurement_high_precision ( &temphum23, &temperature, &humidity ) )
{
log_printf ( &logger, " Temperature: %.2f degCrn", temperature );
log_printf ( &logger, " Humidity: %.2f %%RHrnn", humidity );
Delay_ms ( 1000 );
}
}
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:
- MikroSDK.Board
- MikroSDK.Log
- Click.TempHum23
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.
mikroSDK
This Click board™ is supported with mikroSDK – MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
For more information about mikroSDK, visit the official page.