Apologies for commenting in English, I will try to write in a way that is friendly to automatic translation.
I purchased a Seeed Studio XIAO ESP32 S3 Sense development board with an OV3660 sensor and installed ESP32-Display-Reader on it, but was not able to get the camera to function. Guided by some AI suggestions, I overwrote the pin assignments for the ai_thinker model and was able to get it to work. In the camera_service.cpp, I changed the pin assignments as follows:
if (model == "ai_thinker") {
c.pin_pwdn = -1;
c.pin_reset = -1;
c.pin_xclk = 10;
c.pin_sccb_sda = 40;
c.pin_sccb_scl = 39;
c.pin_d7 = 48;
c.pin_d6 = 11;
c.pin_d5 = 12;
c.pin_d4 = 14;
c.pin_d3 = 16;
c.pin_d2 = 18;
c.pin_d1 = 17;
c.pin_d0 = 15;
c.pin_vsync = 38;
c.pin_href = 47;
c.pin_pclk = 13;
return true;
}
I also changed the power-cycle and reset blocks to comment out the power toggles:
// if (cfg.camera.model == "ai_thinker") {
// pinMode(32, OUTPUT);
// digitalWrite(32, HIGH); // Sensor power-down
// delay(200);
// digitalWrite(32, LOW); // Sensor power-up
// delay(200);
// }
// if (cfg.camera.model == "ai_thinker") {
// digitalWrite(32, HIGH);
// delay(200);
// digitalWrite(32, LOW);
// delay(200);
// }
Now all functions work correctly, although I still have to incorrectly identify the board as an ai_thinker model - my coding skills are not adequate to create an entirely new camera model. Perhaps someone with more talent can add a model for xiao_esp32s3 that skips the power cycling and maps the pins as shown above.
Thank you for your project!
Apologies for commenting in English, I will try to write in a way that is friendly to automatic translation.
I purchased a Seeed Studio XIAO ESP32 S3 Sense development board with an OV3660 sensor and installed ESP32-Display-Reader on it, but was not able to get the camera to function. Guided by some AI suggestions, I overwrote the pin assignments for the ai_thinker model and was able to get it to work. In the camera_service.cpp, I changed the pin assignments as follows:
I also changed the power-cycle and reset blocks to comment out the power toggles:
Now all functions work correctly, although I still have to incorrectly identify the board as an ai_thinker model - my coding skills are not adequate to create an entirely new camera model. Perhaps someone with more talent can add a model for xiao_esp32s3 that skips the power cycling and maps the pins as shown above.
Thank you for your project!