ESP32 interfaced with AHT10 sensor
ESP32 interfaced with AHT10 sensor
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
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
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.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
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
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" ?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
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
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?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.
-
MicroController
- Posts: 2661
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: ESP32 interfaced with AHT10 sensor
Try gpio_deep_sleep_hold_en() and see if that makes a difference.
Re: ESP32 interfaced with AHT10 sensor
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.Try gpio_deep_sleep_hold_en() and see if that makes a difference.
-
MicroController
- Posts: 2661
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: ESP32 interfaced with AHT10 sensor
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").
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").
Who is online
Users browsing this forum: Applebot, ChatGPT-User, PerplexityBot, Semrush [Bot] and 12 guests
