How does it work?
HDC1000 Click is based on the HDC1000, a digital humidity sensor with an integrated temperature sensor from Texas Instruments, providing long-term and excellent measurement accuracy at low power. The HDC1000 is a factory-calibrated sensor that measures humidity based on a novel capacitive sensor. The sensing element of the HDC1000 is placed on the bottom part of the device, which makes it more robust against dirt, dust, and other environmental contaminants. It can read humidity over the full range of 0 to 100% RH with a typical accuracy of ±3% over 20% to 60% RH, while its maximum temperature range is from -40 to 125°C. It has a typical accuracy of ±0.2°C over 10 to 50°C.
The HDC1000 communicates with MCU using the standard I2C 2-Wire interface with a maximum frequency of 400kHz. Resolution is based on the measurement time and can be 8, 11, or 14 bits for humidity; 11 or 14 bits for temperature. Besides, the HDC1000 allows choosing the least significant bits (LSB) of its I2C slave address using the SMD jumpers labeled ADRs.
This sensor has two modes of operation: Sleep mode and Measurement mode. After the Power-Up sequence, the HDC1000 is in sleep mode, where it waits for I2C interface input, including commands to configure the conversion times, read the status of the battery, trigger a measurement, and read measurements. Once it receives a command to initiate a measurement, the HDC1000 moves from Sleep mode to Measurement mode. In Measurement mode, the HDC1000 acquires the configured measurements and sets the RDY line, routed to the INT pin of the mikroBUS™ socket, to a low logic state, indicating that the measurement process is complete.
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, consumer, and other temperature and humidity-related applications such as HVAC systems, thermostats, weather stations, and more
On-board modules
HDC1000 – digital humidity sensor with an integrated temperature sensor from Texas Instruments
Key Features
Low power consumption, high accuracy, covers extended operating humidity and temperature ranges, fully calibrated, fast response time, I2C interface, 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 HDC1000 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-JP2 | – | Right | I2C Address Selection 1/0: Left position 1, Right position 0 |
HDC1000 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | – | 3.3 | – | V |
Operating Humidity Range | 0 | – | 100 | %RH |
Humidity Accuracy | – | ±3 | – | %RH |
Temperature Accuracy | – | ±0.2 | – | °C |
Operating Temperature Range | -40 | +25 | +125 | °C |
Software Support
We provide a library for the HDC1000 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 HDC1000 Click driver.
Key functions
-
This function executes default configuration for HDC1000 click.
-
This function gets temperature data from the HDC1000 sensor.
-
This function gets humidity data from the HDC1000 sensor.
Example Description
Demo application code is used for measuring temperature and humidity.
void application_task ( void )
{
temperature = hdc1000_get_temperature_data( &hdc1000 );
log_printf( &logger, " Temperature : %f C rn", temperature );
humidity = hdc1000_get_humidity_data( &hdc1000 );
log_printf( &logger, " Humidity : %f % rn", humidity );
log_printf( &logger, "----------------------------------- rn" );
Delay_ms ( 3000 );
}
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.HDC1000
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.