Skip to content

SPI/SD Errors ArduCAM_Mini_2MP_TimeElapse2SD #484

@rehrehreh

Description

@rehrehreh

I'm using the example referenced in the issue title. My SD card module is connected to the same MOSI, MISO, and SCK as the Arducam 2MP Plus. The SD_CS is pin 9, the Cam_CS is 7.

The Serial prints for my code is below:

ArduCAM Start!
SPI interface Error!
SPI interface Error!
SPI interface Error!
SPI interface Error! -----At this point I disconnected the 5V line from the SD module. I've found out this triggers the SPI interface for the camera to be detected

SPI interface OK.
ACK CMD OV2640 detected.
SD Card detected. ------ I put the 5V line back into the SD module so it could be read.

start capture.
CAM Capture Done.
capture total_time used (in miliseconds):1
The fifo length is :8388607 -----From my research on the forums, this value for a fifo length is an invalid value

Over size.
save capture total_time used (in miliseconds):4

----Code crashes before trying to open or save the file

start capture.

----Code pauses here until I disconnect the 5V line from the SD module again

CAM Capture Done.
capture total_time used (in miliseconds):-16018
The fifo length is :271368

----While the SD is disconnected the Camera gives a valid fifo length reading. However, since there is no supply to the SD module the file saving will not work

File open failed

It seems to me there is an issue with having multiple slaves on the same loop for this code.
Do I have to write the SD_CS low for it to activate while the camera is trying to save?
Why does the Camera not respond when the SD module has power?
The SD module I am using is a HiLetGo SD Module. I've tested both independently and they work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions