How does it work?
Humidity Click as its foundation uses the HIH-5030, a high-performance analog-output relative humidity sensor from Honeywell Sensing and Productivity Solutions. The HIH-5030 surface-mounted, covered, condensation-resistant, integrated circuit humidity sensor factory-fitted with a hydrophobic filter allows usage in many condensing environments. It provides enhanced stability, accuracy, and response time over the entire humidity range of 0%RH to 100%RH with an accuracy of ±3%RH over a wide operating temperature range at the industry’s lowest power. This Click board™ is primarily developed for measuring the amount of water vapor in the air in industrial, medical, and commercial applications but can also be used in other application fields.
The sensing element’s multi-layer construction provides enhanced resistance to most application hazards such as condensation, dust, dirt, oils, and common environmental chemicals. The sensor converts humidity value into an analog output signal; more precisely, the user can process the output signal in analog or digital form.
The output voltage of the HIH-5030 can be converted to a digital value using MCP3221, a successive approximation A/D converter with a 12-bit resolution from Microchip, using a 2-wire I2C compatible interface, or can be sent directly to an analog pin of the mikroBUS™ socket labeled as AN. Selection can be performed by onboard SMD jumper labeled as ADC SEL to an appropriate position marked as AN and I2C.
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 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 industrial, medical, and commercial applications
On-board modules
HIH-5030 – high-performance analog-output relative humidity sensor from Honeywell Sensing and Productivity Solutions
Key Features
Low power consumption, high precision and performance, enhanced accuracy and response time over the entire humidity range, chemically resistant, possibility of signal processing in analog and digital form, and more
Interface
Analog,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 Humidity 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 |
JP2 | ADC SEL | Right | Output Voltage A/D Selection AN/I2C: Left position AN, Right position I2C |
Humidity Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | – | 5 | V |
Operating Humidity Range | 0 | – | 100 | %RH |
Accuracy | -3 | – | +3 | %RH |
Operating Temperature Range | -40 | +25 | +85 | °C |
Software Support
We provide a library for the Humidity 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 Humidity Click driver.
Key functions
-
humidity_read_voltage
This function reads raw ADC value and converts it to proportional voltage level. -
humidity_voltage_to_rh
This function calculates relative humidity percents based on the voltage input. -
humidity_drv_interface_selection
This function sets a serial driver interface which will be used further in the click driver.
Example Description
This example demonstrates the use of Humidity Click board™.
void application_task ( void )
{
float voltage = 0;
if ( HUMIDITY_OK == humidity_read_voltage ( &humidity, &voltage ) )
{
log_printf( &logger, " Relative Humidity [%%RH]: %.2frnn", humidity_voltage_to_rh( &humidity, voltage ) );
}
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.Humidity
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.