How does it work?
IrThermo 2 Click is based on the TMP007, an infrared thermopile sensor with an integrated Math Engine from Texas Instruments. When there is infrared radiation and the sensor absorbs it, the integrated Math Engine calculates its temperature by comparing it with the temperature of the silicon die. The sensor is factory calibrated, but the user can adjust the calibration coefficients for specific applications. This adjustment could be the correction for the range, field of view, object shape, and environmental factors. Besides the direct reading of the object temperature, Math Engine features programmable alerts, nonvolatile memory (EEPROM) for storing calibration coefficients, and transient correction.
The IrThermo 2 Click uses an industry-standard I2C interface to communicate with the host MCU over the mikroBUS™ socket. One of eight programmable I2C addresses can be set over the ADR1, and ADR0 solder jumpers labeled ADDR SEL and positions 1 and 0. Those jumpers are set to 0 (GND) by default. It also features an active LOW alert output on pin AL that can be used as an alert function if the TMP007 is working in an interrupt mode.
This Click board™ can operate with either 3.3V or 5V logic voltage levels selected via an onboard 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 noncontact temperature sensing, gas concentration, flame detection, and more
On-board modules
TMP007 – infrared thermopile sensor with integrated Math Engine from Texas Instruments
Key Features
High measurement resolution, reasonably sensitive IR sensor, good precision within the specified temperature range, object temperature filtering, EEPROM with factory calibration parameters, 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 IrThermo 2 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 |
PWR SEL | – | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
J1-J1 | ADDR SEL | Right | I2C Address Selection 1/0: Left position 1, Right position 0 |
IrThermo 2 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | – | 5 | V |
Operating Temperature Range | -15 | +25 | +85 | °C |
Temperature Accuracy | – | ±2 | – | °C |
Software Support
We provide a library for the IrThermo 2 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 IrThermo 2 Click driver.
Key functions
-
irthermo2_get_raw_temperature
Function read 16-bit data from raw temperature register and calculate temperature in degrees Celsius. -
irthermo2_get_object_temperature_c
Function read 16-bit data from object temperature register and calculate temperature in degrees Celsius. -
irthermo2_get_object_temperature_f
Function read 16-bit data from object temperature register and calculate temperature in degrees Fahrenheit.
Example Description
IrThermo 2 is a non-contact temperature measurement click. The sensor absorbs the infrared radiation emitted by the target object (withing the sensor’s field of view) and the integrated math engine calculates its temperature by comparing it with the temperature of the silicon die. The measurement range of the sensor is between –40°C to 125°C.
void application_task ( void )
{
temperature = irthermo2_get_object_temperature_c( &irthermo2 );
log_printf( &logger, " Temperature : %.2f Crn", temperature );
log_printf( &logger, "---------------------------rn" );
Delay_ms( 5000 );
}
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.IrThermo2
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. 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.