How does it work?
Temp&Hum 18 Click as its foundation uses the HS3003, a highly accurate, fully calibrated relative humidity and temperature sensor from Renesas. The humidity can be measured within a range of 0 to 100%RH, while the temperature sensor is designed for a range of -40 to +125°C. The typical accuracy for humidity is ±2.5%RH in the measuring range of 20 up to 80%RH at ambient temperature, and ±0.25°C for temperature between 0 to +70 °C with very low power consumption.
The HS3003 digital sensor accurately measures relative humidity and temperature levels. The measured data is internally corrected and compensated for accurate operation over a wide range of temperature and humidity levels, which brings us to its highlighted feature – user calibration is not required. The entire output consists of only four bytes of data; that’s why calculating the corresponding relative humidity in percent and temperature in degrees Celsius is very easy.
Temp&Hum 18 Click communicates with MCU using the standard I2C 2-Wire interface to read data and configure settings, supporting Standard Mode operation with a clock frequency up to 100kHz and Fast Mode up to 400kHz. The HS3003 is also factory-programmed to operate even in Sleep Mode. In Sleep Mode, the sensor waits for commands from the MCU before taking measurements and only performs conversions when it receives a Measurement Request command; otherwise, it is always powered down.
This Click board™ can operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. This way, it is allowed for both 3.3V and 5V capable MCUs to use the I2C communication lines properly. However, the Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used, as a reference, for further development.
Specifications
Type
Temperature & humidity
Applications
Can be used for various temperature and humidity-related applications and a vast number of applications ranging from portable devices to products designed for harsh environments
On-board modules
HS3003 – highly accurate, fully calibrated relative humidity and temperature sensor from Renesas
Key Features
HS3003 – highly accurate, fully calibrated relative humidity and temperature sensor from Renesas
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 18 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 18 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | – | 5 | V |
Humidity Measurement Range | 0 | – | 100 | %RH |
Humidity Accuracy | – | ±2.5 | – | %RH |
Resolution | 8 | – | 14 | bits |
Temperature Accuracy | – | ±0.25 | – | °C |
Operating Temperature Range | 0 | +25 | +70 | °C |
Software Support
We provide a library for the Temp&Hum 18 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 18 Click driver.
Key functions
-
temphum18_get_temp_hum
Temp&Hum 18 get temperature and humidity function. -
temphum18_wake_up
Temp&Hum 18 wake up function. -
temphum18_get_raw_data
Temp&Hum 18 get raw data function.
Example Description
This library contains API for the Temp&Hum 18 Click driver. This demo application shows an example of relative humidity and temperature measurement.
void application_task ( void )
{
static float temperature;
static float humidity;
if ( temphum18_get_temp_hum( &temphum18, TEMPHUM18_RESOLUTION_14_BITS, &temperature, &humidity ) == TEMPHUM18_STATUS_VALID_DATA )
{
log_printf( &logger, " Temperature : %.02f Crn Humidity : %.02f %%rn", temperature, humidity );
}
else
{
log_printf( &logger, " Measurement ErrorrntStale Datarn" );
}
log_printf( &logger, "-------------------------rn" );
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.TempHum18
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.