Life span of ESP32 Devkit 1

devdebono
Posts: 1
Joined: Wed Jul 24, 2024 7:22 am

Life span of ESP32 Devkit 1

Postby devdebono » Wed Jul 24, 2024 7:24 am

Hi, I have a project which is a poultry management system and am using ESP32 as my controller. As part of my project is to include the life span of that or the average operating hours of it. I hope anyone knows thank you! If there are basis or reference to it, much better. Thanks again!

ESP_Sprite
Posts: 9545
Joined: Thu Nov 26, 2015 4:08 am

Re: Life span of ESP32 Devkit 1

Postby ESP_Sprite » Wed Jul 24, 2024 11:55 pm

Should be fairly trivial. On startup, set a timer that triggers e.g. every 10 minutes. In the timer callback, add 1 to a variable in nvs. That variable now contains the total runtime of your solution in 10 minute increments.

Who is online

Users browsing this forum: Google [Bot] and 69 guests