remotetemp  2.0.0.0
Main Page

Remote Temp click

Remote Temp Click is a temperature sensing Click boardâ„¢, which features the EMC1833 from Microchip, a specifically designed IC, capable of measuring remote temperature. This option makes Remote Temp click well-suited for monitoring the temperature of a CPU, GPU or FPGA, where the BJT model junction can be a substrate PNP or NPN.

click Product page


Click library

  • Author : MikroE Team
  • Date : Dec 2019.
  • Type : I2C type

Software Support

We provide a library for the RemoteTemp 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.

Library Description

This library contains API for RemoteTemp Click driver.

Standard key functions :

  • Config Object Initialization function.

    void remotetemp_cfg_setup ( remotetemp_cfg_t *cfg );

  • Initialization function.

    REMOTETEMP_RETVAL remotetemp_init ( remotetemp_t *ctx, remotetemp_cfg_t *cfg );

  • Click Default Configuration function.

    void remotetemp_default_cfg ( remotetemp_t *ctx );

Example key functions :

Examples Description

This application reads remote temperature data.

The demo application is composed of two sections :

Application Init

Initializes I2C driver, sets range, configures device and sets threshold values.

void application_init ( void )
{
log_cfg_t log_cfg;
LOG_MAP_USB_UART( log_cfg );
log_init( &logger, &log_cfg );
log_info( &logger, "---- Application Init ----" );
// Click initialization.
REMOTETEMP_MAP_MIKROBUS( cfg, MIKROBUS_1 );
remotetemp_init( &remotetemp, &cfg );
Delay_ms ( 300 );
remotetemp_default_cfg( &remotetemp );
log_printf( &logger, "> app init done \r\n" );
}

Application Task

Executes all 'remotetemp_aux_getXxx()' functions.

void application_task ( void )
{
remotetemp_aux_get_fault( &remotetemp );
Delay_ms ( 500 );
}

The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.

Other mikroE Libraries used in the example:

  • MikroSDK.Board
  • MikroSDK.Log
  • Click.RemoteTemp

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. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.


remotetemp_aux_get_high_limit_status
void remotetemp_aux_get_high_limit_status(remotetemp_t *ctx)
Definition: main.c:47
remotetemp_set_range
uint8_t remotetemp_set_range(remotetemp_t *ctx, uint8_t range_setting)
Setting temperature range.
remotetemp_aux_get_low_limit_status
void remotetemp_aux_get_low_limit_status(remotetemp_t *ctx)
Definition: main.c:80
application_task
void application_task(void)
Definition: main.c:203
remotetemp_aux_get_fault
void remotetemp_aux_get_fault(remotetemp_t *ctx)
Definition: main.c:33
remotetemp_default_cfg
void remotetemp_default_cfg(remotetemp_t *ctx)
Click Default Configuration function.
REMOTETEMP_MAP_MIKROBUS
#define REMOTETEMP_MAP_MIKROBUS(cfg, mikrobus)
Definition: remotetemp.h:66
remotetemp_aux_get_hottest_status
void remotetemp_aux_get_hottest_status(remotetemp_t *ctx)
Definition: main.c:146
remotetemp_cfg_t
Click configuration structure definition.
Definition: remotetemp.h:231
application_init
void application_init(void)
Definition: main.c:174
remotetemp_aux_get_therm_limit_status
void remotetemp_aux_get_therm_limit_status(remotetemp_t *ctx)
Definition: main.c:113
remotetemp_cfg_setup
void remotetemp_cfg_setup(remotetemp_cfg_t *cfg)
Config Object Initialization function.
remotetemp_init
REMOTETEMP_RETVAL remotetemp_init(remotetemp_t *ctx, remotetemp_cfg_t *cfg)
Initialization function.
REMOTETEMP_RANGE_0_127
#define REMOTETEMP_RANGE_0_127
Definition: remotetemp.h:99