TOP Contributors

  1. MIKROE (2659 codes)
  2. Alcides Ramos (356 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 (136970 times)
  2. FAT32 Library (70081 times)
  3. Network Ethernet Library (56019 times)
  4. USB Device Library (46340 times)
  5. Network WiFi Library (41958 times)
  6. FT800 Library (41269 times)
  7. GSM click (29051 times)
  8. mikroSDK (26482 times)
  9. PID Library (26447 times)
  10. microSD click (25411 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: 4686 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

Thermo J click

0

Thermo J Click is a temperature measurement click board™, which uses a thermocouple type-J probe, connected to a PPC-SMP-J onboard connector.

[Learn More]

G2C click

5

Go to Cloud (G2C) click is a gateway Click board that provides a simple and reliable connection to Click Cloud solution, a rapid prototyping cloud-based environment, hosted by MikroElektronika.

[Learn More]

Slider 2 click

6

The Slider 2 click is a very accurate potentiometer Click Board, featuring a high-quality mechanical slide-action potentiometer (slider), which in conjunction with the accurate voltage reference IC, provides very precise analog control voltage (CV) at its output.

[Learn More]