Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

ArduCAM Mini-5MP-Plus running on Raspberry Pi W2 produces zero length JPEG

Open dhylands opened this issue 2 years ago • 1 comments

I made the following changes in order to get the example to compile: https://github.com/ArduCAM/Arduino/pull/553

I run the following command:

$ ./ov5642_capture -c foo.jpg 320x240
OV5642 detected.
Changed resolution1 to 320x240
Start capture
CAM Capture Done
Reading FIFO and saving IMG
The length is 5000

However the length written to the foo.jpg file is always zero.

I added some prints and it never finds the 0xffd8 in the buffer.

When I modify the code to write all of the FIFO data and not filter anything, then I can see that there is 0xffd9 near the end, but no 0xffd8 at the beginning.

dhylands avatar May 16 '22 23:05 dhylands

I was able to get this version: https://github.com/ArduCAM/RaspberryPi/pull/75 to work on my Pi.

dhylands avatar May 17 '22 18:05 dhylands