ArduCAM / Arduino

This is ArduCAM library for Arduino boards
MIT License
479 stars 351 forks source link

empty image file #516

Open meleffendi opened 3 years ago

meleffendi commented 3 years ago

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

ArducamSupport commented 3 years ago

Hi,

Please refer to this link:https://github.com/ArduCAM/RaspberryPi/tree/master/SPI_Camera