Skip to content

Commit 6d25486

Browse files
committed
split AHT1x from AHT2x
1 parent 1241167 commit 6d25486

File tree

8 files changed

+53
-3
lines changed

8 files changed

+53
-3
lines changed

docs/AHT1x.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# AHT1x/AHT2x and compatible temperature and humidity sensor
1+
# AHT10/AHT15 temperature and humidity sensor
22

33
??? failure "This feature is not included in precompiled binaries"
44

docs/AHT2x.md

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# AHT2x/AM2301B temperature and humidity sensor
2+
3+
??? failure "This feature is not included in precompiled binaries"
4+
5+
When [compiling your build](Compile-your-build) add the following to `user_config_override.h`:
6+
```
7+
#ifndef USE_AHT2x
8+
#define USE_AHT2x // [I2cDriver43] Enable AHT20/AM2301B instead of AHT1x humidity and temperature sensor (I2C address 0x38) (+0k8 code)
9+
#endif
10+
```
11+
12+
## Configuration
13+
14+
### Wiring
15+
| AHT | ESP |
16+
|---|---|
17+
|VCC |3.3V
18+
|GND |GND
19+
|SDA | GPIOx
20+
|SCL | GPIOy
21+
22+
23+
### Tasmota Settings
24+
In the **_Configuration -> Configure Module_** page assign:
25+
26+
1. GPIOx to `I2C SDA`
27+
2. GPIOy to `I2C SCL`
28+
29+
After a reboot the driver should detect the sensor and display sensor readings.
30+
31+
### Troubleshooting
32+
On some I2C sensors, like the AHT25, Tasmota might mistake the sensor for another one using the same address.
33+
This can be resolved by disabling the unneeded drivers.
34+
35+
For our example AHT25, the address might get confused with the VEML6070 UV sensor. You can tell Tasmota to use the other driver by issuing the following commands in the console:
36+
37+
- `I2CDriver12 0` to disable the VEML driver
38+
- `I2CDriver43 1` to enable the AHT driver
39+
40+
An overview of all [I2C drivers](https://tasmota.github.io/docs/I2CDEVICES/#supported-i2c-devices) is available in the docs.
41+
42+
### Breakout Boards
43+
44+
![AHT20](_media/peripherals/AHT20.jpg)![AHT21](_media/peripherals/AHT21.jpg)![AHT25](_media/peripherals/AHT25.jpg)![AM2301B](_media/peripherals/AM2301B.jpg)
45+
46+
[AHT20 Datasheet](http://www.aosong.com/userfiles/files/media/Data%20Sheet%20AHT20.pdf)
47+
[AHT21 Datasheet](http://www.aosong.com/userfiles/files/media/Data%20Sheet%20AHT21.pdf)
48+
[AHT25 Datasheet](http://www.aosong.com/userfiles/files/media/Data%20Sheet%20AHT25%20A2.pdf)

docs/Supported-Peripherals.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ Name|Description|Connection
66
[**A4988**](A4988-Stepper-Motor-Controller)| Stepper Motor Controller
77
[**ADC**](ADC) | Analog input over A0 pin | analog
88
**ADS111x** | A/D Converter | I^2^C
9-
[**AHT1x**](AHT1x.md)<BR>**AHT2x** | Asair AHT10/AHT15/AHT20/AHT21/AHT25/AM2301B Temperature and Humidity Sensor | I^2^C
9+
[**AHT1x**](AHT1x.md) | Asair AHT10/AHT15 Temperature and Humidity Sensor | I^2^C
10+
[**AHT2x**](AHT2x.md) | Asair AHT20/AHT21/AHT25/AM2301B Temperature and Humidity Sensor | I^2^C
1011
[**AM2301 / DHT21 <BR>AM2302 / DHT22<BR>AM2321**](AM2301) | Temperature and Humidity Sensor | gpio
11-
[**AM2301B**](AHT1x) | Temperature and Humidity Sensor<br><i>Use same driver as AHT2X</i>| I^2^C
12+
[**AM2301B**](AHT2x) | Temperature and Humidity Sensor<br><i>Use same driver as AHT2X</i>| I^2^C
1213
**AM2320** | Temperature and Humidity Sensor | gpio
1314
**AS608** | AS608 Optical and R503 Capacitive Fingerprint Sensor| serial
1415
[**AS3935**](AS3935) | Franklin Lightning Sensor| serial

docs/_media/peripherals/AHT20.jpg

33.9 KB
Loading

docs/_media/peripherals/AHT21.jpg

14.3 KB
Loading

docs/_media/peripherals/AHT25.jpg

19.7 KB
Loading

docs/_media/peripherals/AM2301B.jpg

26.7 KB
Loading

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ nav:
198198
- Buzzer.md
199199
- A4988 stepper motor controller: A4988-Stepper-Motor-Controller.md
200200
- AHT1x.md
201+
- AHT2x.md
201202
- AM2301 temperature and humidity sensor: AM2301.md
202203
- APDS-9960.md
203204
- AS3935.md

0 commit comments

Comments
 (0)