The ESP32 camera module is a powerful Camera module. This article deeply discusses the ESP32 cam module and set up a video streaming server and use it as a Home Security Camera. We already know how to program ESP8266 nodemcu.
Then go to Tools Board and open Board Manager. Open it to download the board and install.
Type in Search bar esp32 and install the first option ESP32 by Espressif Systems. In my case, it is already installed.
Lets Open a example code to test everything is okay. Go to File, Examples, ESP32, Camera, and CameraWebServer.
The Camera webserver example will open. Here we need to modify a few things. Commend the #define CAMERA_MODEL_WROVER_KIT and uncomment the #define CAMERA_MODEL_AI_THINKER. Also, change the SSID and password of your Wi-Fi network. Connect the FTDI with computer and press reset to enable the flash mode.
Then again go to Tools board and search for ESP32 Wrover Module. Be careful and chose the correct board. Then upload the code. In case you got any error change upload speed to “256000“, Flash Frequency to “80Mhz“, Flash Mode “QIO” and Partition Scheme “Huge APP(3MB No OTA/1MB SPIFFS)) “.
After upload removes the jumper wire between GND and IO0 open serial monitor and presses the reset button. It will disable the flash mode and it will connect to your wi-fi and it prints the connected IP Adress.
Browser Setup for ESP32 camera
Copy the HTTP link and paste it to your browser. If you got this page your ESP cam setup is done. Insert an SD card and start recording and your wireless security cameras are ready to use. Install this to your door and CCTV security cameras are ready. You can open this page on mobile phones simply copy the same URLs and paste in a mobile browsers. Now you can access your wireless security cameras using a mobile phones.
Error and correction
E][camera.c:1049] camera_probe(): Detected camera not supported.
[E][camera.c:1249] esp_camera_init(): Camera probe failed with error 0x20004
If you get above error use separate 5v power supply and make sure to change the board to #define CAMERA_MODEL_AI_THINKER and make exact settings I did in the screenshot.