TOP Contributors

  1. MIKROE (2642 codes)
  2. Alcides Ramos (348 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136225 times)
  2. FAT32 Library (69495 times)
  3. Network Ethernet Library (55711 times)
  4. USB Device Library (45995 times)
  5. Network WiFi Library (41640 times)
  6. FT800 Library (40804 times)
  7. GSM click (28789 times)
  8. PID Library (26333 times)
  9. mikroSDK (26061 times)
  10. microSD click (25147 times)
Libstock prefers package manager

Package Manager

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]

< Back
mikroSDK Library

Thermo 8 click

Rating:

5

Author: MIKROE

Last Updated: 2019-01-15

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Temperature & humidity

Downloaded: 3015 times

Not followed.

License: MIT license  

Thermo 8 click is a very accurate thermometer Click board, with a very high typical measurement accuracy of ±0.25°C, and great data repeatability of ±0.0625°C. Besides measuring the temperature, this Click board offers a set of very useful features, such as the thermostat function, interrupt event and critical temperature alert function.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Thermo 8 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Thermo 8 click" changes.

Do you want to report abuse regarding "Thermo 8 click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

Thermo 8 click

Thermo 8 click

Native view of the Thermo 8 click board

View full image
Thermo 8 click

Thermo 8 click

Front and back view of the Thermo 8 click board.

View full image

Library Description

Library contains generic functions for working with the click board.

Key functions:

  • void thermo8_setResolution(uint8_t rCfg) - Function for setting the measurement resolution.
  • uint8_t thermo8_aleGet() - Function for returning the state of the alert pin.
  • float thermo8_getTemperatue() - Function for reading the temperature.

Examples description

The application is composed of the three sections :

  • System Initialization - Initialize the GPIO, I2C and LOG structures.
  • Application Initialization - Initialize the communication interface and configure the click board.
  • Application Task - Wait for the interrupt pin to be triggered. When the measured temperature breaches the upper or lower limit the temperature value as well as the status of the breach is is shown on the serial port (UART).
void applicationTask()
{
   float T_Data;
   char text[15];
   char alert;
   char alertOn;

   Delay_ms(2000);
   alert = thermo8_aleGet();

   if(alert == 0)
   {
      T_Data  = thermo8_getTemperatue();
      alertOn = thermo8_getAlertstat();
      FloatToStr(T_Data,&text[0]);
      text[5] = 0;
   }

   if(alertOn & THERMO8_TLOWER_REACHED)
   {
      mikrobus_logWrite("Temperature under the low limit: ",_LOG_TEXT);
      mikrobus_logWrite(&text[0],_LOG_TEXT);
      mikrobus_logWrite("°C",_LOG_LINE);
   }

   if(alertOn & THERMO8_TUPPER_REACHED)
   {
      mikrobus_logWrite("Temperature over the high limit: ",_LOG_TEXT);
      mikrobus_logWrite(&text[0],_LOG_TEXT);
      mikrobus_logWrite("°C",_LOG_LINE);
   }
}

Other mikroE Libraries used in the example:

  • Conversions Library
  • C_String Library
  • I2C Library
  • UART Library

Additional notes and information

Depending on the development board you are using, you may need USB UART clickUSB UART 2 clickor 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.

ALSO FROM THIS AUTHOR

Heart Rate 7 click

0

Heart Rate 7 click is an optical biosensor Click board™ which can be used for heart-rate monitoring (HRM). This Click board™ employs a very sensitive analog front-end IC with high dynamic range, which ensures accurate and reliable readings. This analog front-end IC is coupled with the optical front end, which consists of a sensitive photo-diode (PD) and two high brightness green LEDs.

[Learn More]

XBEE click

3

XBee click carries the Xbee® and Zigbee-compliant XB24CZ7PIS-004 module with a PCB antenna from Digi International. The module provides wireless connectivity to end-point devices in ZigBee mesh networks.

[Learn More]