How does it work?
Thermo 26 Click is based on the STS31-DIS, a digital temperature sensor from Sensirion with increased intelligence, reliability, NIST traceability, and improved accuracy specifications utilizing the industry-proven CMOSens® Technology. It integrates a digital temperature sensor with a 16-bit analog-to-digital converter (ADC), a data processing circuit, and serial interface logic functions in one package. The voltage is digitized and converted to a 16-bit temperature result in degrees Celsius, with a resolution of 0.01°C.
The STS31-DIS temperature sensor gives a fully calibrated, linearized, and supply-voltage-compensated digital output with outstanding accuracy of up to ±0.2°C typical over a temperature range of 0°C to 90°C.
Thermo 26 Click communicates with an MCU using the standard I2C 2-Wire interface to read data and configure settings, supporting Fast Mode Plus up to 1MHz. Also, the STS31-DIS allows choosing the least significant bit (LSB) of its I2C slave address using the SMD jumper labeled ADDR SEL. It also possesses an additional interrupt alert signal, routed on the INT pin of the mikroBUS™ socket labeled as ALT, indicating when a specific interrupt event occurs that depends on the value of the temperature reading relative to programmable limits and general reset function routed on the RST pin of the mikroBUS™ socket.
This Click board™ can operate with either 3.3V or 5V logic voltage levels selected via the VCC SEL jumper. This way, both 3.3V and 5V capable MCUs can 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 the thermal management of various consumer, industrial, and environmental applications
On-board modules
STS31-DIS – digital temperature sensor from Sensirion
Key Features
Low power consumption, high precision, I2C interface, temperature sensor in the STS31-DIS is the chip itself, resolution of 0.01°C, high accuracy, high reliability and long-term stability, 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 Thermo 26 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 | ADDR SEL | Left | I2C Address Selection 0/1: Left position 0, Right position 1 |
Thermo 26 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | – | 5 | V |
Temperature Accuracy | – | ±0.2 | – | °C |
Temperature Resolution | – | 0.01 | – | °C |
Operating Temperature Range | -40 | +25 | +125 | °C |
Software Support
We provide a library for the Thermo 26 Click as well as a demo application (example), developed using MikroE compilers. The demo can run on all the main MikroE development boards.
The package can be downloaded/installed directly from NECTO Studio Package Manager (recommended), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for Thermo 26 Click driver.
Key functions
-
thermo26_read_serial_num
This function reads the 32-bit unique serial number. -
thermo26_start_measurement
This function starts the measurements by sending the specified command. -
thermo26_read_temperature
This function reads the temperature raw data measurements and converts them to degrees Celsius.
Example Description
This example demonstrates the use of Thermo 26 Click board™ by reading and displaying the temperature measurements.
void application_task ( void )
{
float temperature;
if ( THERMO26_OK == thermo26_read_temperature ( &thermo26, &temperature ) )
{
log_printf ( &logger, " Temperature: %.2frnn", temperature );
}
Delay_ms ( 1000 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Thermo26
Additional notes and informations
Depending on the development board you are using, you may need a 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. A UART terminal is available with all MikroElektronika compilers.
mikroSDK
This Click board™ is supported with mikroSDK – MikroElektronika’s Software Development Kit. mikroSDK should be downloaded from the LibStock™ and installed for the compiler you are using to ensure proper operation of mikroSDK compliant Click board™ demo applications.
For more information about mikroSDK, visit the official page.