How does it work?
Thermo 29 Click is based on the TMP126, a digital output temperature sensor from Texas Instruments with increased reliability and improved accuracy specifications optimal for thermal management and protection applications. The TMP126 consists of an internal thermal BJT (factory calibrated on a NIST traceable setup), a high-resolution 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 14-bit temperature result in degrees Celsius, giving a fully calibrated digital output with outstanding accuracy of up to ±0.25°C and temperature resolution of 0.03125°C per LSB, typical over a temperature range of 20°C to 30°C.
This Click board™ communicates with MCU using a 3-wire SPI-compatible interface with a maximum frequency of 10MHz, for data transfer and configuration of the TMP126. Using the Mode bit in the configuration register, the TMP126 can be configured to operate in various conversion modes, including continuous, one-shot, and shutdown modes. These modes provide flexibility to use the board in the most power-efficient way necessary for the intended application.
The TMP126 also includes advanced features for increased reliability in harsh environments. These include an optional CRC checksum for data integrity, programmable alert limits, a temperature slew rate warning, and an enhanced operating temperature range. An alarm (interrupt) signal, marked as ALR and routed to the interrupt pin of the mikroBUS™ socket, is alarming when a specific temperature event occurs that depends on the value of the temperature reading relative to programmable limits. In addition to the ALR pin, this function can be visually identified by a red LED marked as ALERT.
This Click board™ can operate with either 3.3V or 5V logic voltage levels selected via the VCC 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 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 portable electronics and industrial, consumer, and environmental applications
On-board modules
TMP126 – digital output temperature sensor from Texas Instruments
Key Features
High accuracy, broad temperature range, high resolution, SPI interface, fast measurement intervals with no self-heating, advanced features for increased reliability, programmable alert, factory-calibrated, low power consumption, and more
Interface
SPI
Feature
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 29 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 |
LD2 | ALERT | – | Alert LED Indicator |
JP1 | VCC SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
Thermo 29 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | – | 5 | V |
Temperature Accuracy | -0.3 | – | 0.3 | deg |
Temperature Resolution | – | 0.03125 | – | °C/LSB |
Temperature Range | -20 | +25 | +85 | °C |
Software Support
We provide a library for the Thermo 29 Click as well as a demo application (example), developed using Mikroe compilers. The demo can run on all the main Mikroe development boards.
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 29 Click driver.
Key functions
-
thermo29_read_unique_id
This function reads the device unique ID words (6 bytes in total). -
thermo29_get_alert_pin
This function returns the alert pin logic state. -
thermo29_read_temperature
This function reads the temperature measurement in degrees Celsius.
Example Description
This example demonstrates the use of Thermo 29 Click board™ by reading and displaying the temperature measurements.
void application_task ( void )
{
float temperature;
// Wait for the data ready alert flag
while ( thermo29_get_alert_pin ( &thermo29 ) );
if ( ( THERMO29_OK == thermo29_clear_alert_status ( &thermo29 ) ) &&
( THERMO29_OK == thermo29_read_temperature ( &thermo29, &temperature ) ) )
{
log_printf ( &logger, " Temperature: %.2f degCrnn", temperature );
}
}
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.Thermo29
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 Mikroe compilers.
mikroSDK
This Click board™ is supported with mikroSDK – Mikroe Software Development Kit, which needs to 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.