ESP32 life-time

User avatar
mbratch
Posts: 303
Joined: Fri Jun 11, 2021 1:51 pm

Re: ESP32 life-time

Postby mbratch » Fri Mar 25, 2022 11:55 am

svenbieg wrote:
Wed Mar 16, 2022 4:36 pm
My program was running in an endless-loop with no delay, so the CPU-load was 100% all the time. Maybe this caused the problem.
That's certainly an issue. What is the loop doing on each iteration? FreeRTOS is a cooperative real-time system. You should have at least a small delay (using `vTaskDelay`), or regularly have a call to wait for an event. With a dead loop, if there are any lower priority tasks in the system, or if you have software timers, they won't run. But until you rectify that and run more tests, you won't know if it is the primary cause of your problem. So fix that first, then see what happens.

svenbieg
Posts: 39
Joined: Tue Feb 11, 2020 5:48 pm

Re: ESP32 life-time

Postby svenbieg » Fri Mar 25, 2022 12:22 pm

It's a thermal solar controller. I had a simple loop reading analog values, setting the output corresponingly and starting over. I have changed the code already, now the main task is a in a waiting state until a timer is triggered. There are two timers now, a 100ms-timer for analog samples and a 1s-timer for controlling the output. Unfortunately i can't test my controller anymore because my father has bought a new plant. I've got no idea for another application at the moment, but i'm going to post an update as soon as i know more.

User avatar
mbratch
Posts: 303
Joined: Fri Jun 11, 2021 1:51 pm

Re: ESP32 life-time

Postby mbratch » Fri Mar 25, 2022 6:38 pm

Perhaps you could run the unit on its own and just feed it fixed, artificial input from a breadboard or something? That way you can determine if your original problem is resolved. Even if the problem changes a bit with a different plant, there would be a good principle to discover.

svenbieg
Posts: 39
Joined: Tue Feb 11, 2020 5:48 pm

Re: ESP32 life-time

Postby svenbieg » Fri Mar 25, 2022 6:49 pm

Thats right! I could do this, but it's not that interesting for me anymore. The new plant has a new controller and should work many years. Maybe i find another application.

vonnieda
Posts: 145
Joined: Tue Nov 07, 2017 3:42 pm

Re: ESP32 life-time

Postby vonnieda » Fri Mar 25, 2022 7:21 pm

For what it's worth, and to answer your original question, my company sells a number of ESP32 based products and we have had no longevity issues at all. We have tens of thousands of ESP32 devices in the field, some of them having been running 24/7 for 4+ years.

Jason

User avatar
mbratch
Posts: 303
Joined: Fri Jun 11, 2021 1:51 pm

Re: ESP32 life-time

Postby mbratch » Sun Mar 27, 2022 6:23 pm

svenbieg wrote:
Fri Mar 25, 2022 6:49 pm
Thats right! I could do this, but it's not that interesting for me anymore. The new plant has a new controller and should work many years. Maybe i find another application.
I was thinking that the lesson learned from the old application in determining the root cause of your original problem could be useful for future applications.

svenbieg
Posts: 39
Joined: Tue Feb 11, 2020 5:48 pm

Re: ESP32 life-time

Postby svenbieg » Sun Mar 27, 2022 6:43 pm

mbratch wrote:
Sun Mar 27, 2022 6:23 pm
svenbieg wrote:
Fri Mar 25, 2022 6:49 pm
Thats right! I could do this, but it's not that interesting for me anymore. The new plant has a new controller and should work many years. Maybe i find another application.
I was thinking that the lesson learned from the old application in determining the root cause of your original problem could be useful for future applications.
Maybe i track the temperature and humidity of my living-room and see how long it works.

Who is online

Users browsing this forum: Bing [Bot] and 85 guests