ArduCAM / Arduino

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

5MP Plus OV5642 not connecting with Arducam Host v2 #528

Open tddouglas opened 3 years ago

tddouglas commented 3 years ago

I'm using an Arudino Uno Wifi Rev2 board with an Arducam 5MP Plus OV5642 Mini Module Camera Shield SPI Camera Module and have wired it up just as instructed in the uno documentation: uno_wifi_arducam

I've configured the memorysaver.h file, and I've downloaded the libraries and moved them under the arduino/libraries folder as instructed in readme. But I am unable to get any of the example sketches working. Most recently, I attempted the ArduCam_Mini_5MP_OV5642_Plus_Functions sketch and I am unable to get it to communicate with the Arducam Host v2. It doesn't provide the normal boot up text and only show ArduCam Single when I click the capture button. ArduCam_Setup

If I change the baud rate to 115200 so the Arduino Serial Monitor can read it, I continually get "ACK CMD SPI interface Error! END" error messages. NewBaud

Can you provide any debug steps for getting my ArduCam to work over SPI?

cmcfarlin49 commented 2 years ago

Hi, did you ever figure this problem out or make any progress on it? I am having the exact same issue with the Arducam 5 MP plus module. I am trying to interface it with an Arduino Nano directly though. Thanks!

tddouglas commented 2 years ago

No I had to give up on this project because I couldn't get around this. Very sad there is non-existent support

Darshansgit commented 1 year ago

hi did you ever get this figured out

cmcfarlin49 commented 1 year ago

hi did you ever get this figured out

For me it was a baud rate issue. Default was 921600 and had to lower to 256000 to use camera with Arduino Nano even though Nano should have been OK up to 1 MHz. Hope that helps

Darshansgit commented 1 year ago

so im using an uno, id have to change it to what baud rate for it to work?

Atefan commented 1 year ago

Guys i did it! I use arduino uno and a 5MP plus arducam....What I did was modify in the ArduCAM_Mini_5MP_OV5642_Plus_Functions sketch the baud rate of the Serial.begin to 115200, bc in the code it may be 921600 so i just deleted the #if defined(SAM3X8E) and just left Serial.begin(115200); Wire.begin(); this is how it looks now:

    void setup() {
  // put your setup code here, to run once:
  uint8_t vid, pid;
  uint8_t temp;
    Serial.begin(115200);
    Wire.begin();
    //Serial.begin(921600);

  Serial.println("ACK CMD ArduCAM Start! END");
  // set the CS as an output:
  pinMode(CS, OUTPUT);
  digitalWrite(CS, HIGH);
  ...