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

Color 640x480 #19

Open
ClaudiuB1 opened this issue Jan 5, 2020 · 1 comment
Open

Color 640x480 #19

ClaudiuB1 opened this issue Jan 5, 2020 · 1 comment

Comments

@ClaudiuB1
Copy link

ClaudiuB1 commented Jan 5, 2020

Hi @indrekluuk ,
I am trying go get a color image at vga resolution(640x480) over the serial port.
But the image is repeating over a full frame.
Color640x480
This is the code i changed:

#if UART_MODE==4
static const uint16_t lineLength = 640;
static const uint16_t lineCount = 480;
static const uint32_t baud  = 1000000;
static const uint32_t uartSendWhileReadingCount  = 4;
static const uint8_t uartPixelFormat = UART_PIXEL_FORMAT_RGB565;
CameraOV7670 camera(CameraOV7670::RESOLUTION_VGA_640x480, CameraOV7670::PIXEL_RGB565, 25);//16
#endif

@indrekluuk
Copy link
Owner

Hey! If I remember correctly, then I couldn't get it working myself either.
The problem was that UART is too slow. I was not able to slow the camera down enough to match the slow UART speed. The last parameter of the CameraOV7670 class is for slowing down the camera. The bigger the number, the slower the camera will be. If I remember correctly, then the max value is 63.

I think it could theoretically be done if you started lowering the input clock to the camera. But I haven't tried this myself.

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

2 participants