OV5642 CHIPID returning 4920

  1. Where did you get the camera module(s)?

  2. Model number of the product(s)?
    OV5642 Mini Plus

  3. What hardware/platform were you working on?

  4. Instructions you have followed. (link/manual/etc.)
    Running sample scripts.

  5. Problems you were having? This block of code:

    //Check if the camera module type is OV5642
    myCAM.rdSensorReg16_8(OV5642_CHIPID_HIGH, &vid);
    myCAM.rdSensorReg16_8(OV5642_CHIPID_LOW, &pid);
    if ((vid != 0x56) || (pid != 0x42)){
      Serial.println(F("ACK CMD Can't find OV5642 module!"));
      Serial.println(F("ACK CMD OV5642 detected."));break;      

Returns 0x49 for OV5642_CHIPID_HIGH and 0x20 for OV5642_CHIPID_LOW, instead of the expected 0x56 0x42.

  1. The dmesg log from your hardware?

  2. Troubleshooting attempts you’ve made? I’ve reduced the script to the minimum sample. This block runs correctly:

  //Check if the ArduCAM SPI bus is OK
  myCAM.write_reg(ARDUCHIP_TEST1, 0x55);
  temp = myCAM.read_reg(ARDUCHIP_TEST1);
  if(temp != 0x55)
    Serial.println(F("ACK CMD SPI interface Error!"));
    Serial.println(F("ACK CMD SPI interface OK."));break;

I’ve attached and reattached the camera to the arduino model. Everything appears to be hooked up correctly.

  1. What help do you need?
    Any ideas why these values would be returned incorrectly? I have tried everything I can think of and i’m at a loss at this point.