How does it work?
Thermo 24 Click as its foundation uses the STS40, a high-accuracy ultra-low-power 16-bit temperature sensor from Sensirion. This temperature sensor is characterized by high accuracy; temperature range of -40°C to +120°C provides typical ±0.2°C accuracy. 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 STS40 achieves the most significant cost efficiency among comparable sensors.
The STS40 communicates with MCU using a standard I2C 2-Wire interface. Given that this chip can be found in multiple versions with its own unique I2C slave address, this version, specifically the STS40-AD1B, comes with the slave address of 0x44. Since the sensor for operation requires a 3.3V logic voltage level only, this Click board™ also features the PCA9306 voltage-level translator from Texas Instruments. The I2C interface bus lines are routed to the dual bidirectional voltage-level translator, allowing this Click board™ to work with both 3.3V and 5V MCUs properly.
This Click board™ can operate with both 3.3V and 5V logic voltage levels selected via the VIO 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 that contains 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 thermal management and protection of various consumer, industrial, and environmental applications
On-board modules
STS40 – high-accuracy ultra-low-power temperature sensor from Sensirion
Key Features
Low power consumption, high precision, high accuracy, 16-bit temperature-to-digital converter, 0.01°C temperature resolution, I2C compatible serial interface, 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 24 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 | VIO SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
Thermo 24 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | – | 5 | V |
Accuracy | – | ±0.2 | – | °C |
Resolution | – | 16 | – | bit |
Operating Temperature Range | -40 | +25 | +120 | °C |
Software Support
We provide a library for the Thermo 24 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 Thermo 24 Click driver.
Key functions
-
thermo24_soft_reset
This function performs the software reset by sending the soft reset command by using I2C serial interface. -
thermo24_read_serial
This function reads the 4-byte chip serial number by using I2C serial interface. -
thermo24_read_temperature
This function reads the temperature in Celsius with the specified measurement precision.
Example Description
This example demonstrates the use of Thermo 24 Click board™ by reading and displaying the temperature measurements.
void application_task ( void )
{
float temperature;
if ( THERMO24_OK == thermo24_read_temperature ( &thermo24, THERMO24_MEASURE_PRECISION_HIGH, &temperature ) )
{
log_printf ( &logger, " Temperature: %.2f Crnn", temperature );
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.Thermo24
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.