Skip to content

Proposal: Power Saving #2

@entorb

Description

@entorb

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions