TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (351 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 (136646 times)
  2. FAT32 Library (69857 times)
  3. Network Ethernet Library (55899 times)
  4. USB Device Library (46237 times)
  5. Network WiFi Library (41869 times)
  6. FT800 Library (41099 times)
  7. GSM click (28953 times)
  8. PID Library (26403 times)
  9. mikroSDK (26322 times)
  10. microSD click (25334 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
Project

Temperature and Humidity measurement with DHT11 sensor

Rating:

0

Author: Rajendra Bhatt

Last Updated: 2016-02-21

Package Version: 1.0.0.0

Category: Measurement

Downloaded: 4276 times

Followed by: 2 users

License: MIT license  

DHT11 is the most inexpensive sensor for hobbyists purpose to measure relative humidity and temperature in parallel. This project demonstrate how to implement DHT11 1-wire proprietary protocol in the firmware of PIC microcontroller using mikroC Pro for PIC compiler.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Temperature and Humidity measurement with DHT11 sensor" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Temperature and Humidity measurement with DHT11 sensor" changes.

Do you want to report abuse regarding "Temperature and Humidity measurement with DHT11 sensor".

  • Information
  • Comments (5)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Project Blog

Measurement and control of temperature and relative humidity finds applications in numerous areas. These days devices are available which have both temperature and humidity sensors with signal conditioning, ADC, calibration and communication interface all built inside them. The use of such smart sensors greatly simplify the design and reduces the overall cost. While mikroElektronika provides modules for SHT1x sensors which provide accurate measurements of temperature and humidity in digital format, they are still expensive for hobbyists use. This articles discusses the DHT11 sensor which also provides calibrated digital outputs for temperature and humidity but is relatively lot cheaper than the Sensirion sensors. The DHT11 sensor uses a proprietary 1-wire protocol which is implemented here with the PIC16F887 microcontroller to receive the temperature and humidity values from the sensor and display them on a 16×2 character LCD. The code has been tested with UNI-DS6 development board.

DHT11 sensor on breadboard

DHT11 sensor on breadboard

The sensor is plugged into the breadboard and its data output is connected to RA0 pin.

View full image
Output

Output

Temperature and humidity are displayed on a character LCD.

View full image

For full description of the DHT11 protocol and its implementation, visit: Understanding DHT11 protocol


ALSO FROM THIS AUTHOR

LED Marquee using PIC16F1847 and shift registers

0

This project is about constructing a mono-color LED matrix display board that consists 320 LEDs arranged in 8 rows and 40 columns. The heart of this project is PIC16F1847 microcontroller and the firmware is developed using mikroC Pro for PIC compiler.

[Learn More]

MikroC Pro for PIC driver routine for 74HC595 based serial LCD interface

5

Contains library routines for 3-wire LCD interface based on 74HC595 shift register. More details are provided in the attached ReadMe document or posted at http://embedded-lab.com/blog/?p=30

[Learn More]

Car's battery voltage and charging system monitor

5

This project is about making a simple electronic voltage monitor system for car’s battery and its charging system. It plugs into the car’s cigarette lighter receptacle and displays the instantaneous output voltage across the battery terminals on a 4-digit seven segment LED display.

[Learn More]