This project is a development of our ESP32-CAM Video Surveillance Robot project. Eventually we got a video surveillance pan & tilt camera that can be controlled with an iPhone through Internet
FT232RL FTDI Mini USB x1 – for uploading a code to the ESP32-CAM
18650 Battery Holder x1 1
8650 Battery x2 (as an alternative four AA batteries and its holder can be used instead of 18650 batteries)
Mini Pan/Tilt Platform w/ 2 SG-90 Servos x1
MB102 Breadboard Power Supply Module x1
Connect wires as shown on the schematic. Make sure that the Tilt servo is connected to the pin #IO2 and the Pan servo to #IO14.
In order to attach the MB102 module to the 18650 Battery Holder, I removed the pins on the bottom of the MB102. Then, I attached it to the cover of the 18650 Battery Holder with double sided mounting tape.
Connect all parts using the schematic. Use a piece of foam and double sided mounting tape to attach the ESP32-CAM to the Pan/Tilt platform. Attach the Pan/Tilt platform to the cover of the 18650 Battery Holder with double sided mounting tape.
Install the ESP32 Add-on on Arduino IDE:
Follow one of the next tutorials to install the ESP32 add-on, if you haven’t already: Installing the ESP32 Board in Arduino IDE (Windows instructions) Installing the ESP32 Board in Arduino IDE (Mac and Linux instructions) Download the code from here Make sure that you have two tabs with code in the Arduino IDE: esp32_cam_cam1 and app_httpd.cpp as shown on the screenshot.
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 RST button. The ESP32-CAM IP address should be shown in the Serial Monitor.