Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Power Saving #2

Open
entorb opened this issue Mar 6, 2024 · 1 comment
Open

Proposal: Power Saving #2

entorb opened this issue Mar 6, 2024 · 1 comment

Comments

@entorb
Copy link
Contributor

entorb commented Mar 6, 2024

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
Copy link
Owner

This sounds simple enough, if you already have some expertise with these settings feel free to send a PR! 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants