Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add delay before starting camera #652

Merged
merged 1 commit into from
Jul 20, 2021

Conversation

MarSoft
Copy link

@MarSoft MarSoft commented Jul 20, 2021

On the ESP32Cam board, when you try to start the camera right after boot-up,
it will give an error, like this:
[E][sccb.c:115] SCCB_Write(): SCCB_Write Failed addr:0x30, reg:0xc7, data:0x10, ret:-1
And then it will fail to init.
They say it is related to poor power supply.

But after I added this 500ms delay, the issue gone.
I suppose it's because after the board boot-up, there is a bunch of things initializing
and comsuming power, which causes camera voltage to be unstable.
And if we wait a bit then those initializations are over
and voltage is more stable.

On the ESP32Cam board, when you try to start the camera right after boot-up,
it will give an error, like this:
[E][sccb.c:115] SCCB_Write(): SCCB_Write Failed addr:0x30, reg:0xc7, data:0x10, ret:-1
And then it will fail to init.
They say it is related to poor power supply.

But after I added this 500ms delay, the issue gone.
I suppose it's because after the board boot-up, there is a bunch of things initializing
and comsuming power, which causes camera voltage to be unstable.
And if we wait a bit then those initializations are over
and voltage is more stable.
@luc-github luc-github merged commit 3c7082a into luc-github:3.0 Jul 20, 2021
@DjSteker
Copy link

very good solution, I like it because it also takes care of the other components

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants