Crates.io | hdc302x-async |
lib.rs | hdc302x-async |
version | 0.2.0 |
source | src |
created_at | 2024-08-21 22:02:42.788732 |
updated_at | 2024-08-22 01:35:44.949301 |
description | An embedded-hal-async driver for the HDC302x(-Q1) low-power humidity and temperature digital sensor |
homepage | https://github.com/bobsrac/hdc302x-rs-async |
repository | https://github.com/bobsrac/hdc302x-rs |
max_upload_size | |
id | 1346983 |
size | 49,801 |
This is a platform-agnostic Rust driver for the HDC3020, HDC3021, HDC3022, HDC3020-Q1,
HDC3021-Q1 and HDC3022-Q1 low-power humidity and temperature digital sensors using
the embedded-hal-async
traits. This is current no support for a blocking API.
This driver was inspired by Diego Barrios Romero's hdc20xx-rs driver.
This driver allows you to:
This driver does not yet support the following device features:
The following description is copied from the manufacturer's datasheet:
The HDC302x-Q1 is an integrated capacitive based relative humidity (RH) and temperature sensor. The device provides high accuracy measurements over a wide supply range (1.62 V – 5.5 V), along with ultra-low power consumption in a compact 2.5-mm × 2.5-mm package. Both the temperature and humidity sensors are 100% tested and trimmed on a production setup that is NIST traceable and verified with equipment that is calibrated to ISO/IEC 17025 standards.
Offset Error Correction reduces RH sensor offset due to aging, exposure to extreme operating conditions, and contaminants to return device to within accuracy specifications. For battery IoT applications, auto measurement mode and ALERT feature enable low system power by maximizing MCU sleep time. There are four different I2C addresses that support speeds up to 1 MHz. A heating element is available to dissipate condensation and moisture.
The HDC3020-Q1 is an open cavity package without protective cover. Two device variants have a cover option to protect the open cavity RH sensor: HDC3021-Q1 and HDC3022-Q1. HDC3021-Q1 has removable protective tape to allow conformal coatings and PCB wash. HDC3022-Q1 has a permanent IP67 filter membrane to protect against dust, water and PCB wash. All three package variants have wettable flanks option.
Datasheets: HDC302x HDC302x-Q1
To use this driver, import this crate and an embedded_hal_async
implementation,
then instantiate the device.
MIT OR Apache-2.0