- Name: AHT10
- Description: Library for AHT10 Integrated temperature and humidity sensor
- Author: Gavin Lyons
- STM32: STM32F303K8T6 Nucleo-32
- IDE: STM32cubeIDE C.
This is an STM32 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 initialisation
- The library returns 255 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 USART . pins used are in file AHT10_project.txt.
Files
The Main.c contains tests showing library functions There is also an library (AHT10.c and AHT10.h),
Output