TOP Contributors

  1. MIKROE (2641 codes)
  2. Alcides Ramos (347 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 (136216 times)
  2. FAT32 Library (69477 times)
  3. Network Ethernet Library (55703 times)
  4. USB Device Library (45989 times)
  5. Network WiFi Library (41638 times)
  6. FT800 Library (40779 times)
  7. GSM click (28787 times)
  8. PID Library (26327 times)
  9. mikroSDK (26051 times)
  10. microSD click (25138 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 11 click

Rating:

5

Author: MIKROE

Last Updated: 2019-06-10

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Temperature & humidity

Downloaded: 3329 times

Not followed.

License: MIT license  

Thermo 11 Click is a Click board equipped with the sensor IC, which can digitize temperature measurements between -55°C and +150°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 11 click" changes.

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

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

Thermo 11 Click

Native view of the Thermo 11 Click board.

View full image
Thermo 11 Click

Thermo 11 Click

Front and back view of the Thermo 11 Click board.

View full image

Library Description

This library allows user to get ambient temperature value in the range from -256 to +255.9921875 Celsius degrees. The user also can perform the desired device configurations by using this library. The device control is allowed by using the I2C serial interface. For more details check documentation.

Key functions:

  • T_THERMO11_RETVAL thermo11_writeReg( uint8_t regAddr, uint16_t dataIn ) - This function writes a 16bit data to the desired register.
  • float thermo11_getTemp( uint8_t tempAddr ) - This function returns the temperature value converted to the Celsius degrees.
  • T_THERMO11_RETVAL thermo11_setTemp( uint8_t tempAddr, float tempValue ) - This function allows user to set the desired temperature register on the desired value.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes peripherals and pins.
  • Application Initialization - Initializes I2C serial interface and performs a software reset command and device configurations.
  • Application Task - (code snippet) - Waits until data was ready and conversion cycle was done, and then reads the temperature and status data. The both data will be sent to the uart terminal with the limit status messages. Note : The temperature that can be measured or written to the registers is in range from -256 to 255.9921875 Celsius degrees.
void applicationTask()
{
    responseCheck = thermo11_getINT();
    while (responseCheck == _THERMO11_FLAG_IS_CLEARED)
    {
        responseCheck = thermo11_getINT();
    }

    temperature = thermo11_getTemp( _THERMO11_TEMPERATURE_REG );
    responseCheck = thermo11_checkStatus();
    
    FloatToStr( temperature, text );
    floatCut();
    mikrobus_logWrite( "* Temperature is ", _LOG_TEXT );
    mikrobus_logWrite( text, _LOG_TEXT );
    mikrobus_logWrite( logUnit, _LOG_LINE );
    
    if ((responseCheck & _THERMO11_HIGH_ALERT_FLAG) != _THERMO11_FLAG_IS_CLEARED)
    {
        mikrobus_logWrite( "* HIGH limit detection!", _LOG_LINE );
    }
    if ((responseCheck & _THERMO11_LOW_ALERT_FLAG) != _THERMO11_FLAG_IS_CLEARED)
    {
        mikrobus_logWrite( "* LOW limit detection!", _LOG_LINE );
    }
    mikrobus_logWrite( "********************************************", _LOG_LINE );
}

Additional Functions :

  • floatCut - Allows to real values be rounded on two decimal places.

Other mikroE Libraries used in the example:

  • Conversions
  • I2C
  • UART

Additional notes and informations

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

Diff Press 3 click

0

Diff Press 3 Click is a compact add-on board that can measure differential pressure. It features the 2513130810401, a WSEN-PDUS differential pressure sensor from Würth Elektronik. The sensor is MEMS based and uses a piezo-resistive sensing principle. It is a fully calibrated pressure sensor with 15-bit digital and 11-bit analog outputs. In addition to pressure measurement, the 2513130810401 WSEN-PDUS sensor also has an embedded temperature sensor.

[Learn More]

STSPIN220 click

5

STSPIN220 click is a stepper motor driver with the PWM current control and selectable microstepping up to 256 microsteps. It is based on the STSPIN220, a low voltage stepper motor driver from STSPIN2 series.

[Learn More]

4Dot-Matrix R click

0

4Dot-Matrix R click is a display device Click board™, which contains a four-digit dot matrix display module, labeled as SLO2016.

[Learn More]