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 (136649 times)
  2. FAT32 Library (69858 times)
  3. Network Ethernet Library (55899 times)
  4. USB Device Library (46237 times)
  5. Network WiFi Library (41869 times)
  6. FT800 Library (41100 times)
  7. GSM click (28954 times)
  8. PID Library (26403 times)
  9. mikroSDK (26323 times)
  10. microSD click (25335 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

DIY heart beat rate meter using clicker2 for PIC18FJ and Easy Pulse mikro

0

This project is about building a stand-alone pulse meter using Easy Pulse mikro and mikroElektronika‘s clicker 2 for PIC18FJ board. An OLED W click board is also used to display the pulse rate in beats per minute (BPM).

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

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]