TOP Contributors

  1. MIKROE (2642 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 (136218 times)
  2. FAT32 Library (69480 times)
  3. Network Ethernet Library (55705 times)
  4. USB Device Library (45989 times)
  5. Network WiFi Library (41639 times)
  6. FT800 Library (40781 times)
  7. GSM click (28788 times)
  8. PID Library (26327 times)
  9. mikroSDK (26053 times)
  10. microSD click (25139 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

Temp-Hum 7 click

Rating:

6

Author: MIKROE

Last Updated: 2018-12-07

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Temperature & humidity

Downloaded: 3312 times

Not followed.

License: MIT license  

Temp&amp;Hum 7 click is a Click board which is perfectly suited for measuring the relative humidity (RH) and temperature.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Temp-Hum 7 click" changes.

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

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

Temp-Hum 7 click

Temp-Hum 7 click

Native view of the Temp-Hum 7 Click board.

View full image
Temp-Hum 7 click

Temp-Hum 7 click

Front and back view of the Temp-Hum 7 Click board.

View full image

Library Description

The library contains functions for reading register content and setting register content Library contains functions for reading the electronic serial number and firmware revision Library contains functions for reading temperature (C), humidity(%RH) and heater current (mA) values Library contains a function for device reset.

Key functions:

  • void temphum7_setData( uint8_t command_, uint8_t dataIn_ ); - sets one byte of register data
  • float temphum7_getRelativeHumidity( uint8_t mode_ ) - performs relative humidity measurement and calculates relative humidity
  • float temphum7_getTemperature ( uint8_t mode_ ) - performs temperature measurement and calculates the temperature

Examples description

The application is composed of the three sections :

  • System Initialization - Initializes I2C and LOG
  • Application Initialization - Initializes I2C driver, and sets 12-bit resolution for measurements
  • Application Task - Calculates and Logs temperature and relative humidity
void applicationTask()
{
    mikrobus_logWrite( " ", _LOG_LINE );
    
    temperature = temphum7_getTemperature( _TEMPHUM7_HOLD_MASTER_MODE );
    FloatToStr( temperature, text );
    mikrobus_logWrite( " > > > temperature        : ", _LOG_TEXT );
    mikrobus_logWrite( text, _LOG_TEXT );
    mikrobus_logWrite( " C", _LOG_LINE );

    relativeHumidity = temphum7_getRelativeHumidity( _TEMPHUM7_HOLD_MASTER_MODE );
    FloatToStr( relativeHumidity, text );
    mikrobus_logWrite( " > > > relative humidity  : ", _LOG_TEXT );
    mikrobus_logWrite( text, _LOG_TEXT );
    mikrobus_logWrite( " %RH", _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 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

WebcamSurveillance

10

This project shows how you can build your own simple surveillance system, using Network Ethernet Internal Library.

[Learn More]

Thermo 4 click

0

THERMO 4 click carries the LM75A digital temperature sensor and thermal watchdog. The sensor has the range from −55 °C to +125 °C.

[Learn More]

Heart Rate click

0

Heart Rate click is a heart rate monitoring and pulse oximetry measuring Click board™. It features an advanced oximeter and heart rate monitoring sensor, which relies on two integrated LEDs, a photosensitive element, and a very accurate and advanced low noise analog front end, to provide clean and accurate readings.

[Learn More]