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: 2018-08-09
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: Optical
Downloaded: 3754 times
Not followed.
License: MIT license
IrThermo 3 click is a device which allows contactless measurement of the object temperature.
Do you want to subscribe in order to receive notifications regarding "IrThermo 3 click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "IrThermo 3 click" changes.
Do you want to report abuse regarding "IrThermo 3 click".
Library Description
The library performs IR and temperature measurement. The sensor measures the temperature of the detected object (body) and measures the ambient temperature. For more details, see the documentation.
Key functions :
void irthermo3_init()
- Function for initialization chip float irthermo3_getAmbientTemperature()
- Function for reading Ambient temperaturefloat irthermo3_getObjectTemperature()
- Function for read Object temperatureExample description
The application is composed of three sections :
void applicationTask()
{
ambientTemp = irthermo3_getAmbientTemperature();
mikrobus_logWrite(" Ambient temperature : ",_LOG_TEXT);
FloatToStr(ambientTemp, demoText);
mikrobus_logWrite(demoText,_LOG_LINE);
objectTemp = irthermo3_getObjectTemperature();
mikrobus_logWrite(" Object temperature :",_LOG_TEXT);
FloatToStr(objectTemp, demoText);
mikrobus_logWrite(demoText, _LOG_LINE);
mikrobus_logWrite(" ",_LOG_LINE);
Delay_ms(1000);
}
Other mikroE Libraries used in the example:
Additional notes and information
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.