Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

How do we run arducam ov5642 mini 5mp plus with arduino uno r3?

Open DavidNtlele opened this issue 2 years ago • 8 comments

We have tried running the mini ov5642 plus 5mp with the arduino uno r3. We wired them as instructed and the code gets uploaded swifly, but the com in the host app does not open. What could be the problem?

DavidNtlele avatar Mar 07 '23 08:03 DavidNtlele

what is the error: cannot open port or camera open error? what com port are you using? try using a different one (i.e. not com1)

nextdayy avatar Mar 08 '23 13:03 nextdayy

We have tried using different com ports and the problem still won't dissolve. The error that pops up is '' SPI interface error '' I have done some research and it all leads me to the clock pulse speed of the master(UNO R3 board/16MHz) and the slave(arducam mini 5mp plus/8MHZ). How do we REDUSE the uno r3 clock speed to match the Arducam mini 5mp plus.

Just maybe this is the solution to our problem.

DavidNtlele avatar Mar 09 '23 15:03 DavidNtlele

the problem is probably with your wiring, as the camera is on a 4mhz clock and that is the clock speed for the board, not the SPI interface (which is controlled by the code, and does work).

could you please send a photo of your connection?

nextdayy avatar Mar 09 '23 16:03 nextdayy

20230310_110524 20230310_110709 20230310_110729

DavidNtlele avatar Mar 10 '23 09:03 DavidNtlele

the gray wire should be in pin 7.

nextdayy avatar Mar 10 '23 11:03 nextdayy

We have tried it in different pins like pins 6, 7, and 10, but it still reflects the error "SPI interface error".

DavidNtlele avatar Mar 10 '23 12:03 DavidNtlele

if you change the pin, you must make sure the pin you choose reflects the one in the code.

Also, have you made sure to select the correct chip in the code (ov5642/5mp plus), and the chip select (gray wire), and using the correct example code?

nextdayy avatar Mar 10 '23 12:03 nextdayy

We have done all that accordingly and still.

DavidNtlele avatar Mar 10 '23 12:03 DavidNtlele