TOP Contributors

  1. MIKROE (2662 codes)
  2. Alcides Ramos (357 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 (137026 times)
  2. FAT32 Library (70152 times)
  3. Network Ethernet Library (56032 times)
  4. USB Device Library (46355 times)
  5. Network WiFi Library (41970 times)
  6. FT800 Library (41297 times)
  7. GSM click (29068 times)
  8. mikroSDK (26503 times)
  9. PID Library (26452 times)
  10. microSD click (25432 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: 3093 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

BT Audio 2 click

0

BT Audio 2 Click is Bluetooth audio stream add on board based on BM62 module from Microchip. It's a Stereo Audio module which is fully qualified Bluetooth v5.0 dual-mode (BDR/EDR/BLE) to be added in any wireless audio and voice application. With features like high resolution up to 24-bit, 96 kHz audio data format, Bluetooth Low Energy data rate up to 1Mbits/s, connection of two hosts with HFP/A2DP profiles simultaneously, seamless serial data over UART interface and many more it's perfect solution for applications like portable speakers and headsets.

[Learn More]

LightRanger 4 click

0

Light Ranger 4 click is an accurate distance measurement Click board based on a ToF (Time of Flight) measurement principle.

[Learn More]

SPIRIT click

0

SPIRIT click carries the SP1ML 868MHz ultra low-power RF module. The board is designed to use 3.3V power supply and 3.3V or 5V I/O voltage levels. It communicates with the target MCU over UART interface, with additional functionality provided by the following pins on the mikroBUS™ line: PWM, RST, CS.

[Learn More]