TOP Contributors

  1. MIKROE (2752 codes)
  2. Alcides Ramos (372 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (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 (139073 times)
  2. FAT32 Library (71595 times)
  3. Network Ethernet Library (56989 times)
  4. USB Device Library (47330 times)
  5. Network WiFi Library (43006 times)
  6. FT800 Library (42297 times)
  7. GSM click (29777 times)
  8. mikroSDK (27894 times)
  9. PID Library (26859 times)
  10. microSD click (26130 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: 4297 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

Learn how to put a PIC microcontroller to sleep

0

This is actually an experimental tutorial that shows how to put a PIC microcontroller into Sleep mode to lower the power consumption in battery-powered applications. I used PIC16F628A and MikroC Pro for PIC for illustration.

[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]

PIC based digital capacitance meter

0

Capacitors are one of the most common passive electrical components that are extensively used in all kinds of electronic circuits. This project describes a technique of building a digital capacitance meter using the PIC16F628A microcontroller. The firmware is written in mikroC Pro for PIC compiler.

[Learn More]