-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
If your ESP32 is powered by a powerbank (link I plan to do) you might be interested in power saving settings.
In an old project of mine, I use these settings:
// underclocking the ESP32 CPU
#include "esp32-hal-cpu.h"
setCpuFrequencyMhz(80); // 240, 160, 80
// WiFi power saving
#include "esp_wifi.h"
// enable Power Saving Modem -> only WiFi keep
// esp_wifi_set_ps(WIFI_PS_MODEM); // ESP32 1.0.4
// esp_wifi_set_ps(WIFI_PS_MIN_MODEM); // ESP32 2.0.0
esp_wifi_set_ps(WIFI_PS_MAX_MODEM); // ESP32 2.0.0
// see https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/wifi.html
Here an interesting recent article about powersaving.
christian-heusel
Metadata
Metadata
Assignees
Labels
No labels