بازگشت

این کالا را با دوستان خود به اشتراک بگذارید
درصورت نیاز به اطلاعات بیشتر و یا سفارش پروژه و دستگاه سفارشی با شماره پشتیبانی سایت تماس حاصل نمایید. تلفن تماس 09124818264 پس از خرید محصولات دانلودی و آموزشی به صفحه ی پروفایل قسمت دانلود ها مراجعه و فایلهای خود را دانلود کنید.
گارانتی اصالت و سلامت فیزیکی کالا
موجود در انبار
93,000 تومان

توضیحات بیشتر

DHT 11
The DHT11 is a simple and extremely cost-effective digital temperature and humidity sensor.
Particularly suitable for Raspberry and Arduino.
Technical data
• Voltage: 3 – 5 V DC I/O
• Max. 2.5 mA during conversion (during data request)
• Single-wire digital output
• Humidity measuring range: 20% – 90% RH (0 – 50°C temperature compensation)
• Temperature measuring range: 0 – +50°C
• Accuracy of humidity measurement: ± 5.0% RH
• Temperature measurement accuracy: ± 2.0°C
• Response time: <5 s
• Energy-efficient
• Sampling rate no higher than 1 Hz (once per second)
• Dimensions: 15.5 x 12 x 5.5 mm
Example
The DHT11 and DHT22 sensors use their own bidirectional communication system through a single conductor, using timed signals.
In each measurement sending, the sensor sends a total of 40 bits, in 4 ms.
These 40 bits correspond to 2 Bytes for humidity measurement, 2 Bytes for temperature measurement, plus a final Byte for error checking (8bit integral RH data + 8bit decimal RH data + 8bit integral T data + 8bit decimal T data + 8bit checksum)
We can read the sensor data directly by generating and reading the timed signals according to the DHTXX protocol.
In general, it is normal for us to use an existing library to simplify the process.
There are several libraries available.
For example, we can use the Adafruit library available at this link.
We download and install the library and load the example code, or the following simplified version
#include "DHT.h"
// Uncomment whatever type you're using!
//#define DHTTYPE DHT11 // DHT 11
#define DHTTYPE DHT22 // DHT 22 (AM2302), AM2321
//#define DHTTYPE DHT21 // DHT 21 (AM2301)
// Connect pin 1 (on the left) of the sensor to +5V
// NOTE: If using a board with 3.3V logic like an Arduino Due connect pin 1
// to 3.3V instead of 5V!
// Connect pin 2 of the sensor to whatever your DHTPIN is
// Connect pin 4 (on the right) of the sensor to GROUND
// Connect a 10K resistor from pin 2 (data) to pin 1 (power) of the sensor
const int DHTPin = 5; // what digital pin we're connected to
DHT dht(DHTPin, DHTTYPE);
void setup() {
Serial.begin(9600);
Serial.println("DHTxx test!");
dht.begin();
}
void loop() {
// Wait a few seconds between measurements.
delay(2000);
// Reading temperature or humidity takes about 250 milliseconds!
float h = dht.readHumidity();
float t = dht.readTemperature();
if (isnan(h) || isnan(t)) {
Serial.println("Failed to read from DHT sensor!");
return;
}
Serial.print("Humidity: ");
Serial.print(h);
Serial.print(" %t");
Serial.print("Temperature: ");
Serial.print(t);
Serial.print(" *C ");
}
We load the program into Arduino, and we will begin to receive the temperature and humidity values ​​through the serial port.
 DHT11 Sensor Pinout
DHT11 Arduino Circuit Diagram

ادامه مطلب

دیدگاهها افزودن نظر

هنوز امتیازی ثبت نشده‌است
  • کیفیت ساخت
    3
  • ارزش خرید به قیمت
    3
  • نوآوری
    3
  • امکانات
    3
  • سهولت استفاده
    3
  • طراحی و ظاهر
    3
دیدگاه خود را درباره این کالا بیان کنید
افزودن دیدگاه
شما هم می‌توانید در مورد این کالا نظر دهید.
اگر این محصول را قبلا خریده باشید، دیدگاه شما به عنوان خریدار ثبت خواهد شد. همچنین در صورت تمایل می‌توانید به صورت ناشناس دیدگاه خود را ثبت کنید.
سنسور دما و رطوبت DHT11
سنسور دما و رطوبت DHT11
گارانتی اصالت و سلامت فیزیکی کالا
موجود در انبار
93,000 تومان