Deep Sleep or other power saving functions?
Deep Sleep or other power saving functions?
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
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
-
- Posts: 9764
- Joined: Thu Nov 26, 2015 4:08 am
Re: Deep Sleep or other power saving functions?
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?
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?
And I have an external 32.768 kHz LSE on my ESP32 dev board. How is this used in the RTC domain?
- martinayotte
- Posts: 141
- Joined: Fri Nov 13, 2015 4:27 pm
Re: Deep Sleep or other power saving functions?
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?
@martinayotte How much current do You need with this code (on which board)?
Regards,
Rick
Regards,
Rick
Re: Deep Sleep or other power saving functions?
@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?
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?
- martinayotte
- Posts: 141
- Joined: Fri Nov 13, 2015 4:27 pm
Re: Deep Sleep or other power saving functions?
@E-M-Dev, I didn't measure the deepSleep() current.
@onehorse, I've not looked yet about lightSleep ...
@onehorse, I've not looked yet about lightSleep ...
Re: Deep Sleep or other power saving functions?
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?
@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.
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?
ESP32 Thing by Sparkfun. Which board are you using?
Who is online
Users browsing this forum: No registered users and 21 guests