شحن مجاني للأوردرات فوق
1000 ج
رمضان كريم
High-Accuracy I2C Environmental Sensing for Arduino Projects
The GY-213V HDC1080 is a high-precision digital humidity and temperature sensor with I2C interface. This low-power sensor provides ±2% relative humidity accuracy and ±0.2°C temperature accuracy, making it ideal for weather stations, HVAC systems, and IoT applications.
Key FeaturesSimultaneous humidity and temperature sensing
1.2μA sleep current (0.55mA active)
±2% RH, ±0.2°C (typical)
Standard 3.3V-5V compatible
| Humidity Range | 0% to 100% RH |
|---|---|
| Temperature Range | -40°C to +125°C |
| Resolution | 14-bit (RH), 14-bit (Temp) |
| Supply Voltage | 2.7V to 5.5V |
| I2C Address | 0x40 (default) |
| Response Time | 8s (RH), 6.5ms (Temp) |

| Pin | Label | Description | Arduino Connection |
|---|---|---|---|
| 1 | VCC | Power (2.7-5.5V) | 3.3V or 5V |
| 2 | GND | Ground | GND |
| 3 | SCL | I2C Clock | A5 (Uno) or SCL |
| 4 | SDA | I2C Data | A4 (Uno) or SDA |
| 5 | ADDR | Address Select | GND (default) or VCC |
// Basic Connections: // VCC → 3.3V or 5V // GND → GND // SCL → A5 (or SCL) // SDA → A4 (or SDA) // ADDR → GND (for default address 0x40)
#include <Wire.h>
#include "ClosedCube_HDC1080.h"
ClosedCube_HDC1080 hdc1080;
void setup() {
Serial.begin(9600);
hdc1080.begin(0x40); // Default I2C address
Serial.println("HDC1080 initialized");
Serial.print("Manufacturer ID=0x");
Serial.println(hdc1080.readManufacturerId(), HEX);
}
void loop() {
float humidity = hdc1080.readHumidity();
float temperature = hdc1080.readTemperature();
Serial.print("Humidity: ");
Serial.print(humidity);
Serial.print("% RH, Temperature: ");
Serial.print(temperature);
Serial.println("°C");
delay(2000);
}
// Set measurement resolution
hdc1080.setResolution(HDC1080_RESOLUTION_14BIT,
HDC1080_RESOLUTION_14BIT);
// Enable built-in heater (for drying condensation)
hdc1080.heatOn();
delay(1000);
hdc1080.heatOff();
// Check battery status (below 2.8V)
if(hdc1080.readBatteryStatus() == LOW) {
Serial.println("Low battery!");
}
// Connect ADDR pin to VCC to use 0x41
hdc1080.begin(0x41); // Alternate address
No account yet?
Create an Account
Recent Comments