Hello,
I building new project around the latest ESP32S3, I wonder if reducing the CPU speed helps with the stability on any way?
For now I compile everything with 240Mhz (Wifi), alternatives would be 160Mhz or even down to 80Mhz after that there is no more wifi support, I guess the chip does not tick enough to do the wpa and other ops.
I ask this because with previous ESP models it was a recurring topic that reducing the speed from 160 Mhz to 80 Mhz will make the system more "stable"
In my case the device basically does sensor sampling and uses the ESP32 Asyncwebserver for displaying the stats on a page. If I reduce the speed that will only have 1 forseeable consequence to me: reduced page load speed. I definitely don't want that.
For making the wifi more stable ... not sure of that I have a check implemented anyway where the wifi connection is rechecked with a hold timer at X amounts of time if it's interrupted the device will try to reconnect 3 times if it cannot it will just RESET.
So waiting for the suggestions about this.
I planning on long operation (eg: 5-10 years turned on nonstop).
Reducing CPU speed for stability? ESP32S
-
- Posts: 836
- Joined: Mon Jul 22, 2019 3:20 pm
Re: Reducing CPU speed for stability? ESP32S
The only stability a lower speed has ever provided is a lower temperature. Overheating can cause unpredictable results in electronics.
If your process is not time dependent, then it is best to run at the lower rates. Note that there is sometimes a tradeoff, for example if you are typically going to be in deep sleep, it may be best to run at 240MHz for the brief time the device will be awake, so it can complete processing as quickly as possible. It is also possible to control the speed manually, so if you have a lot of calculation to do at some point, you ramp up the cpu, and then drop back down to 80MHz.
If your process is not time dependent, then it is best to run at the lower rates. Note that there is sometimes a tradeoff, for example if you are typically going to be in deep sleep, it may be best to run at 240MHz for the brief time the device will be awake, so it can complete processing as quickly as possible. It is also possible to control the speed manually, so if you have a lot of calculation to do at some point, you ramp up the cpu, and then drop back down to 80MHz.
Who is online
Users browsing this forum: No registered users and 26 guests