- Name: AHTXX
- Description: Library for Aosong ASAIR AHT10, AHT15 & AHT20 Digital Humidity & Temperature Sensor I2C. Only tested on AHT10.
- Developed on
- Raspberry pi PICO RP2040
- SDK C++ compiler, arm-none-eabi-g++ (15:10.3)
- CMAKE , VScode
Library for Aosong ASAIR AHT10, AHT15 & AHT20 Digital Humidity & Temperature Sensor I2C.
- Supply voltage: 1.8v - 3.6v for AHT10, AHT15 & 2.0v - 5.5v for AHT20
- Temperature range: -40°C..+85°C
- Temperature resolution: 0.01°C
- Temperature accuracy: ±0.3°C
- Relative humidity range: 0%..100%
- Relative humidity resolution: 0.024%
- Relative humidity accuracy: ±2%**
- I²C bus speed: 0Hz - 400KHz
- Recommended polling frequency: 8sec - 30sec
Supports sensors features:
- Read humidity
- Read temperature
- Soft reset with sensor initialization
- The library returns an errors if a communication error occurs or if the calibration coefficient is off.
Connections
The Sensor uses I2C for communication's. Data is outputted (eg to a PC) via a USB. Can be set up for any I2C interface and bus speed. By default I2C0, GPIO16(SDATA) and GPIO17(SCLK) & 100kHz.
Files
The main.cpp contains tests showing library functions There is also an library (ahtxx.cpp and ahtxx.hpp),
Output