ESP32 deep sleep power consumption example in arduino ide
HTML-код
- Опубликовано: 17 янв 2019
- In this video we will make the ESP32 enter deep sleep en reduce the power consumption with a simple example within the arduino ide.
ESP32 setup & intro: • Sparkfun ESP32 thing I...
Official espressif code: git.io/fhluo
All my code will be available on my Patreon page:
/ 24023141
www.patreon.com/asali
Links:
Sparkfun ESP32 thing
Affiliate link: amzn.to/2SyQjsm
Normal link: goo.gl/abAiDf
Normal ESP32 (cheaper)
Affiliate link: amzn.to/2GTCHGS
Normal link: goo.gl/aNXDqi
In the end it doesn't really matter which ESP32 you are using as long as you change the "board" choice in the Arduino IDE to the correct board.
Credits:
Music:
Classique - Francis Preve
Thumbnail & video icon's:
ESP32 (created by myself)
Licensed by creativecommons.org/licenses/b...
Arrow icon by www.flaticon.com/authors/lyolya
Bed icon by www.flaticon.com/authors/geot...
Bluetooth icon by www.flaticon.com/authors/smas...
Clear and informative. Excellent video.
Thank you so much for the comment! If you have any tips for me on what I could improve on then let me know!
On many cheaper es32 boards the usb serial chip is always powered - just in case you are seeing huge currents. On the thing and firebeetle the USB chip is bus powered and so when using the battery input you get much lower power. Especially if you disable the power LED. Should be a few micro amps.
using fire beetle I managed to get to 9.4uA using the hibernate method. Should be able to get to 2.5uA but I think the difference is the regulator leakage current.
And what is the comsuption in this deepsleep Mode?
I don't suppose, that in your experiments with deep sleep mode, you discovered/know what happens say if you set a particular pin low or high, then go to sleep? Does the pin maintain its state during sleep? No worries if you don't know off hand, I can look for answers elsewhere (or experiment)
Its effectively a reboot and so the output pins do not maintain their state when powered off. I get your point though, the output register could easily maintain its state when in deep sleep leaving the output stage latched. But it doesn't. You can see that his LED goes off when it sleeps.
@@dr_jaymz Interesting. I was looking at my trello notes on this from January and found this: "www.espressif.com/sites/default/files/documentation/esp32_datasheet_en.pdf Page 21 seems to confirm that at least some (RTC?) pins maintain state even in hibernation mode (more in deep sleep mode)" however following that link now, I see the docs were updated in in April so page 21 isn't relevant any more... not sure which page it was now I'm afraid...
@@dr_jaymz I've still not got round to experimenting though... I really should...
Ah. Looks like it's Page 23 now. It says: "Hibernation mode: The internal 8-MHz oscillator and ULP co-processor are disabled. The RTC recovery
memory is powered down. Only one RTC timer on the slow clock and certain RTC GPIOs are active.
The RTC timer or the RTC GPIOs can wake up the chip from the Hibernation mode."
@@WistrelChianti I just tried the pins do not maintain state.
The upload speed has nothing to do with the serial speed you use afterwards.
Allright thanks for letting me know! :)
@@asali-channel Sorry if that sounded a bit harsh. I like the video, I just see a lot of people who upload their code at low speeds because of this. If you have a big program waiting for it to upload can really get annoying. I pretty much always use 921600bps :^)
@@FelixEFX no problem, I intend to learn from everybody! And so far 115200 is my lucky number ;)
@@asali-channel I think on reboot the boot message speed is fixed.