floitsch 06/04/2025 02:06 PMHowever, I think I found an issue:
- when the RMT is started, it currently seems to pull down the output line. I think that's a bug in the ESP-IDF. Unfortunately, that looks to the DHT as if the device wants to read the data.
If we don't wait a bit after creating the driver object, we are asking for a new conversation while the old transmission is still in progress.
I was able to get my setup working by simply adding a sleep --ms=1000
after creating the driver object.
@Fernan could you try to do the same and see if that works for you?
Independently: In theory the driver needs to be powered up by at least 1s before we are allowed to interact with it. The driver assumes that the instantiation time is when the sensor is powered on, and is supposed to wait if the second wasn't elapsed yet. However, due to an inverted '<', that never triggered. I think I will remove that code, since the sensor is most of the time powered up independently of the esp32.
I will add a warning somewhere, though.