Hi guys, this is my first post here and I have been dealing with this issue for months.
I have been programming for around 20 years but with C and Arduino just 1 year.
I'm using an ESP32-S3 Devkit, powered with a Mean well power supply 5v 3A. The Algo controls 11 relays, 2 led and 2 joysticks. It uses wifi, witch I think issues can come because of it.
Its a device that controls water pumps and electrovalves in a swimming pool.
It has been running without any problem for months but then started to brownout (500mAh)
Due to this, I changed 5v power supply for a quality one (Mean well 1A)It worked for some more months but after a while, brownout appears again.
I buyed a more Ampere power supply and bigger (Mean well 3A with volt regulator).
It worked again for some months.
Then, randomly started to brownout. I mean, it worked smooth for a week and then, constantly reboots (I managed to reduce brownout to increase power V to 5.5V) I found there was a slight drop in Devkit Power regulator, so increasing a little worked for a while). This same behaviour happened with the other power supplies too.
This week, this happened again, but with a difference.
Now I need to disconnect the devkit from my custom board pins because now it stops working and I don't have notification (I setup notification of reboot reasons). Because power of and power on does not reboot the device properly. I need to connect to USB and that way it works again. Then I go to my setup and connect the pins, power on and it works again. Just to remember, this happens this last week after almost 1 year.
Same code, same environment.
And with that, I'm a bit lost now.
Is there anyone with more experience than me who can point me in any direction?
I have been thinking to put some sleeps before and after of every wifi transmission, but I don't really know if it makes sense.