Measure surface temperature within a range of -20 to +100°C without physically touching the object
A
A
Hardware Overview
How does it work?
IR Sense 5 Click is based on the ZTP-148SRC1, a thermopile IR sensor from Amphenol. This infrared thermopile sensor is designed for non-contact surface temperature measurement, offering a stable response to DC radiation. The ZTP-148SRC1 can measure temperatures from -20 to +100°C, featuring an active area of 0.7x0.7mm² and a typical field of view (FoV) of 85 degrees. The sensor consists of thermo-elements, a flat IR filter, and a thermistor for temperature compensation, all housed in a hermetically sealed TO package. Its typical applications include human thermometry, non-contact temperature measurement, home appliances such as air conditioners, occupancy detection, HVAC systems, automotive applications, and various other uses. As mentioned, the ZTP-148SRC1 features a high-sensitivity thermopile
with a rapid response time and an integrated thermistor for precise ambient temperature compensation. As an analog-output sensor, it utilizes the OPA2365AIDR OpAmp to amplify the thermopile's analog output voltage. This amplified signal is then digitized via the I2C interface using the MCP3221 analog-to-digital converter. This board also has an output offset selection achieved via the VREF SEL jumper. Selection is made between a fixed offset value of 200mV, generated by a voltage divider (R11 and R13 resistors) or from the ZTP-148SRC1's thermistor output. This offset is crucial for signal conditioning, ensuring the sensor's output is within the optimal range for further processing and improving measurement accuracy by compensating for ambient temperature variations. Besides, the thermistor's value can be
monitored through the AN pin of the mikroBUS™ socket. The board also includes three test points for signals from the ZTP-148SRC1: the raw signal from the thermopile on TP2, the selected voltage reference at TP3, and the amplified signal from the OPA2365AIDR on TP1. These test points allow consistent prototyping and testing. This Click board™ can operate with either 3.3V or 5V logic voltage levels selected via the VCC SEL jumper. This way, both 3.3V and 5V capable MCUs can use the communication lines properly. Also, this 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.
Features overview
Development board
EasyPIC PRO v8 is a development board specially designed for the needs of rapid development of embedded applications. It supports many high pin count 8-bit PIC microcontrollers from Microchip, regardless of their number of pins, and a broad set of unique functions, such as the first-ever embedded debugger/programmer over WiFi. The development board is well organized and designed so that the end-user has all the necessary elements, such as switches, buttons, indicators, connectors, and others, in one place. Thanks to innovative manufacturing technology, EasyPIC PRO v8 provides a fluid and immersive working experience, allowing access anywhere and under
any circumstances at any time. Each part of the EasyPIC PRO v8 development board contains the components necessary for the most efficient operation of the same board. In addition to the advanced integrated CODEGRIP programmer/debugger module, which offers many valuable programming/debugging options and seamless integration with the Mikroe software environment, the board also includes a clean and regulated power supply module for the development board. It can use a wide range of external power sources, including a battery, an external 12V power supply, and a power source via the USB Type-C (USB-C) connector.
Communication options such as USB-UART, USB DEVICE, and Ethernet are also included, including the well-established mikroBUS™ standard, a standardized socket for the MCU card (SiBRAIN standard), and two display options (graphical and character-based LCD). EasyPIC PRO v8 is an integral part of the Mikroe ecosystem for rapid development. Natively supported by Mikroe software tools, it covers many aspects of prototyping and development thanks to a considerable number of different Click boards™ (over a thousand boards), the number of which is growing every day.
Microcontroller Overview
MCU Card / MCU

Type
8th Generation
Architecture
PIC
MCU Memory (KB)
64
Silicon Vendor
Microchip
Pin count
100
RAM (Bytes)
3862
Used MCU Pins
mikroBUS™ mapper
Take a closer look
Click board™ Schematic

Step by step
Project assembly
Software Support
Library Description
This library contains API for IR Sense 5 Click driver.
Key functions:
irsense5_get_obj_temp- This function reads and calculate object temperature in degree Celsius [degC].irsense5_get_amb_temp- This function reads and calculate ambient temperature in degree Celsius [degC].irsense5_read_raw_adc_thm- This function reads the thermistor raw ADC value.
Open Source
Code example
The complete application code and a ready-to-use project are available through the NECTO Studio Package Manager for direct installation in the NECTO Studio. The application code can also be found on the MIKROE GitHub account.
/*!
* @file main.c
* @brief IR Sense 5 Click Example.
*
* # Description
* This library contains API for the IR Sense 5 Click driver
* for measuring ambient and object temperature.
*
* The demo application is composed of two sections :
*
* ## Application Init
* The initialization of the I2C and ADC module and log UART.
*
* ## Application Task
* The demo application measures ambient and object temperature in degrees Celsius.
* Results are being sent to the UART Terminal, where you can track their changes.
*
* @author Nenad Filipovic
*
*/
#include "board.h"
#include "log.h"
#include "irsense5.h"
static irsense5_t irsense5; /**< IR Sense 5 Click driver object. */
static log_t logger; /**< Logger object. */
void application_init ( void )
{
log_cfg_t log_cfg; /**< Logger config object. */
irsense5_cfg_t irsense5_cfg; /**< Click config object. */
/**
* Logger initialization.
* Default baud rate: 115200
* Default log level: LOG_LEVEL_DEBUG
* @note If USB_UART_RX and USB_UART_TX
* are defined as HAL_PIN_NC, you will
* need to define them manually for log to work.
* See @b LOG_MAP_USB_UART macro definition for detailed explanation.
*/
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info( &logger, " Application Init " );
// Click initialization.
irsense5_cfg_setup( &irsense5_cfg );
IRSENSE5_MAP_MIKROBUS( irsense5_cfg, MIKROBUS_1 );
err_t init_flag = irsense5_init( &irsense5, &irsense5_cfg );
if ( ( ADC_ERROR == init_flag ) || ( I2C_MASTER_ERROR == init_flag ) )
{
log_error( &logger, " Communication init." );
for ( ; ; );
}
log_info( &logger, " Application Task " );
}
void application_task ( void )
{
float temperature = 0;
if ( IRSENSE5_OK == irsense5_get_amb_temp ( &irsense5, &temperature ) )
{
log_printf( &logger, " Ambient Temperature: %.2f [degC]\r\n", temperature );
Delay_ms ( 1000 );
}
if ( IRSENSE5_OK == irsense5_get_obj_temp ( &irsense5, &temperature ) )
{
log_printf( &logger, " Object Temperature: %.2f [degC]\r\n\n", temperature );
Delay_ms ( 1000 );
}
}
int main ( void )
{
/* Do not remove this line or clock might not be set correctly. */
#ifdef PREINIT_SUPPORTED
preinit();
#endif
application_init( );
for ( ; ; )
{
application_task( );
}
return 0;
}
// ------------------------------------------------------------------------ END
Additional Support
Resources
Category:Temperature & humidity
































