TOP Contributors

  1. MIKROE (2650 codes)
  2. Alcides Ramos (350 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 (136538 times)
  2. FAT32 Library (69734 times)
  3. Network Ethernet Library (55842 times)
  4. USB Device Library (46178 times)
  5. Network WiFi Library (41801 times)
  6. FT800 Library (40989 times)
  7. GSM click (28922 times)
  8. PID Library (26384 times)
  9. mikroSDK (26281 times)
  10. microSD click (25298 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 7 click

Rating:

5

Author: MIKROE

Last Updated: 2018-04-05

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Temperature & humidity

Downloaded: 4630 times

Not followed.

License: MIT license  

Thermo 7 click is a Click board equipped with the sensor IC, which can digitize temperature measurements between -55°C and +125°C so that the temperature measurement data can be processed by the host MCU.

No Abuse Reported

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

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

Do you want to report abuse regarding "Thermo 7 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 7 click

Thermo 7 click

Native view of the Thermo 7 click board.

View full image
Thermo 7 click

Thermo 7 click

Front and back view of the Thermo 7 click board.

View full image

Library Description

The library initializes and defines I2C bus drivers and driver functions that offer a choice for writing data in registers and reading data from registers. The library offers the possibility of setting the upper and lower temperature limits, and the main thing is reading the ambient temperature.ADC resolution can be set to 9bit, 10bit, 11bit or 12bit, with an accuracy of 0.5 C, 0.25 C, 0.125 C or 0.0625 C. The user can adjust the state and behavior of interrupt pins in the set modes. Modes that can be set are Interrupt mode and Comparator mode..

Key functions:

float thermo7_readAmbientTemperature() - Function reads ambient temperature

void thermo7_setConfiguration(uint8_t configuration) - Function for configuration chip and measurement

void thermo7_setResolution(uint8_t resolution) - Function sets ADC resolution measurement
 

Examples Description

The application is composed of three sections:

  • System Initialization - Initializes I2C module and sets INT pin as INPUT.
  • Application Initialization -  Initializes driver init and configuration chip and measurement resolutions.
  • Application Task - (code snippet) - Reads ambient temperature and logs to USBUART every 1 second.
void applicationTask()
{
 AmbientTemperature = thermo7_readAmbientTemperature();
 FloatToStr( AmbientTemperature, tempText );
 mikrobus_logWrite( " Ambient temperature : ", _LOG_TEXT );
 mikrobus_logWrite( tempText, _LOG_TEXT );
 mikrobus_logWrite( " °C", _LOG_LINE );
 Delay_ms( 1000 );
}

Other mikroE Libraries used in the example:

  • I2C
  • UART
  • Conversions

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.

ALSO FROM THIS AUTHOR

EEPROM 2 Click

5

EEPROM 2 click carries ST’s M95M02 DIP-8 socket EEPROM chip with 256 KB of memory. The board communicates with the target MCU through the mikroBUS SPI interface (CS, SCK, MISO and MOSI pins) with speeds up to 5 MHz. This example demonstrates how the EEPROM 2 click works.

[Learn More]

Hydrogen click

0

Hydrogen click carries an MQ-8 sensor for hydrogen (H2). The gas sensing layer on the sensor unit is made of tin dioxide (SnO2), which has lower conductivity in clean air.

[Learn More]

Oximeter click

0

Oximeter click is a versatile photometric Click board�, perfectly suited for measuring the blood oxygen saturation. It employs ADPD105, a highly configurable photometric front end (AFE) device from Analog Devices.

[Learn More]