Cảm biến độ ẩm, nhiệt độ không khí HDC1080 Temperature Humidity Sensor được sản xuất bởi hãng Texas Instruments cho độ bền, độ chính xác, độ ổn định cao và đặc biệt là khả năng tiết kiệm năng lượng vượt trội, được sử dụng trong các ứng dụng cần đo độ ẩm, nhiệt độ môi trường: nông nghiệp, nhà thông minh,..., cảm biến sử dụng giao tiếp I2C nên rất dễ để kết nối và lập trình với Vi điều khiển.
Thông số kỹ thuật:
- Điện áp sử dụng: 2.7~5.5VDC
- Điện áp giao tiếp: TTL 2.7~5.5VDC
- Chuẩn giao tiếp: I2C
- Relative Humidity Accuracy ±2% (typical)
- Temperature Accuracy ±0.2°C (typical)
- Excellent Stability at High Humidity
- 14 Bit Measurement Resolution
- 100 nA Sleep Mode Current
- Average Supply Current:
- 710 nA @ 1sps, 11 bit RH Measurement
- 1.3 µA @ 1sps, 11 bit RH and Temperature Measurement
- Kích thước: 15 x 13mm
Sơ đồ chân:
Code tham khảo Arduino:
//Example of reading from HDC1080
#include "HDC1080JS.h"
#include "Wire.h"HDC1080JS tempsensor;
void setup() {
Wire.begin();
Wire.setClock(400000); //set clock speed for I2C bus to maximum allowed for HDC1080
Serial.begin(9600); // start serial for outputtempsensor = HDC1080JS();
tempsensor.config();
}void loop() {
tempsensor.readTempHumid();
float temp = tempsensor.getTemp();
float humid = tempsensor.getRelativeHumidity();Serial.print("T=");
Serial.print(temp);
Serial.print("C, RH=");
Serial.print(humid);
Serial.println("%");
delay(1000);
}
Tài liệu tham khảo:
Video tham khảo: