tech-nickk / The-Smallest-DIY-Spy-Cam

The Smallest DIY Spy Cam is a compact, easy-to-build camera using the Xiao ESP32S3 Sense. It captures images with a button press and saves them to an SD card, all within a tiny form factor. Perfect for discreet photography and mini electronics enthusiasts!
MIT License
13 stars 0 forks source link

Deep sleep issues #1

Open jksemple opened 2 months ago

jksemple commented 2 months ago

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

bastifpv commented 1 month 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.

jksemple commented 1 month ago

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.