How does it work?
Temp&Hum 22 Click as its foundation uses the SHT41A, high-accuracy automotive-grade 16-bit relative humidity and temperature sensor from Sensirion. The SHT41A builds on a wholly new and optimized CMOS chip offering reduced power consumption, 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.3°C. The SHT41A’s integrated heater allows advanced on-board-diagnostics alongside a reliable operation in harsh conditions such as condensing environments.
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 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 by itself.
Also, to maximize the over-temperature when using the heater, reduced heat conduction and heat capacity of the mounted sensor is desired. For this reason, the sensor is placed on this Click board™ in a particular position, a piece of a standard PCB with a cutout around the sensor area, increasing the decontamination yield and avoiding excess energy consumption. The PCB layout like this is optimized for minimal thermal heat sink influence.
This Click board™ can be operated only 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 automotive and other temperature and humidity-related applications
On-board modules
SHT41A – relative humidity and temperature sensor from Sensirion
Key Features
Low power consumption, high accuracy, automotive-grade, 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 or 5V
Pinout diagram
This table shows how the pinout on Temp&Hum 22 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 |
JP1 | VCC SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
Temp&Hum 22 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | – | 5 | V |
Temperature Accuracy | – | ±0.3 | – | °C |
Relative Humidity Accuracy | – | ±2 | – | %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 22 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.
Library Description
This library contains API for Temp&Hum 22 Click driver.
Key functions
-
temphum22_soft_reset
This function performs the software reset by sending the soft reset command. -
temphum22_read_serial_num
This function reads the 4-bytes unique serial number by using I2C serial interface. -
temphum22_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 22 Click board™ by reading the temperature and humidity data.
void application_task ( void )
{
float temperature, humidity;
if ( TEMPHUM22_OK == temphum22_read_measurement_high_precision ( &temphum22, &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.TempHum22
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.