I use the ESP32-S2-MINI-1 and esp-idf 4.2 module. I need to make this module work in active mode with minimal current consumption. The available energy-saving modes are not applicable for my application (continuous audio recording over I2S, radio communication is not used at this time).
In documentation esp32-s2-mini-1:
I conducted experiments with a radio module on a clean board without any additional elements, only power capacitors and RN1910 for programming.
Code: Select all
void app_main(void)
{
esp_pm_config_esp32s2_t pm_config = {
.max_freq_mhz = 80, // 10, 40, 80, 160, 240 - for experiments
.min_freq_mhz = 80, // 10, 40, 80, 160, 240 - for experiments
.light_sleep_enable = false,
};
esp_pm_configure(&pm_config);
while(1)
{
vTaskDelay(100);
}
}
10 MHz ~ 9 mA
40 MHz ~ 16 mA
80 MHz ~ 21.5 mA
160 MHz ~ 27 mA
This is much more than indicated in the documentation.
I do not understand how I can get the specified current consumption values in active mode without using low power modes, radio communication and initializing any peripherals.
Specifically, I need to get 12 mA at 80 MHz.
If the current consumption values indicated in the documentation are not erroneous, are really correct, could you describe how they can be obtained and give an example of the code, if the whole thing is in the program.