Is the performance / power consumption of ESP32 configurable?

yuwenpeng
Posts: 30
Joined: Tue Apr 12, 2022 6:25 am

Is the performance / power consumption of ESP32 configurable?

Postby yuwenpeng » Sat Jun 18, 2022 5:57 pm

Is there any performance/power consumption configuration to reduce the variation of the current?
In my project I use Wifi to send data, which drains more current from the 5V source. However, it seems Wifi or some task is not always working but periodically start/stops every 1.33 second. Then the voltage also varies every 1.33 second, as shown in the attached picture. The voltage noise makes trouble to my project, so I want to reduce the magnitude of the 1.33 Hz variation.
I'm wondering if there is any configuration to make the wifi work at full performance all the time other than periodically stops every 1.33 seconds?
WeChat Image_20220618140002.png
WeChat Image_20220618140002.png (190.05 KiB) Viewed 1973 times

markkuk
Posts: 38
Joined: Wed Mar 27, 2019 11:50 am

Re: Is the performance / power consumption of ESP32 configurable?

Postby markkuk » Sun Jun 19, 2022 10:58 am

Try using esp_wifi_set_ps(WIFI_PS_NONE) to disable WiFi power saving mode.

yuwenpeng
Posts: 30
Joined: Tue Apr 12, 2022 6:25 am

Re: Is the performance / power consumption of ESP32 configurable?

Postby yuwenpeng » Sun Jun 19, 2022 9:40 pm

Thank you Markkuk!
I tried this function with 'WIFI_PS_NONE' and 'WIFI_PS_MAX_MODEM' options. It seems doesn't make too much difference. The reason could be it kept sending data with WiFi, data rate is around 400kB/s and 10 packages per second. There may not be much room for the different power-saving mode.
I measured the current of the ESP32 module, as attached below, in case someone may need. There is a voltage regulator on the ESP32 module to convert 5V to 3.3V. With the current variation, the major variation of the output voltage is around 2mV, which changes the oscillator frequency a little bit.
Current.png
Current.png (212.41 KiB) Viewed 1896 times

Who is online

Users browsing this forum: atx823, Bing [Bot], Gaston1980, Google [Bot] and 237 guests