Open ghost opened 6 years ago
@mtronmaddie
The 2MP‘s pid is 0x42 and vid is 0x26. How do you change it ? Please try the below code : while(1){ //Check if the camera module type is OV2640 myCAM.wrSensorReg8_8(0xff, 0x01); myCAM.rdSensorReg8_8(OV2640_CHIPID_HIGH, &vid); myCAM.rdSensorReg8_8(OV2640_CHIPID_LOW, &pid); if ((vid != 0x26 ) && (( pid != 0x41 ) || ( pid != 0x42 ))){ Serial.println(F("Can't find OV2640 module!")); delay(1000);continue; } else{ Serial.println(F("OV2640 detected."));break; } }
@UCTRONICS, I was not changing the values I was getting from the ArduCAM, but I was reading different vid and pid values depending on which sample code I was running.
The vid values I got were (0x69) and pid (0x1C) from the ArduCAM_Mini_Capture2SD sample code. When I tried the ArduCAM_Mini_2MP_OV2640_functions code, I got values of (182 decimal) for vid and (0) for pid.
I'm pretty sure I bought the correct camera. Why would the values be changing?
@mtronmaddie From the phenomenon, It maybe because of the bad hardware connection and the driver of I2C . I advice you test your i2c bus separately. Notice: The connection between the UNO and camera shoud be as short as possible.
@UCTRONICS, I’m using SPI, not I2C. And my connection is fine!
@mtronmaddie The code read the camera's ID (pid and vid )through I2C interface.
We connected the I2C wires, but the values we're reading for pid & vid are not the expected values for a OV2640 module (Mini 2MP). Why would the values on our board not match what is expected?
@mtronmaddie Please use another mini demo to try. If you are ensure your hardware connection is fine and your software configure is right as our video guide. https://www.youtube.com/watch?v=hybQpjwJ4aA&feature=youtu.be Maybe your camera is defective and we will give you a resend .
Hello,
I'm trying to get an Arducam MINI 2MP OV2640 to work with my Arduino UNO which is connected to a microSD shield. I connected both the microSD-shield and the Arducam to the pins of the Arduino UNO,
After some trial and error, I am getting the error message "Can't find OV2640 module !" which comes from the following part of the example code:
ArduCAM_Mini_Capture2SD
`void setup(){
}`
and from ArduCAM_Mini_2MP_OV2640_functions
#if defined (OV2640_MINI_2MP) while(1){ //Check if the camera module type is OV2640 myCAM.wrSensorReg8_8(0xff, 0x01); myCAM.rdSensorReg8_8(OV2640_CHIPID_HIGH, &vid); myCAM.rdSensorReg8_8(OV2640_CHIPID_LOW, &pid); if ((vid != 0xB6 ) && (( pid != 0x00 ) || ( pid != 0x42 ))){ Serial.print(F("ACK CMD Can't find OV2640 module!")); Serial.print("vid: "); Serial.print(vid); Serial.print(" pid: "); Serial.println(pid); delay(1000);continue; } else{ Serial.println(F("ACK CMD OV2640 detected."));break; } }
I changed the values (vid 0xB6, pid 0x00, and pid 0x42) and problems are still persisting. When I check my serial monitor, all I see are dots. I made a chart of the values I have gotten, and the values I need.
___ | EXPECT | values | need
VID | 0x26 | 38 | 0x69 105 PID | 0x41 | 65 | PID | 0x42 | 65 | 0x1C 28 VID | | | 182 PID | | 0 | 0
@UCTRONICS