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

ov5640 partial solution to the vertical lines #229

Closed
raduprv opened this issue Jan 3, 2021 · 1 comment
Closed

ov5640 partial solution to the vertical lines #229

raduprv opened this issue Jan 3, 2021 · 1 comment

Comments

@raduprv
Copy link

raduprv commented Jan 3, 2021

My solution works for my purposes (still images, highest resolution, manual exposure). I didn't test the video, or lower resolutions. I expect you will have to tweak the registers a bit, but it should be a good starting point.

Basically, the problem is that the sensor can't do long exposure without increasing the gain and/or lowering the clock rate by different means. So the sensor will compensate by increasing the gain, even if you disable that.

However, you can also increase the exposure by changing the vertical and horizontal timing).

s->set_reg(s,0x380c,0xff,0x1f);
s->set_reg(s,0x380d,0xff,0xff);

If you want to increase the exposure even further, you can do something like this:
s->set_reg(s,0x380e,0xff,0x2f);
s->set_reg(s,0x380f,0xff,0xff);

@github-actions
Copy link

github-actions bot commented Sep 3, 2021

This issue appears to be stale. Please close it if its no longer valid.

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

No branches or pull requests

1 participant