ESP32CAM Error: Camera prove failed

I get error on Serial Monitor Arduino IDE like this:
E (10297) camera: Camera probe failed with error 0x105(ESP_ERR_NOT_FOUND)
........WiFi connected

192.168.100.145
Stream Link: http://192.168.100.145/mjpeg/1
(Cam not found if I open the url, bcs I get an error camera probe)

I use the type of esp32cam like the image below. I use esp32cam in module esp32s, not the module with text AI thinker.
And I still upload code #define camera model ai thinker.
And the camera_pins.h, I still using this one:

[Codebox]
#elif defined(CAMERA_MODEL_AI_THINKER)
#define PWDN_GPIO_NUM 32
#define RESET_GPIO_NUM -1
#define XCLK_GPIO_NUM 0
#define SIOD_GPIO_NUM 26
#define SIOC_GPIO_NUM 27

#define Y9_GPIO_NUM 35
#define Y8_GPIO_NUM 34
#define Y7_GPIO_NUM 39
#define Y6_GPIO_NUM 36
#define Y5_GPIO_NUM 21
#define Y4_GPIO_NUM 19
#define Y3_GPIO_NUM 18
#define Y2_GPIO_NUM 5
#define VSYNC_GPIO_NUM 25
#define HREF_GPIO_NUM 23
#define PCLK_GPIO_NUM 22
[/Codebox]

The pins, I have implementation that in this code
[Codebox]
camera_config_t config;
config.ledc_channel = LEDC_CHANNEL_0;
config.ledc_timer = LEDC_TIMER_0;
config.pin_d0 = Y2_GPIO_NUM;
config.pin_d1 = Y3_GPIO_NUM;
config.pin_d2 = Y4_GPIO_NUM;
config.pin_d3 = Y5_GPIO_NUM;
config.pin_d4 = Y6_GPIO_NUM;
config.pin_d5 = Y7_GPIO_NUM;
config.pin_d6 = Y8_GPIO_NUM;
config.pin_d7 = Y9_GPIO_NUM;
config.pin_xclk = XCLK_GPIO_NUM;
config.pin_pclk = PCLK_GPIO_NUM;
config.pin_vsync = VSYNC_GPIO_NUM;
config.pin_href = HREF_GPIO_NUM;
config.pin_sscb_sda = SIOD_GPIO_NUM;
config.pin_sscb_scl = SIOC_GPIO_NUM;
config.pin_pwdn = PWDN_GPIO_NUM;
config.pin_reset = RESET_GPIO_NUM;
config.xclk_freq_hz = 20000000;
config.pixel_format = PIXFORMAT_JPEG;

// Frame parameters
// config.frame_size = FRAMESIZE_UXGA;
config.frame_size = FRAMESIZE_QVGA;
config.jpeg_quality = 12;
config.fb_count = 2;

#if defined(CAMERA_MODEL_ESP_EYE)
pinMode(13, INPUT_PULLUP);
pinMode(14, INPUT_PULLUP);
#endif

cam.init(config);

IPAddress ip;

WiFi.mode(WIFI_STA);
WiFi.begin(SSID1, PWD1);
while (WiFi.status() != WL_CONNECTED)
{
delay(500);
Serial.print(F("."));
}
ip = WiFi.localIP();
Serial.println(F("WiFi connected"));
Serial.println("");
Serial.println(ip);
Serial.print("Stream Link: http://");
Serial.print(ip);
Serial.println("/mjpeg/1");
server.on("/mjpeg/1", HTTP_GET, handle_jpg_stream);
server.on("/jpg", HTTP_GET, handle_jpg);
server.onNotFound(handleNotFound);
server.begin();
}

void loop()
{
server.handleClient();
}

[/Codebox]

Board: I try with AI THINKER ESP32CAM, and ESP32 WROVER KIT (has same result)

How should I do to fix my problem?

Hi @windyy ,

Welcome to the forum..

Assuming code is correct..
Might just have to re-seat the cam module..
I have one cam that is a bit troublesome, gives me the same error you are reporting..
I unplug the cam and plug it back in and it starts to play nice..

definitely looks like an AI thinker too me..
could select ai thinker or esp32 dev kit to program, but it's not a wrover..

to put your code into proper blocks, have to use that little CODE button..

good luck.. ~q

1 Like

You can check the suggestions here:

1 Like

Thank you to response my questions. And I already plug in and plug my OV2640 back. But the result is still like that. Maybe I must change mya hardware:"

Thank you for your response. I will check it out and try to use vscode

Maybe try the demo sketch..
examples/Camera/CameraWebServer
change the define to ai thinker in the demo..

got another cam??

~q

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.