Aht21 sensor support

Basic Information:

Printer Model: voron2.4r2
MCU / Printerboard: btt octopus pro
MCU / toolhead: btt ebb36
Host / SBC: rpi5b

Describe your issue:

Hi everyone, I bought an aht21 module, its initialization command is 0xBE, but the code in klipper is 0xE1, it only supports aht10, and the humidity does not display decimals.

Is there a developer who can reprogram it?
I have tested it and it can run successfully.

This c++ code supports multiple aht sensors.

image

If I understood correctly, it works right now, you just do not see humidity decimals
I’m not sure it is worth adding additional specifics to aht21 behavior to increase resolution, just because it is around internal error.

FWIW, to alter behavior, it is enough to look to htu21.py and do something similar

yes,the premise is to change the initialization parameter 0x1E to 0xBE.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.