Khác

DHT11 - CẢM BIẾN ĐO NHIỆT ĐỘ, ĐỘ ẨM - LOẠI 3 PIN (CÓ KÈM DÂY NỐI)

Mã sản phẩm: MDDHT11
THÔNG SỐ KỸ THUẬT:1. PHẠM VI ĐO ĐỘ ẨM:                    20 --- 90% RH2. ĐỘ CHÍNH XÁC ĐO ĐỘ ẨM:        ± 5% RH3. PHẠM VI ĐO NHIỆT ĐỘ:               0 --- 50 ° C4....
25,000₫
Số lượng
 
1
 
Thêm vào giỏ Mua ngay

Dịch vụ & Khuyến mãi

Giao miễn phí trong nội thành TPHCM đối với đơn hàng trên 1 triệu đồng

Tặng ngay 50.000đ cho đơn hàng trên 2 triệu đồng

Chi tiết sản phẩm

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

CÀI ĐẶT THƯ VIỆN ARDUINO:
 

CODE THAM KHẢO GIAO TIẾP DHT11 VỚI ARDUINO:
 

#include <dht.h>
#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
}

Bình luận

Không có sản phẩm nào trong giỏ hàng của bạn

Không có sản phẩm nào trong giỏ hàng của bạn

Cửa hàng linh kiện điện tử Đức Huy
Cửa hàng linh kiện điện tử Đức Huy