Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
interfaces:aht10 [2022/02/06 16:46] darroninterfaces:aht10 [2022/10/29 17:34] (current) – [AHT10 dual-purpose sensor] darron
Line 1: Line 1:
 ==== AHT10  dual-purpose sensor ==== ==== AHT10  dual-purpose sensor ====
 <wrap right> <wrap right>
-{{:interfaces:aht10.jpg?200}}+{{interfaces:aht10.jpg?100}} 
 +\\ \\ 
 +{{interfaces:stm32_ath10_lc1025.jpg?100}}
 </wrap> </wrap>
  
 This dual-purpose sensor is used to measure temperature and humidity. This dual-purpose sensor is used to measure temperature and humidity.
-It operates as an I2C slave device, however, it has a hardware bug which means it cannot share the bus with any other device.+It operates as an I2C slave device.
  
-The actual sensor is tiny but a board is available from China with the I2C connections+The sensor is tiny IC but a board is available from China with the I2C connections
 and power on a standard 0.1 inch header which makes it easily accessible. and power on a standard 0.1 inch header which makes it easily accessible.
  
 +WARNING: The AHT10 has a hardware bug which means it cannot share the bus with any other device.
  
 +Refer to data-sheet figure 11 comment 3: Only a single AHT10 can be connected to the I2C bus and no other I2C
 +devices can be connected.
 +
 +
 +===API===
 +<wrap right>
 +{{:interfaces:aht10_i2c.jpg?200}}
 +\\ \\
 +{{:interfaces:aht10_i2c_read.jpg?200}}
 +</wrap>
 +
 +<code>
 +AOSONG_AHT10_EN_DRAFT_0C
 +
 +AHT20-DATASHEET-2020-4-16
 +
 +REGISTER FILE
 +
 +OFFSET         FUNCTION BIT
 +0 STATUS
 +1 HUMIDITY H19 H18 H17 H16 H15 H14 H13 H12
 +2 HUMIDITY H11 H10 H9  H8 H7  H6 H4  H4
 +3 HUMIDITY + TEMPERATURE H3  H2 H1  H0 T19 T18 T17 T16
 +4 TEMPERATURE T15 T14 T13 T12 T11 T10 T9  T8
 +5 TEMPERATURE T7  T6 T5  T4 T3  T2 T1  T0
 +
 +COMMANDS
 +
 +SEQUENCE FUNCTION
 +0xE1 0x08 0x00          INITIALISE AHT10
 +0xBE 0x08 0x00          INITIALISE AHT20
 +0xAC 0x33 0x00          TRIGGER MEASUREMENT
 +0xBA RESET
 +
 +STATUS REGISTER
 +
 +BIT FUNCTION
 +7 BUSY
 +6 MODE
 +5 MODE
 +4 ?
 +3 CAL
 +2 ?
 +1 ?
 +0 ?
 +
 +MODE BITS FUNCTION
 +00 NORMAL
 +01 CYCLE
 +10 COMMAND
 +11 COMMAND
 +</code>
 +
 +===Resources===
 +
 +[[https://server4.eca.ir/eshop/AHT10/Aosong_AHT10_en_draft_0c.pdf|AHT10 (English)]]
 +
 +[[http://www.aosong.com/userfiles/files/media/AHT10%E4%BA%A7%E5%93%81%E6%89%8B%E5%86%8C%20A3%2020201210.pdf|AHT10 (Chinese)]]
 +
 +[[https://cdn-learn.adafruit.com/assets/assets/000/091/676/original/AHT20-datasheet-2020-4-16.pdf|AHT20 (English)]]