How does it work?
Thermo 20 Click is based on the TSYS03, an ultra-compact digital temperature sensor with precise digital output and low power consumption from TE Connectivity. The TSYS03 is factory calibrated and provides accurate temperature measurements through several I2C configurable addresses. Operating from a supply voltage ranging between 2.4V and 5.5V and drawing just 5µA Thermo 20 Click board™ is well suited for battery-powered and automotive applications. With an extended operating range from -40°C to +125°C, the TSYS03 provides digital temperature measurements which offer accuracy of ±0.5°C when operating at ambient temperatures between 0°C and 60°C.
The TSYS03 consists of a semiconductor diode as a measuring element, which was integrated into an ASIC. The temperature is obtained from the voltage that drops across the diode, and through an A/D converter with a 16-bit resolution, the output is obtained as a digital value via a configurable I2C interface. The TSYS03 impresses with its high accuracy, the current consumption lower than 5 µA, and low self-heating of max. 0.1 °C.
Thermo 20 Click communicates with MCU using the standard I2C 2-Wire interface with a maximum clock frequency of 1MHz. The standard I2C address is 0x40, but the sensor can also react to a second, alternative I2C address. It is possible to do one-time subsequent writing of an alternative static I2C address. This leads to a wrong memory CRC, but the sensor is still functional. It is also possible to write an alternative I2C address to the sensor during operation. This address is temporally and is overwritten during a software reset or a hardware restart function.
This Click board™ is designed to be operated with both 3.3V and 5V logic voltage levels that can be selected via VCC SEL jumper. This allows for both 3.3V and 5V capable MCUs to use the I2C 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 industrial control, as a replacement of precision RTDs, thermistors, and NTCs, or in any other temperature measurement applications.
On-board modules
Thermo 20 Click is based on the TSYS03, an ultra-compact digital temperature sensor with precise digital output and low power consumption from.
Key Features
Low power consumption, high accuracy, high resolution, low conversion time with precise temperature sensing, 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 20 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 | Power Supply Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
Thermo 20 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | -0.3 | – | 5.5 | V |
Supply Current | – | 5 | – | μA |
Accuracy | -0.5 | – | +0.5 | °C |
Resolution | – | 16 | – | bit |
Operating Temperature Range | -40 | – | +125 | °C |
Software Support
We provide a library for the Thermo 20 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 covers all the necessary functions to control Thermo 20 Click board™. Library performs a standard I2C interface communication.
Key functions:
float thermo20_get_temperature ( void )
– Get temperature data function.void thermo20_soft_reset ( void )
– Soft reset function.void thermo20_start_conversion ( void )
– Start conversion function.
Examples description
The application is composed of three sections :
- System Initialization – Initializes I2C and start to write log.
- Application Initialization – Initialization driver enables – I2C, software reset the device and read the serial number, also write log.
- Application Task – (code snippet) This is an example that demonstrates the use of the Thermo 20 Click board™. Thermo 20 Click board™ can be used to measure temperature. All data logs write on USB UART changes every 3 sec.
void application_task ( ) { thermo20_start_conversion( ); Delay_ms( 100 ); temperature = thermo20_get_temperature( ); FloatToStr( temperature, log_text ); mikrobus_logWrite( " Temperature : ", _LOG_TEXT ); mikrobus_logWrite( log_text, _LOG_TEXT ); mikrobus_logWrite( " C", _LOG_LINE ); mikrobus_logWrite( "-----------------------------", _LOG_LINE ); Delay_ms( 3000 ); }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- I2C
- UART
- Conversions
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.
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.