Page 1 of 3
Deep Sleep or other power saving functions?
Posted: Wed May 31, 2017 10:06 pm
by E-M-Dev
Hello,
Are there any working power saving functions right now?
For silicon Rev 0 or 1.
Does somebody have got some measured data (with setup)?
Regards,
Rick
Re: Deep Sleep or other power saving functions?
Posted: Thu Jun 01, 2017 1:54 am
by ESP_Sprite
Deep sleep is pretty well supported, including using the ULP to still do some work.
http://esp-idf.readthedocs.io/en/latest ... sleep.html
Re: Deep Sleep or other power saving functions?
Posted: Sun Jun 04, 2017 6:21 pm
by onehorse
Is there an example using deep sleep with the Arduino IDE?
And I have an external 32.768 kHz LSE on my ESP32 dev board. How is this used in the RTC domain?
Re: Deep Sleep or other power saving functions?
Posted: Tue Jun 06, 2017 2:34 pm
by martinayotte
You can use those functions in an Arduino sketch, by adding proper include, of course :
Code: Select all
extern "C" {
#include "esp_deep_sleep.h"
}
...
esp_deep_sleep_enable_timer_wakeup(10000000);
esp_deep_sleep_start();
Re: Deep Sleep or other power saving functions?
Posted: Tue Jun 06, 2017 7:10 pm
by E-M-Dev
@martinayotte How much current do You need with this code (on which board)?
Regards,
Rick
Re: Deep Sleep or other power saving functions?
Posted: Wed Jun 07, 2017 3:39 am
by onehorse
@Martin Excellent, thank you!
I tried it but it didn't compile for me, probably because I am using an old Ardino core.I'll update and try again.
Now can we use some similar simple incantation to enable light sleep?
Re: Deep Sleep or other power saving functions?
Posted: Wed Jun 07, 2017 1:11 pm
by martinayotte
@E-M-Dev, I didn't measure the deepSleep() current.
@onehorse, I've not looked yet about lightSleep ...
Re: Deep Sleep or other power saving functions?
Posted: Wed Jun 07, 2017 1:33 pm
by kostyan5
Just a heads up, many boards (including ESP32 WROOM, at least from the schematics available) do not have a pull-up on flash /CS line. This means that when the ESP32 goes to sleep and GPIO is turned off, the /CS line is floating. This prevents the flash from going to standby mode. For my custom board, the deep sleep power consumption dropped from 900uA to 65uA after adding a 100kOhm pullup on the /CS line.
Re: Deep Sleep or other power saving functions?
Posted: Wed Jun 07, 2017 7:30 pm
by E-M-Dev
@kostyan5 which board exactly are You using?
AFAIK there is no difference if You pull up that pin to high.
My board needs ~90µA with ULDO and Li Ion charger hooked up.
Re: Deep Sleep or other power saving functions?
Posted: Wed Jun 07, 2017 7:33 pm
by kostyan5
ESP32 Thing by Sparkfun. Which board are you using?