ESP32 light sleep issues (resolved) #16294
Replies: 3 comments 9 replies
-
Would using the flash = Pin(4,Pin.OUT, hold=False)
flash.init(hold=True)
lightsleep(60000)
flash.init(hold=False) |
Beta Was this translation helpful? Give feedback.
-
OK! it's working! using 6-12mA (inaccurate) during light sleep displaying "13:58" in a 3x5 pixel font. This might be a board specific issue I was having, or perhaps related to specific pins. I was having problems with a Wemos C3 Pico (ESP32-C3). I'll try and reproduce the problem later. |
Beta Was this translation helpful? Give feedback.
-
Next problem. I can't get GPIO to wake from light sleep. Or it's not working how I expected. Is it meant to exit the light sleep? (maybe not from examples I see)
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way to keep an SPI (or i2c?) OLED on during light sleep?
I'm making a custom alarm clock (I get up at different times each day), with battery back up, that could hopefully run in a low power mode for a week+.
ESP32 in a busy loop or sleep(x) uses about 30-40 mA. With a 2.4" SSD1309 display with only 30-40 pixels lit (like the picture) there's no appreciable change in power consumption, vs displaying nothing. Large text takes total up to 100-120mA. No screen attached is still in the 30+mA range.
Light sleep seems perfect, it can resume with current memory etc. Power consumption is so low I can't measure it. But the OLED goes off.
Id love it if I could use light sleep, and update the OLED once a minute and keep it on.
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions