Featuring a smart and accurate temperature and humidity sensor IC, this Click board™ represents a perfect solution for a wide range of applications that rely on an accurate temperature and humidity measurements. By reducing the workload off the host microcontroller (MCU), it makes software development much simpler and faster, while reducing the power consumption at the same time. It is a perfect choice for various consumer and industry related applications, such as indoor weather stations, thermostats and humidistats, microenvironment centers, respiratory therapy applications, and similar.
How does it work?
The main component of Temp&Hum 6 click is the ENS210, a relative humidity and temperature sensor with I²C Interface, from ams AG. This sensor IC integrates two very accurate sensing components: temperature sensor, and relative humidity sensor. Thanks to an integrated logic back-end section, the IC can output calibrated readings from both sensors in human-readable format (%RH, and K).
The ENS210 incorporates a high accuracy thermal sensor, which can measure the temperature in the range between -40°C and 100°C while retaining accuracy of ±0.5°C. The accuracy is even greater if the range is narrowed down: when used over the range between 0°C and 70°C, the typical accuracy is ±0.2°C. Also, the repeatability of the temperature measurement is very good, in the range of ±0.1°C. The ENS210 is very reliable. It can be used for prolonged periods of time, as it has a very low thermal drift of only 0.005°C per year.
After the measurement has been converted by the A/D converter which uses a relatively new hybrid-mode technology (Zoom ADC), it is fed to a logic back-end, which applies factory-calibrated correction, and converts the raw data into Kelvins. Note that the sensor will take some time to accommodate to the ambient temperature, especially if the temperature changes quickly, considering the thermal conductivity of the PCB itself. However, the Click board™ surface is not very large, resulting in lower thermal inertia.
The humidity sensor is a capacitor-based sensor, which consists of a humidity-sensitive large-area capacitor. The humidity-sensitive layer allows the capacitance changes proportional to relative humidity. The capacitance has a linear dependence on temperature, which ensures high accuracy. However, the accuracy of the relative humidity sensor changes with the ambient temperature, as well as with the %RH. The datasheet of the ENS210 offers an absolute accuracy map, covering a range of different %RH and °C values. The RH sensor accuracy varies in the range between ±2.5% and ±5.5%, depending on the measuring conditions. This table can be used to check the exact accuracy for some specific conditions.
After the measurement has been converted by a high-precision 2nd order sigma-delta ADC, the logic back-end section applies the factory-calibrated correction and converts the raw data into %RH value. Note that the capacitor-based humidity sensors commonly suffer from a small hysteresis that might occur if the sensor is used in very humid conditions for prolonged periods of time. However, this hysteresis is not irreversible. The ENS210 does not exhibit a significant hysteresis effect. The datasheet specifies it to be ±0.7 %RH in the range between 20% to 90% RH, and ambient temperature of 25 °C.
Temp&Hum 6 click uses the I2C communication interface. It has pull-up resistors connected to the mikroBUS™ 3.3V rail. A proper conversion of logic voltage levels should be applied before the Click board™ is used with MCUs operated with 5V.
Specifications
Type | Humidity,Temperature |
Applications | It is a perfect choice for various consumer and industry related applications, such as the indoor weather stations, thermostats and humidistats, microenvironment centers, respiratory therapy applications, and similar applications |
On-board modules | ENS210, relative humidity and temperature sensor with I²C Interface, from ams AG |
Key Features | Two high-accuracy sensors integrated on the same die, ultra-accurate temperature data achieved by using the zoom ADC, advanced logic back-end offers calibrated data converted to physical units, low drift over time, high repeatability, etc. |
Interface | I2C |
Input Voltage | 3.3V |
Pinout diagram
This table shows how the pinout on Temp&Hum 6 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 |
---|---|---|---|
PWR | PWR | - | Power LED indicator |
Software support
We provide a library for the Temp&Hum 6 Click on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Library Description
The library initializes and defines the I2C bus driver and drivers that offer a choice for writing data in register and reads data form register. The library includes function for read Temperature and Relative Huminidy data and function for read device part ID data. The user also has the function for RUN and STOP procedure and function for reset device.
Key functions:
float temphum6_readTemperature(uint8_t tempIn)
- Functions for read Temperature data.float temphum6_readRelativeHuminidy()
- Functions for read Relative Huminidy data.void temphum6_reset()
- Functions for reset device.Examples description
The application is composed of the three sections :
void applicationTask() { char demoText[50]; float TEMP; float HUM; TEMP = temphum6_readTemperature(_TEMPHUM6_TEMP_IN_CELSIUS); FloatToStr(TEMP,demoText); mikrobus_logWrite("Temperature is ", _LOG_TEXT); mikrobus_logWrite(demoText, _LOG_TEXT); mikrobus_logWrite(" C", _LOG_LINE); HUM = temphum6_readRelativeHuminidy(); FloatToStr(HUM,demoText); mikrobus_logWrite("Huminidy is ", _LOG_TEXT); mikrobus_logWrite(demoText, _LOG_TEXT); mikrobus_logWrite(" %RH", _LOG_LINE); mikrobus_logWrite("------------------", _LOG_LINE); Delay_ms( 1000 ); }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
I2C
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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
Downloads
mikroBUS™ Standard specification