
The ESP32-CAM is a very small camera module with the ESP32-S chip that costs approximately $10-$15.

ESP32-CAM
The ESP32-CAM module can be programmed with Arduino IDE. The ESP32-CAM module also has several GPIO pins to connect to external hardware.
HOW TO BUILD THE ROBOT
Here are the main parts we will need for the project.

Assemble the robot chassis with two DC motors, 3 wheels and L298N motor drive controller.

Platform with L298N controller

Video Surveillance Robot Schematic

Platform with DC motors, wheels and L298N motor drive controller


Pan/Tilt with SG-90 servos. In this project we use only the tilt servo.

Attach Pan/Tilt with servos to the platform
Using MB102 Breadboard Power Supply Module is optional. You can always take 5V and Ground for ESP32-CAM and servo motor from the L298N motor driver, but I found that with the MB102 it is much more convenient. The power supple module has a power button and gives you more flexibility with wiring.
In order to attach the module the the chassis platform, I removed the pins on the bottom of the MB102. Then, I attached it to the top of the chassis with double sided mounting tape.

Breadboard power module

Just cut pins in order to attach the module to the platform 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.

