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

OV2640 standby support #672

Open
jksemple opened this issue Jul 30, 2024 · 2 comments
Open

OV2640 standby support #672

jksemple opened this issue Jul 30, 2024 · 2 comments

Comments

@jksemple
Copy link

This issue revisits #101 which was closed due to inactivity.
However, @me-no-dev commented that he 'will implement this very soon' - which was 4 years ago.

This is still a problem and effectively prevents ESP32 Camera being used in any low power / battery role.

@jksemple
Copy link
Author

For those struggling with this I have tested OV3660, which does cope with software standby:
sensor->set_reg(sensor, 0x3008, 0x40, enable ? 0x40 : 0x00);

Current drawn by a Xiao ESP32S3 Sense equipped with OV3660 instead of OV2640 drops to less than 5mA in deep sleep after putting the camera into standby mode as above. It is also possible to put the camera into standby mode between pictures which reduces current draw by about 60mA while not in use.

It is likely this code will work with OV5640 too as it has the same registers.

@jksemple
Copy link
Author

jksemple commented Sep 1, 2024

sensor_t* sensor = esp_camera_sensor_get();
sensor->set_reg(sensor, 0x3008, 0x40, enable ? 0x40 : 0x00);

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

No branches or pull requests

1 participant