Arduino
Arduino copied to clipboard
empty image file
Hi, I am using the OV5642_5MP_PLUS with the raspberry pi 4 B.
I enabled the following in memorysaver.h
:
#define OV5642_MINI_5MP_PLUS
I have the CS pin connected on pin 24 (GPIO 8)and I set this in arducam_ov5642_capture.cpp
:
#define CAM1_CS 8
then I tried to run the example by sudo ./ov5642_capture -c test.jpg 320x240
and this was the output:
OV5642 detected.
Changed resolution1 to 320x240
Start capture
And then nothing happens. I waited for more than 3 minutes and still nothing.
So, in arducam_arch_raspberrypi.c
, I changed
#define SPI_ARDUCAM_SPEED 1000000
to #define SPI_ARDUCAM_SPEED 4000000
and I got the following output:
OV5642 detected. Changed resolution1 to 320x240 Start capture CAM Capture Done Reading FIFO and saving IMG The length is 8040
Now if I look at the test.jpg, its size is 0 bytes!
Can you please help :(
Thanks