- Notifications
You must be signed in to change notification settings - Fork4
Driver for Sonoff-Tasmota to support the temperature/humidity sensor AM2320 (I2C)
License
lrswss/tasmota-am2320-i2c-driver
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is an user defined driver forSonoff-Tasmota to support the cheap I2C temperature/humidity sensorAM2320.
Just drop the driver file into thesonoff
subdirectory of your copy of Tasmota, add a#define USE_AM2320
preprocessor statement to yourmy_user_config.h
right below the#ifdef USE_I2C
statement around line 290. Recompile Tasmota, flash your device and configure two GPIOs (SDA/SCL) for I2C use the Tasmota WebUI. If you use the TX/RX pins on your Tasmota device (not recommended) make sure you have serial logging disabled (enterSerialLog off
in Tasmota console). Tested with Tasmota 6.4.1.
When you connect the AM2320 sensor to the SDA/SCL pins of your Tasmota device make sure to include 4.7k pull-up resistors from VCC to SDA and from VCC to SDL or I2C communication might not work as expected. If you've already connected another I2C device on a breakout board to the I2C bus you can probably skip the pull-up resistors since these are usually provided on a sensor breakout board.
About
Driver for Sonoff-Tasmota to support the temperature/humidity sensor AM2320 (I2C)
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.