Klipper3d / klipper

Klipper is a 3d-printer firmware
GNU General Public License v3.0
9.46k stars 5.31k forks source link

[Bug] AHT20/DHT20 Series Temperature sensor support #6707

Closed Johnnybyzhang closed 3 weeks ago

Johnnybyzhang commented 3 weeks ago

https://github.com/Klipper3d/klipper/blob/96cceed23efc7a3759ecfba0a228cdcb4d5244d3/klippy/extras/aht10.py#L19 This line only works on AHT10, the AHT20 Series I2C sensor use a different command for INIT and will not work with this. Attached is a Datasheet for AHT20. 00557B34ED120268320A4810FF8DED4D.pdf If possible, please make the AHT20 Series independent from AHT10, all the modification that is needed is to change the first command from 0xE1 to 0x71, doing so is also compatible with DHT20 and AM2108

Johnnybyzhang commented 3 weeks ago

Closing and move over to discord.