Hi I made your project ESP32-CAM surveillance Camera that works ok for a few days but then it goes offline, then if you reset it works again for a few days but then goes offline again, so I have tried the following.
Change 5 volt supply from 1 amp to 2 amp.
Run the camera on a lipo battery with a 5-volt booster.
Put the camera next to my router to maximise the signal.
Fit a heatsink on the ESP32 metal cover as it gets hot.
Disconnect the 5 volts and use the 3-volt input through a 3.3-volt regulator.
Added a 220uF cap to the input with a 0.1 ceramic capacitor.
So I am lost at this point I can’t think of anything else to do to keep it working?
Any suggestions would be good
Thanks, Bob 08-01-2022
Hi Bob.
I was suggesting everything that you’ve done already.
I don’t have any other ideas to find out what might be causing the issue.
Is the ESP32-CAM still running when it goes offline? Or does it completely power off?
Regards,
Sara
Hi Sara
Thank you for your quick response to my problem, but to answer your question yes it is still running but not so hot as it is not transmitting I think? I have two of these cameras so I thought perhaps it is faulty so I took the other one this is without the heatsink as I only had one leftover from a raspberry pi kit, anyway I programed this other camera with your code to see if it would do the same and it did within two days it stopped transmitting again the same as the other camera so this time I used my tablet to receive the picture as I know when you turn off the receive the camera stops transmitting and you can only have one instance of the received picture anyway within two days it stopped again but it was working just no output? so with that in mind do you have any suggestions please Sara as I am really stuck and do you have any problems like this with your camera??
Thanks, Bob
Hi.
Do you know what happens with the board in that situation?
Maybe the internet connection fails?
I heard some cases that after a few days the board disconnected from the internet. If that’s your case, you can try to add an if statement to check if there is an internet connection and restart in case it fails.
Regards,
Sara
Hi Sara
Thank you for your input it sounds like I have the same problem please can you share the code to add to your code as I am not sure how to implement that to make it restart if it stops.
Cheers Bob
I don’t have any code to do exactly that.
You can restart your board with ESP.restart().
And to check if you have an internet connection and wi-fi related functions, you can take a look at this tutorial: https://randomnerdtutorials.com/esp32-useful-wi-fi-functions-arduino/
Regards,
Sara
Thanks, Sara for your help I will have a good read of the data you have provided.
Cheers Bob