How does it work?
Thermo 22 Click as its foundation uses the TMP75C, a digital temperature sensor optimal for thermal management and thermal protection applications from Texas Instruments. This temperature sensor is characterized by high accuracy; temperature range of 0°C to +70°C provides typical ±0.25°C accuracy. The temperature sensing device for the TMP75C is the chip itself. A bipolar junction transistor inside the chip is used in a band-gap configuration to produce a voltage proportional to the chip temperature. The voltage is digitized and converted to a 12-bit temperature result in degrees Celsius, with a resolution of 0.0625°C.
The default operational mode of the TMP75C is Continuous-Conversion mode (CC), where the ADC performs continuous temperature conversions and stores each result to the temperature register, overwriting the result from the previous conversion. After the Power-Up cycle, the TMP75C immediately starts a conversion. Alongside CC mode, it also has Shutdown and One-shot modes, which reduces power consumption in the TMP75C when continuous temperature monitoring is not required, typically less than 0.3μA.
Thermo 22 Click communicates with MCU using the standard I2C 2-Wire interface to read data and configure settings. Besides, it also allows the choice of the least significant bit of its I2C slave address by positioning the SMD jumpers labeled as ADDR SEL to an appropriate position marked as 0 and 1. This way, the TMP75C provides the opportunity of the eight possible different I2C addresses by positioning the SMD jumper to an appropriate position. In addition to I2C communication, it also uses an interrupt pin routed to the INT pin of the mikroBUS™ socket, representing the programmable temperature limit feature and alert that allows the sensor to operate as a stand-alone thermostat or an overtemperature alarm for system shutdown.
This Click board™ can be operated only with a 3.3V logic voltage level. The board must perform appropriate logic voltage level conversion before using MCUs with different logic levels. However, the Click board™ comes equipped with a library containing 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
TMP75C – digital temperature sensor from Texas Instruments
Key Features
Low power consumption, high precision, overtemperature alert with programmable trip values, shutdown and one-shot mode, high accuracy, and more
Interface
I2C
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
S (28.6 x 25.4 mm)
Input Voltage
3.3V
Pinout diagram
This table shows how the pinout on Thermo 22 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-JP3 | ADDR SEL | Left | I2C Address Selection 1/0: Left position 1, Right position 0 |
Thermo 22 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | – | 3.3 | – | V |
Temperature Accuracy | – | ±0.25 | ±1 | °C |
Temperature Resolution | – | 0.0625 | – | °C |
Operating Temperature Range | -55 | +25 | +120 | °C |
Software Support
We provide a library for the Thermo 22 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 22 Click driver.
Key functions
-
thermo22_read_temperature
This function reads the temperature data in Celsius. -
thermo22_set_temperature_high_limit
This function sets the temperature high limit at which the overtemperature alert flag is being set. -
thermo22_get_int_pin
This function returns the INT pin logic state which indicates the overtemperature alert.
Example Description
This example demonstrates the use of Thermo 22 Click board™ by reading and displaying the temperature measurements.
void application_task ( void )
{
float temperature;
if ( THERMO22_OK == thermo22_read_temperature ( &thermo22, &temperature ) )
{
log_printf ( &logger, " Temperature: %.2f C rnn", temperature );
if ( !thermo22_get_int_pin ( &thermo22 ) )
{
log_printf ( &logger, " Over temperature alert! rnn" );
}
Delay_ms ( 200 );
}
}
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.Thermo22
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.