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 (137040 times)
  2. FAT32 Library (70167 times)
  3. Network Ethernet Library (56042 times)
  4. USB Device Library (46364 times)
  5. Network WiFi Library (41981 times)
  6. FT800 Library (41311 times)
  7. GSM click (29080 times)
  8. mikroSDK (26519 times)
  9. PID Library (26454 times)
  10. microSD click (25449 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: 3401 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

Qi RX click

5

Qi RX Click is a compact add-on board made for the purpose of wireless power transfer. This board features the PIC16F15313, a general-purpose 8-bit MCU that makes a flexible, low-cost alternative to the wireless charging solutions based on ASICs from Microchip.

[Learn More]

CAN FD 5 click

0

CAN FD 5 Click is a compact add-on board that contains CAN transceiver that supports both CAN and CAN FD protocols.

[Learn More]

Proximity click

0

Simple demonstration of using VCNL4010 Proximity sensor chip. Example will detect if there is close object to the sensor. It will detect close objects up to 20cm. Also it has light photo pin diode, which will allow user to measure ambient light value.

[Learn More]