Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arducam Mega - Arduino MKR compatibility #579

Open
Ernest-Paprec opened this issue Aug 22, 2023 · 0 comments
Open

Arducam Mega - Arduino MKR compatibility #579

Ernest-Paprec opened this issue Aug 22, 2023 · 0 comments

Comments

@Ernest-Paprec
Copy link

Hello,
I am trying to make communication between an Arducam Mega (model B0434) and an Arduino from the MKR family (the microcontroller for this family is the ATSAMD21G18A). Despite this family not beeing listed as supported by the library, I don't see what is preventing it from working.

I use the "ArduinoHal.h" platform (forced in the Platform.h file of the library).
I confirmed the well working of the SPI bus using another SPI peripheral.
The camera is working fine with an Arduino Uno.
The version of the library I use is the 2.0.8, installed through Arduino IDE.

Here is the simple program used, based on the capture2SD example.

#include "Arducam_Mega.h"

const int CS = 7;

Arducam_Mega myCAM( CS );
void setup() {
    Serial.begin(115200);
    while(!Serial);
    Serial.println("Setup");
    myCAM.begin();
    Serial.println("Cam beginned");
    myCAM.takePicture(CAM_IMAGE_MODE_QVGA,CAM_IMAGE_PIX_FMT_JPG);
    Serial.println(myCam.getReceivedLength());
}

void loop() {}

Despite this, the program hangs at the myCAM.begin(); line.
Could someone help me here?

Thanks a lot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant