PIC Lesson: Sensor DHT

February 15th, 2012  Posted at   Lesson PIC

Sensor DHT11

Sensor DHT11 adalah sensor yang dapat mengesan humidity dan suhu. Di atas adalah gambar sensor DHT11 dari DFRobot.

Specification:

  • Operating Humidity Range = 20 to 90% RH
  • Operating Temperature Range = 0 to 50°C
  • Humidity Response Time = 6 to 15s
  • Temperature Response Time = 6 to 30s

Sensor DHT11 menggunakan 1-wire protocol. DHT11 protocol adalah seperti timing diagram di bawah. Microcontroller perlu memberi output low kepada sensor DHT11 sekurang-kurangnya 18ms, kemudian signal high 20-40us. Selepas itu, barulah microcontroller membaca input daripada DHT11. Start bit daripada DHT11 adalah signal low 80us dan signal high 80us. DHT11 akan memberikan 8 byte iaitu 40 bit data. Data ‘0’ adalah signal low selama 50us dan signal high selama 26-28us. Data ‘1’ adalah signal low selama 50us dan signal high selama 70us.

Berikut adalah videonya.

PIC Source Code

23 Responses to “PIC Lesson: Sensor DHT”

  1. Matt says:

    Hello Sir/Madam,
    How are you today?

    I just visited your web site, and know that you are in the business of Electronic products
    You may be happy to find a new reliable source with superior quality & Reasonable prices.

    YX Electronics (HK) CO., LIMITED has gathered together the BEST quality 3D printer accessories, Arduino,Interactive Experiments, Wireless module all over China.
    We offer competitive prices direct from the factory with top quality.
    Welcome to our website: http://www.yx-electronics.com

    More purchase, more discount
    Save time and money to get what you need
    Regards/Matt
    Mail/Skype: matt@yx-electronics.com
    WhatsApp:(+86)18108090598

  2. Bob says:

    Nos puede Proporcionar las librerias:

    “LibraryHardware.h”
    “LibraryUniversalDisplay.h”
    include “LibrarySensor.h”

    Gracias.

Leave a Reply

What is 2 + 13 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)