THÔNG SỐ KỸ THUẬT:
1. PHẠM VI ĐO ĐỘ ẨM: 20 --- 90% RH
2. ĐỘ CHÍNH XÁC ĐO ĐỘ ẨM: ± 5% RH
3. PHẠM VI ĐO NHIỆT ĐỘ: 0 --- 50 ° C
4. ĐỘ CHÍNH XÁC ĐO NHIỆT ĐỘ: ± 2 ° C
5. ĐIỆN ÁP HOẠT ĐỘNG: 3.3V HOẶC 5VDC
6. NGÕ RA TÍN HIỆU SỐ 1 CHÂN RA DỮ LIỆU DATA
CODE THAM KHẢO GIAO TIẾP DHT11 VỚI ARDUINO:
#include
#define dataPin 8 // Defines pin number to which the sensor is connected
dht DHT; // Creats a DHT object
void setup()
{
Serial.begin(9600);
}
void loop()
{
//Uncomment whatever type you're using!
//int readData = DHT.read22(dataPin); // DHT22/AM2302 (KHI SỬ DỤNG DHT22 THÌ SỬ DỤNG DÒNG LỆNH NÀY)
int readData = DHT.read11(dataPin); // DHT11 (KHI SỬ DỤNG DHT11 THÌ SỬ DỤNG DÒNG LỆNH NÀY)
float t = DHT.temperature; // Gets the values of the temperature
float h = DHT.humidity; // Gets the values of the humidity
// Printing the results on the serial monitor
Serial.print("Temperature = ");
Serial.print(t);
Serial.print(" ");
Serial.print((char)176);//shows degrees character
Serial.print("C | ");
Serial.print((t * 9.0) / 5.0 + 32.0);//print the temperature in Fahrenheit
Serial.print(" ");
Serial.print((char)176);//shows degrees character
Serial.println("F ");
Serial.print("Humidity = ");
Serial.print(h);
Serial.println(" % ");
Serial.println("");
delay(2000); // Delays 2 secods
}
Chi tiết sản phẩm| Xuất xứ | Trung Quốc |
|---|
| Hạn bảo hành | Không bảo hành |
|---|
| Loại bảo hành | Không bảo hành |
|---|
| Tên tổ chức chịu trách nhiệm sản xuất | Đang cập nhật |
|---|
| Địa chỉ tổ chức chịu trách nhiệm sản xuất | Đang cập nhật |
|---|
| Kích thước (dài x rộng x cao) | 30 X 30MM |
|---|