I have a Pi Zero with the version 2 pi camera. Lately, when running a program that takes pictures continuously (about once every 2 seconds), the device completely stops and reboots. The program works fine for a few seconds but then the Pi just turns off.
My original thought was that the exposed back part of the camera was making contact with the metal case it was mounted in, and causing some sort of short, but that was proven not to be the problem as I wrapped the camera in electrical tape and the Pi still shuts off.
My second idea was that the Pi was not receiving enough power. This is strange because the program worked a few months ago with out problem. The underlying cause could be that the program is too intensive for the Pi, although cpu usage is only at about 30-40% when running.
I've run out of ideas. What could be causing this problem?