Okay from the PM
this is my Device There is only one difference between the cameras. I use camera ov2640
It looks like an AI Thinker cam. So you are using the #define CAMERA_MODEL_AI_THINKER
setting, right?
Please use the Arduino IDE where the sketch works. After Serial.begin()
, add the code
Serial.println("Y2_GPIO_NUM: " + String((int)Y2_GPIO_NUM));
Serial.println("Y3_GPIO_NUM: " + String((int)Y3_GPIO_NUM));
Serial.println("Y4_GPIO_NUM: " + String((int)Y4_GPIO_NUM));
Serial.println("Y5_GPIO_NUM: " + String((int)Y5_GPIO_NUM));
Serial.println("Y6_GPIO_NUM: " + String((int)Y6_GPIO_NUM));
Serial.println("Y7_GPIO_NUM: " + String((int)Y7_GPIO_NUM));
Serial.println("Y8_GPIO_NUM: " + String((int)Y8_GPIO_NUM));
Serial.println("Y9_GPIO_NUM: " + String((int)Y9_GPIO_NUM));
Serial.println("XCLK_GPIO_NUM: " + String((int)XCLK_GPIO_NUM));
Serial.println("PCLK_GPIO_NUM: " + String((int)PCLK_GPIO_NUM));
Serial.println("VSYNC_GPIO_NUM: " + String((int)VSYNC_GPIO_NUM));
Serial.println("HREF_GPIO_NUM: " + String((int)HREF_GPIO_NUM));
Serial.println("SIOD_GPIO_NUM: " + String((int)SIOD_GPIO_NUM));
Serial.println("SIOC_GPIO_NUM: " + String((int)SIOC_GPIO_NUM));
Serial.println("PWDN_GPIO_NUM: " + String((int)PWDN_GPIO_NUM));
Serial.println("RESET_GPIO_NUM: " + String((int)RESET_GPIO_NUM));
and upload the code.
- Does the camera still work?
- What is the serial output for all pins?
Now add the same code in the PlatformIO project. Does it output the same pins?