Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

ArduCam_Host_V2.0_Mac and Arducam Mini-2MP-Plus unreliable single shot over serial

Open orionparrott opened this issue 4 years ago • 4 comments

I'm using Arducam Mini-2MP-Plus (OV2640) and trying to send images over serial to ArduCam_Host_V2.0_Mac on Catalina (10.15.5). I'm using Arduino Nano 33 BLE Sense. Running example script ArduCAM_Mini_Video_Streaming.ino, without modification.

The images are sent and saved on the Mac and I can save as BMP or JPG.

BUT the connection is unreliable and the image is saved only about 20% of the time. I cannot figure out what is needed to make the image capture happen every time. Sometimes when I click capture, the image that is saved is 3 images behind, tested by holding up different counting fingers for each attempted photo capture.

Why can it work some times but not all the time? I have baud rate set to 921600.

Thank you!

orionparrott avatar Jun 16 '20 17:06 orionparrott

Hey I'm using Arduino Nano 33 BLE Sense too but with different camera module. I found out that my camera module can't work with Arduino Nano 33 BLE Sense because that board has too high clock frequency. I wrote it here #489 Maybe somehow it's the same problem that you have ?

osynavets avatar Jun 16 '20 18:06 osynavets

Hi, thanks for your reply. It could be related. Looking further. Replied to your post on your thread. SCLK and processor clock speed are 2 different things.

orionparrott avatar Jun 16 '20 20:06 orionparrott

Looks like SCLK can be set with SPI.beginTransaction(SPISettings(8000000, MSBFIRST, SPI_MODE0)); //OWP added testing

Thanks for pointing me in that direction.

This didn't fix my problem but it made performance a little better (images are captured more often but still not always. Still looking for support from ArduCam to find a fix. Thanks

orionparrott avatar Jun 16 '20 21:06 orionparrott

Hi, Did you connect the Arduino Nano 33 BLE to the camera via the dupont wire? The length of the line on the impact of serial port signal is particularly large, I recommended to try a short line.If it still doesn't work, slow down the SPI speed to test.

ArducamSupport avatar Jun 22 '20 08:06 ArducamSupport