Page 1 of 2
ESP32 interfaced with AHT10 sensor
Posted: Tue Jul 01, 2025 10:00 am
by HAD1406
So in a project, for power management purpose we have to put an AHT10 sensor interfaced with ESP32 to sleep without using any external devices(Transistors, MOSFET, etc.) What is the correct approach ?
Re: ESP32 interfaced with AHT10 sensor
Posted: Wed Jul 02, 2025 1:25 am
by Sprite
According to the docs for that sensor, it has a sleep mode in which it only uses 0.25uA.
Re: ESP32 interfaced with AHT10 sensor
Posted: Wed Jul 02, 2025 4:44 am
by HAD1406
According to the docs for that sensor, it has a sleep mode in which it only uses 0.25uA.
But there are no specific commands for entering the sleep mode using AHT10, right? The state in which it uses only 0.25uA is the state immediately after a power up and before you send the initialization command.
Re: ESP32 interfaced with AHT10 sensor
Posted: Wed Jul 02, 2025 5:19 am
by Sprite
This driver hints that there is a measure + go to sleep command; you could try that. If you want to be really sure: the sensor only seems to draw a few tens of uA in active mode; you could just tie its power supply pin to a GPIO and pull that high to power the sensor.
Re: ESP32 interfaced with AHT10 sensor
Posted: Wed Jul 02, 2025 7:15 am
by HAD1406
This driver hints that there is a measure + go to sleep command; you could try that. If you want to be really sure: the sensor only seems to draw a few tens of uA in active mode; you could just tie its power supply pin to a GPIO and pull that high to power the sensor.
So is using a transistor/MOSFET along with the sensor a good approach or perhaps the only safe approach since the AHT10 docs do not mention any "user controlled sleep" ?
Re: ESP32 interfaced with AHT10 sensor
Posted: Thu Jul 03, 2025 1:57 am
by Sprite
I dunno? You can check if the device goes into sleep mode after a measurement (what that library implies) by either asking the manufacturer or by testing it. The alternative, as I said, is to power the sensor directly from a GPIO; the GPIO current should be enough to power it and that way you don't need a transistor.
Re: ESP32 interfaced with AHT10 sensor
Posted: Fri Jul 04, 2025 10:01 am
by HAD1406
I dunno? You can check if the device goes into sleep mode after a measurement (what that library implies) by either asking the manufacturer or by testing it. The alternative, as I said, is to power the sensor directly from a GPIO; the GPIO current should be enough to power it and that way you don't need a transistor.
Tried connecting Vcc of AHT10 to to a gpio of ESP32 and setting it to 0 before esp goes to deep sleep. Still we are getting the same power across the sensor even when in deep sleep. The sensor data stops printing in deep sleep but power consumption still remains the same. What should we do?
Re: ESP32 interfaced with AHT10 sensor
Posted: Fri Jul 04, 2025 11:18 am
by MicroController
Try
gpio_deep_sleep_hold_en() and see if that makes a difference.
Re: ESP32 interfaced with AHT10 sensor
Posted: Fri Jul 04, 2025 12:49 pm
by HAD1406
Thanks! but it didn't work. I think the LCD and the AHT10 are still drawing power even when the esp goes to deep sleep. How to stop that completely.
Re: ESP32 interfaced with AHT10 sensor
Posted: Fri Jul 04, 2025 3:31 pm
by MicroController
What LCD?!
How much power?
If you want to actually completely switch off power (3.3V) of external devices (which you can't power directly from a GPIO pin like the AHT10), the easiest way is indeed to just hook up a P-channel MOSFET to 3.3V and a GPIO output ("high-side switch").