Replies: 1 comment 1 reply
-
If light sleep is causing issues with the camera, you may need to reinitialize the camera after waking up from light sleep. import camera def init_camera():
init_camera() machine.lightsleep(time_in_ms) init_camera() To confirm if light sleep is the cause of the problem, try running your code without entering light sleep and see if the picture quality improves. If the issue disappears, then it's likely that light sleep is affecting your camera's operation. For a better connection, you can make a board for the ESP32-Cam like this: https://www.pcbway.com/project/shareproject/ESP32_CAM_Adaptor_PCB.html |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been battling variable picture quality and I don't think it is the camera distro that I am using.
https://github.com/shariltumin/esp32-cam-micropython-2022
It seems that if I use
lightsleep()
that my problems start.Other places where I use lightsleep, for output pins I hold their state before going to lightsleep and release it when coming out of lightsleep.
Do any of the camera GPIO need the same thing done to them if they are output pins?
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions