irthermo3v3  2.0.0.0
Main Page

IrThermo 3V3 click

IrThermo click 3.3V is a contactless temperature measurement device that relies on the accurate thermopile sensor chip, which encompasses both the thermopile sensor element and the ASSP. The ASSP - signal conditioning circuitry features 17bit ADC and powerful DSP which allow high degree of accuracy and wide temperature measurement range. The IrThermo click is equipped with both the 10bit PWM interface and the SMBus/I2C interface.

click Product page


Click library

  • Author : Stefan Ilic
  • Date : Jun 2021.
  • Type : I2C type

Software Support

We provide a library for the IrThermo3V3 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 IrThermo3V3 Click driver.

Standard key functions :

Example key functions :

Example Description

This application collects data from the sensor, and logs the results.

The demo application is composed of two sections :

Application Init

Initializes IrThermo 3V3 Driver.

void application_init ( void ) {
log_cfg_t log_cfg;
irthermo3v3_cfg_t irthermo3v3_cfg;
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info( &logger, " Application Init \r\n " );
log_printf( &logger, "--------------------------------\r\n " );
// Click initialization.
irthermo3v3_cfg_setup( &irthermo3v3_cfg );
IRTHERMO3V3_MAP_MIKROBUS( irthermo3v3_cfg, MIKROBUS_1 );
err_t init_flag = irthermo3v3_init( &irthermo3v3, &irthermo3v3_cfg );
if ( I2C_MASTER_ERROR == init_flag ) {
log_error( &logger, " Application Init Error. " );
log_info( &logger, " Please, run program again... " );
for ( ; ; );
}
log_info( &logger, " Application Task \r\n" );
log_printf( &logger, " --------------------------------\r\n " );
}

Application Task

Reading Ambient and Object Temperature and displaying the value periodically.

void application_task ( void ) {
measured_temperature = irthermo3v3_get_t_ambient( &irthermo3v3 );
object_temperature = irthermo3v3_get_t_object( &irthermo3v3 );
log_printf( &logger, " Ambient Temperature: %.2f\r\n ", measured_temperature );
log_printf( &logger, " Object Temperature: %.2f\r\n ", object_temperature );
log_printf( &logger, " --------------------------------\r\n " );
Delay_ms( 1000 );
}

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.IrThermo3V3

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.


irthermo3v3_get_t_object
float irthermo3v3_get_t_object(irthermo3v3_t *ctx)
Reads Temperature object1 from sensor.
irthermo3v3_init
err_t irthermo3v3_init(irthermo3v3_t *ctx, irthermo3v3_cfg_t *cfg)
IrThermo 3V3 initialization function.
irthermo3v3_cfg_setup
void irthermo3v3_cfg_setup(irthermo3v3_cfg_t *cfg)
IrThermo 3V3 configuration object setup function.
application_task
void application_task(void)
Definition: main.c:65
irthermo3v3_t
IrThermo 3V3 Click context object.
Definition: irthermo3v3.h:89
irthermo3v3_get_t_ambient
float irthermo3v3_get_t_ambient(irthermo3v3_t *ctx)
Reads Temperature ambient from sensor.
IRTHERMO3V3_MAP_MIKROBUS
#define IRTHERMO3V3_MAP_MIKROBUS(cfg, mikrobus)
MikroBUS pin mapping.
Definition: irthermo3v3.h:77
irthermo3v3_cfg_t
IrThermo 3V3 Click configuration object.
Definition: irthermo3v3.h:107
application_init
void application_init(void)
Definition: main.c:30