Difference between revisions of "Protocol decoder:Am230x"

From sigrok
Jump to navigation Jump to search
(add AM2305 and AM2306 to resources (they use the same protocol))
(rht03 and renaming info)
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Infobox protocol decoder
{{Infobox protocol decoder
| id              = am230x
| id              = am230x
| name            = AM230x/DHTxx
| name            = AM230x/DHTxx/RHTxx
| description    = Aosong AM230x/DHTxx humidity/temperature sensor protocol
| description    = Aosong AM230x/DHTxx/RHTxx humidity/temperature sensor protocol
| status          = supported
| status          = supported
| license        = GPLv2+
| license        = GPLv2+
Line 10: Line 10:
| output          = am230x
| output          = am230x
| probes          = SDA
| probes          = SDA
| optional_probes =  
| optional_probes = —
| options        = device
}}
}}


The '''am230x''' protocol decoder decodes the [http://www.aosong.com/en/products/index.asp?classid=313&name=Humidity%20&%20temp%20Sensor/OEM Aosong AM2301/AM2302/AM2303/DHT11] temperature and humidity sensor single-wire protocol.
The '''am230x''' protocol decoder decodes the [http://www.aosong.com/en/products/index.asp?classid=313&name=Humidity%20&%20temp%20Sensor/OEM Aosong AM230x/DHT11] temperature and humidity sensor single-wire protocol.


== Hardware ==
== Hardware ==
See the [http://sigrok.org/gitweb/?p=sigrok-dumps.git;a=tree;f=am230x am230x] directory for example capture files.
=== Models ===
{| border="0" style="font-size: smaller" class="alternategrey sortable sigroktable"
|-
!Model
!Microcontroller
!Temperature
!Humidity
!Datasheet
|-
| [http://www.aosong.com/en/products/details.asp?id=110 Aosong AM2301]
| Unknown SOIC-10
| ?
| ?
| [http://meteobox.tk/files/AM2301.pdf PDF]
|-
| [http://www.aosong.com/en/products/details.asp?id=117 Aosong AM2302]
| [http://www.st.com/web/catalog/mmc/FM141/SC1244/SS1010/LN754/PF215113 ST STM8S103F3] (8S103F3P6), SOIC-20
| analog
| analog
| [http://www.adafruit.com/datasheets/Digital%20humidity%20and%20temperature%20sensor%20AM2302.pdf PDF]
|-
| Aosong AM2303
| [http://www.st.com/web/catalog/mmc/FM141/SC1244/SS1010/LN754/PF215113 ST STM8S103F3] (8S103F3P6), SOIC-20
| [http://www.maximintegrated.com/en/products/analog/sensors-and-sensor-interface/DS18B20.html Dallas DS18B20]
| analog
| [http://www.aosong.com/asp_bin/Products/en/AM2303.pdf PDF]
|-
| [http://aosong.com/en/products/details.asp?id=121 Aosong AM2305]
| ?
| ?
| ?
| [http://www.aosong.com/asp_bin/Products/en/AM2305.pdf PDF]
|-
| [http://aosong.com/en/products/details.asp?id=115 Aosong AM2306]
| ?
| ?
| ?
| [http://www.aosong.com/asp_bin/Products/en/AM2306.pdf PDF]
|-
| Aosong AM2320
| ?
| ?
| ?
| ?
|-
| Aosong AM2321
| ?
| ?
| ?
| ?
|-
| Aosong AM2322
| ?
| ?
| ?
| ?
|-
| Aosong DHT11
| Unknown SOIC-14
| analog
| analog
| [http://akizukidenshi.com/download/ds/aosong/DHT11.pdf PDF]
|-
| RTH03
| ?
| ?
| ?
| https://www.sparkfun.com/products/10167
|}
These parts are often renamed or rebadged.
=== Aosong AM2301 ===
<gallery>
File:Aosong am2301 top.jpg|<small>Device, top</small>
File:Aosong am2301 bottom.jpg|<small>Device, bottom</small>
File:Am2301 pcb open.jpg|<small>Device PCB, open</small>
File:Am2301 pcb top.jpg|<small>Device PCB, top</small>
File:Am2301 pcb bottom.jpg|<small>Device PCB, bottom</small>
</gallery>
=== Aosong AM2302 ===
<gallery>
File:Aosong am2302 top.jpg|<small>Device, top</small>
File:Aosong am2302 bottom.jpg|<small>Device, bottom</small>
File:Aosong am2302 pcb top.jpg|<small>PCB, top</small>
File:Aosong am2302 pcb bottom.jpg|<small>PCB, bottom</small>
File:Aosong am2302 microcontroller.jpg|<small>STM8S103F3 </small>
File:Aosong am2302 sensor back.jpg|<small>Sensor</small>
File:Aosong am2302 debris.jpg|<small>Debris</small>
</gallery>
=== Aosong AM2303 ===


<gallery>
<gallery>
File:Aosong am2301 top.jpg|<small>AM2301, top</small>
File:Aosong am2303 top.jpg|<small>Device, top</small>
File:Aosong am2301 bottom.jpg|<small>AM2301, bottom</small>
File:Aosong am2303 bottom.jpg|<small>Device, bottom</small>
File:Am2301 pcb open.jpg|<small>AM2301 PCB, open</small>
File:Aosong am2303 pcb top.jpg|<small>PCB, top</small>
File:Am2301 pcb top.jpg|<small>AM2301 PCB, top</small>
File:Aosong am2303 pcb bottom.jpg|<small>PCB, bottom</small>
File:Am2301 pcb bottom.jpg|<small>AM2301 PCB, bottom</small>
File:Aosong am2303 sensor.jpg|<small>DS18B20</small>
File:Aosong dht11 top.jpg|<small>DHT11, top</small>
File:Aosong am2303 debris.jpg|<small>Debris</small>
File:Aosong dht11 bottom.jpg|<small>DHT11, bottom</small>
File:Dht11 pcb open.jpg|<small>DHT11 PCB, open</small>
File:Dht11 pcb top.jpg|<small>DHT11 PCB, top</small>
File:Dht11 pcb bottom.jpg|<small>DHT11 PCB, bottom</small>
</gallery>
</gallery>


See the [http://sigrok.org/gitweb/?p=sigrok-dumps.git;a=tree;f=am230x am230x] directory for example capture files.
=== Aosong DHT11 ===
 
<gallery>
File:Aosong dht11 top.jpg|<small>Device, top</small>
File:Aosong dht11 bottom.jpg|<small>Device, bottom</small>
File:Dht11 pcb open.jpg|<small>Device PCB, open</small>
File:Dht11 pcb top.jpg|<small>Device PCB, top</small>
File:Dht11 pcb bottom.jpg|<small>Device PCB, bottom</small>
</gallery>


== Protocol ==
== Protocol ==
Line 40: Line 146:
== Resources ==
== Resources ==


* [http://www.aosong.com/en/home/index.asp Aosong] (vendor website)
* [http://www.aosong.com/en/home/index.asp Aosong website]
** [http://www.aosong.com/en/products/details.asp?id=110 AM2301] ([http://meteobox.tk/files/AM2301.pdf datasheet])
** [http://www.aosong.com/en/products/details.asp?id=117 AM2302] ([http://www.adafruit.com/datasheets/Digital%20humidity%20and%20temperature%20sensor%20AM2302.pdf datasheet])
** AM2303 ([http://www.aosong.com/asp_bin/Products/en/AM2303.pdf datasheet])
** [http://aosong.com/en/products/details.asp?id=121 AM2305] ([http://www.aosong.com/asp_bin/Products/en/AM2305.pdf datasheet])
** [http://aosong.com/en/products/details.asp?id=115 AM2306] ([http://www.aosong.com/asp_bin/Products/en/AM2306.pdf datasheet])
** [http://www.aosong.com/en/products/details.asp?id=109 DHT11] ([http://akizukidenshi.com/download/ds/aosong/DHT11.pdf datasheet])
* [https://learn.adafruit.com/dht/ Adafruit: DHT sensor tutorial]
* [https://learn.adafruit.com/dht/ Adafruit: DHT sensor tutorial]
** [https://github.com/adafruit/DHT-sensor-library GitHub: Adafruit DHT-sensor-library]
** [https://github.com/adafruit/DHT-sensor-library GitHub: Adafruit DHT-sensor-library]
* [http://playground.arduino.cc/Main/DHTLib arduino.cc: DHTLib]
* [http://playground.arduino.cc/Main/DHTLib arduino.cc: DHTLib] Contains a mapping of common renames


[[Category:Protocol decoder]]
[[Category:Protocol decoder]]

Latest revision as of 21:36, 30 May 2015

am230x
Aosong dht11 top.jpg
Name AM230x/DHTxx/RHTxx
Description Aosong AM230x/DHTxx/RHTxx humidity/temperature sensor protocol
Status supported
License GPLv2+
Source code decoders/am230x
Input logic
Output am230x
Probes SDA
Optional probes
Options device

The am230x protocol decoder decodes the Aosong AM230x/DHT11 temperature and humidity sensor single-wire protocol.

Hardware

See the am230x directory for example capture files.

Models

Model Microcontroller Temperature Humidity Datasheet
Aosong AM2301 Unknown SOIC-10 ? ? PDF
Aosong AM2302 ST STM8S103F3 (8S103F3P6), SOIC-20 analog analog PDF
Aosong AM2303 ST STM8S103F3 (8S103F3P6), SOIC-20 Dallas DS18B20 analog PDF
Aosong AM2305 ? ? ? PDF
Aosong AM2306 ? ? ? PDF
Aosong AM2320 ? ? ? ?
Aosong AM2321 ? ? ? ?
Aosong AM2322 ? ? ? ?
Aosong DHT11 Unknown SOIC-14 analog analog PDF
RTH03 ? ? ? https://www.sparkfun.com/products/10167

These parts are often renamed or rebadged.

Aosong AM2301

Aosong AM2302

Aosong AM2303

Aosong DHT11

Protocol

A custom single-wire protocol (not to be confused with the Dallas 1-Wire protocol!) is used to get the measured values from the sensor.

The actual payload consists of a humidity value, a temperature value, and a checksum.

Resources