How to use power-management / atuomatic light-sleep in Arduino?

greengnu
Posts: 66
Joined: Wed May 08, 2019 8:45 pm

How to use power-management / atuomatic light-sleep in Arduino?

Postby greengnu » Sun Apr 06, 2025 10:50 am

So apparently it's possible to enable power management functions that put the esp32 into light-sleep without losing WiFi connection by periodically waking up and keeping WiFi connections alive, but still spending most time in light-sleep.

https://docs.espressif.com/projects/esp ... ement.html states that this requires to be enabled at compile time using CONFIG_PM_ENABLE. Is this possible in Arduino with its precompiled core? if not, is there a workaround?

lbernstone
Posts: 1132
Joined: Mon Jul 22, 2019 3:20 pm

Re: How to use power-management / atuomatic light-sleep in Arduino?

Postby lbernstone » Sun Apr 06, 2025 4:57 pm

Not possible in esp32-arduino at the moment, as the core is doing it's own timing management. Work is being done on this. As mentioned there, you can enable power management if you compile IDF with arduino as a component, but this may break major peripherals.

Who is online

Users browsing this forum: No registered users and 6 guests