TOP Contributors

  1. MIKROE (2762 codes)
  2. Alcides Ramos (374 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 (139252 times)
  2. FAT32 Library (71751 times)
  3. Network Ethernet Library (57122 times)
  4. USB Device Library (47430 times)
  5. Network WiFi Library (43082 times)
  6. FT800 Library (42403 times)
  7. GSM click (29835 times)
  8. mikroSDK (28078 times)
  9. PID Library (26885 times)
  10. microSD click (26198 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

Temperature measurement using TC74 (Microchip) thermal sensor and StartUSB for PIC

0

This project describes how to interface Microchip's TC74 sensor with a PIC microcontroller to measure ambient temperature. The code is written in mikroC Pro for PIC and is illustrated with StartUSB for PIC board.

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

Single chip (PIC12F683) temperature data logger

15

It is a very simple data logger project based on PIC12F683 microcontroller. The microcontroller reads temperature values from a temperature sensor on a regular interval basis and stores them into its internal EEPROM memory. http://embedded-lab.com/blog/?p=2236

[Learn More]