Open jksemple opened 2 months ago
I implemented the esp_camera_deinit() in the code #4, but I don't have the tools to test and measure it. As far as I can read, the camera is now deinitialized before the CPU.
The consensus view is that esp_camera_deinit does not work, doesn't stop the Ov2640 camera drawing high current and stops the camera working again until power to it is cycled. See my earlier link. Suggest you check how long your battery lasts as I don't know of anybody else who has managed to get low current consumption during deep sleep using a Ov2640 on esp32s3.
If you are using the Xiao ESP32S3 Sense with OV2640 camera you may be experiencing short battery life when in deep sleep mode. It seems the OV2640 does not go to sleep with the CPU and continues to consume 20mA which would give you 5 hours battery life with a 100mA LIPO. However, the OV3660 camera can be put into software standby mode before deep sleep which reduces current consumption to about 1.5mA. You might find the discussion here of interest: https://forum.seeedstudio.com/t/xiao-esp32s3-sense-camera-sleep-current/271258