indrekluuk / LiveOV7670

A step-by-step guide to building the circuit for this project:
https://circuitjournal.com/arduino-ov7670-10fps
243 stars 91 forks source link

Color 640x480 #19

Open ClaudiuB1 opened 4 years ago

ClaudiuB1 commented 4 years ago

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 commented 4 years ago

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.