I know alot of people are having problems with the esp32 cam. One thing I did to validate that the unit is working is to try other sketches or python codes. I used this code just to test that the unit works. I know it does not test all of the pins & if there is code out there to test all pins please forward. I believe all vendor should make a diag code to validate that the item you purchase works as intended. One of the biggest issue is trying to figure out if the board is any good.
If I find code that works with the cam I will post. I ended up here due to error
E (888) camera: Camera probe failed with error 0x105(ESP_ERR_NOT_FOUND)
Camera init failed with error 0x105
/*********
Rui Santos
Complete instructions at https://RandomNerdTutorials.com/esp32-cam-projects-ebook/
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files.
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
*********/
// ledPin refers to ESP32-CAM GPIO 4 (flashlight)
const int ledPin = 4;
void setup() {
// initialize digital pin ledPin as an output
pinMode(ledPin, OUTPUT);
}
void loop() {
digitalWrite(ledPin, HIGH);
delay(2000);
digitalWrite(ledPin, LOW);
delay(2000);
}