We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: MIKROE
Last Updated: 2020-09-15
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: Temperature & humidity
Downloaded: 1932 times
Not followed.
License: MIT license
Surface temp 2 Click is a compact add-on board that contains a high accuracy temperature sensor offering breakthrough performance over a wide industrial temperature range. This board features the ADT7422, a 16-bit I2C configurable temperature sensor for vital signs monitoring applications from Analog Devices.
Do you want to subscribe in order to receive notifications regarding "Surface Temp 2 click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "Surface Temp 2 click" changes.
Do you want to report abuse regarding "Surface Temp 2 click".
Library Description
The library covers all the necessary functions that enables the usage of the Surface temp 2 Click board. User can read temperature, set over temperature, under temperature, critical temperature threshold limits and hysteresis, apply different settings and perform software reset.
Key functions:
float surfacetemp2_get_temperature ( );
- Function is used to read and calculate temperatre value.uint8_t surfacetemp2_setup ( uint8_t setup );
- Function is used to apply the desired settings.void surfacetemp2_set_hys_val ( uint8_t hys_val );
- Function is used to set hysteresis.Examples description
The application is composed of three sections :
void application_task ( )
{
temperature = surfacetemp2_get_temperature( );
FloatToStr( temperature, log_txt );
mikrobus_logWrite( " Temperature : ", _LOG_TEXT );
mikrobus_logWrite( log_txt, _LOG_TEXT );
mikrobus_logWrite( " °C", _LOG_LINE );
Delay_ms( 2000 );
}
Other mikroE Libraries used in the example:
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.