What you need:
1 X ESP32-CAM
1 X FTDI Module
1 X 5P Female to Female Dupont Cable
In your Arduino IDE, go to File > Examples > ESP32 > Camera and open the CameraWebServer example.
The following code should load.
Before uploading the code, you need to insert your network credentials in the following variables:
Make sure you select the right camera module. In this case, we’re using the AI-THINKER Model.
So, comment all the other models and uncomment this one:
Go to Tools > Board and select AI-Thinker ESP32-CAM.
Go to Tools > Port and select the COM port the ESP32 is connected to.
Then, click the upload button to upload the code.
When it always show connecting………..,
1) please make sure GPIO 0 and GND are connected
2) press the ESP32-CAM on-board RST button
After uploading the code, disconnect GPIO 0 from GND.
Open the Serial Monitor at a baud rate of 115200. Press the ESP32-CAM on-board Reset button.
The ESP32 IP address should be printed in the Serial Monitor.
The IP address I got is http://192.168.0.186, copy it and paste it to browser, then you can see below page, also you will see the print information of Arduino serial monitor window: