Tasmota: S20 - Expansion by AM2301 Temperature & Humidity

Created on 31 Jul 2017  路  9Comments  路  Source: arendst/Tasmota

Simple solution to expand the S20 by an AM2301 module.
Required:

  • Jack socket 3.5 mm stereo
  • AM2301 (DHT21) Digital Temperatur& Humidity Sensor
  • 0.5m audio cable with 3.5mm stereo plug
    2017-07-31 1
    2017-07-31 2
    2017-07-31 3
    2017-07-31 4

Most helpful comment

For others:

image

All 9 comments

What pins go to what from the S20 to the audo jack? How do I configure this as there is no gpio 14 for the s20 in tasmota? @FabianHM

Thnx. Closed issue and add link in Wiki.

@arendst I still don't know how to configure this?

Sorry don't worry, i've figured it out. Had a mind blank! lol. Thanks!

For others:

image

@arendst It's the wiring for the jack to correspond with the socket that would be the issue for most people.

You need only connect 3 cables!
AM2301 red to S20 VCC (3.3V)
AM2301 black to S20 GND (Ground)
AM2301 yellow to S20 RX or TX (GPIO 1 or 3)

@FabianHM how would someone wire the 3.5mm jack is what i'm saying. the above is obvious but if someone wants to make there own jack to the sensor themselves, which pins correspond with the jack pins - jack to jack socket.

Connect the audio cable with 3.5mm stereo plug with the Jack socket.
Now simply measure the pin assignment of the socket with a measuring device. The allocation of the bushes are different in the case of some manufacturers.

Is any pull-up resistor needed between VCC and DATA?

I am getting elevated Temp measurements from my AM2301s (I have tested with 3 different AM2301s) on different S20 sockets and I am trying to debug why.

I have collected a DS18B20 to the other S20 pin to compare readings, see below:

capture

capture1

Any ideas?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ximonline picture ximonline  路  3Comments

JoergZ2 picture JoergZ2  路  3Comments

renne picture renne  路  3Comments

grizewald picture grizewald  路  3Comments

Joeyhza picture Joeyhza  路  3Comments