Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
interfaces:aht10 [2022/02/06 16:46] – darron | interfaces: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: | + | {{interfaces: |
+ | \\ \\ | ||
+ | {{interfaces: | ||
</ | </ | ||
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 | + | 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> | ||
+ | {{: | ||
+ | \\ \\ | ||
+ | {{: | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | AOSONG_AHT10_EN_DRAFT_0C | ||
+ | |||
+ | AHT20-DATASHEET-2020-4-16 | ||
+ | |||
+ | REGISTER FILE | ||
+ | |||
+ | OFFSET | ||
+ | 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 | ||
+ | 4 TEMPERATURE T15 T14 T13 T12 T11 T10 T9 T8 | ||
+ | 5 TEMPERATURE T7 | ||
+ | |||
+ | 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 | ||
+ | </ | ||
+ | |||
+ | ===Resources=== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | [[http:// | ||
+ | |||
+ | [[https:// |