Simple ESP32-CAM Controlled Wi-Fi Surveillance Car

by psp50 in Circuits > Arduino

5524 Views, 8 Favorites, 0 Comments

Simple ESP32-CAM Controlled Wi-Fi Surveillance Car

IMG-20210712-WA0003.jpg

In this tutorial we are going to make a simple ESP32-CAM based Wi-Fi controlled camera car. This project is simple and effective, you can connect and use it from any mobile computer or any such device having an internet browser.

to make this we will require following hardware :

Supplies

Assembling the Chassis

Before assembling chassis and placing motors, solder wires to Motors.

we have used here ready-made acrylic cut-out model for chassis which is easily available in market, by the way you can use any cardboard or simple plyboard cutout as chassis.

Assembling and Uploading Code to ESP32-CAM Module

surveillance_robot_esp32cam_cp2102.png
image 8.PNG

Plug in the camera to the connector of ESP32-CAM board and close the pin

Programming of ESP32-CAM is done via CP2102 USB to TTL UART serial converter Module. First connect the USB to TTL module with ESP32-CAM and short IOO pin of ESP32-CAM to GND according to diagram.

open files menu in arduino IDE. and then open preference and paste the link in additional boards managers URL and press OK:

https://raw.githubusercontent.com/espressif/arduin...

after that install the ESP32 library from include library menu.

open the tools menu and make changes to parameters according to shown above in images.

In the code give name of the access point to be connected and SSID of that access point

Once done this connect the USB to TTL module to your PC and upload the the code given below. After successfully uploading the code open the serial monitor. after connecting to Wi-Fi the ESP32 will show local IP address. NOTE THAT DOWN.

Downloads

Trouble Shooting

this step is optional and consider only when code is not uploading or error message continue to appear.

1. problem uploading to board:

this is a common problem. first upload the code and wait until the error message to shows up, once the message is visible on IDE press the reset button on ESP32-CAM module and then again upload the code. This time it will be done

2. camera burnout OR camera not detected

If this error shows this mean either your camera is damaged or not connected properly.

also if your PC is unable to deliver enough power to Modules then also this error will be shown.

Wiring and Powering Up the Main Circuit

image 7.jpg

after uploading code disconnect USB to TTL Module completely from ESP32-CAM and connect jumper wires to L298N module as shown in diagram :

Now for powering the car we will use 12v Li-ion battery, connect accordingly

+Ve of battery to ---- +12 of L298N

-Ve of battery to ----- GND of L298N

For powering up the ESP32-CAM module we will use L298N's +5v as source to do this Place the power jumper which is left on board.

connect :

L298N

+5 -------- 5v of ESP-32 CAM

GND -------- GND of ESP-32 CAM

IN1 --------- GPIO 14 of ESP-32 CAM

IN2 ---------- GPIO15 of ESP-32 CAM

IN3 ---------- GPIO13 of ESP-32 CAM

IN4 ----------- GPIO12 of ESP-32 CAM

since we are not going to control the speed of car and will run at max speed place the ENA and ENB jumpers in place.

Final Touch and Running the Car

After everything is ready and powered up. The ESP-32 will connect to Wi-Fi AP provided by you to it in the code.

Open your mobile hotspot setting and turn hotspot on. Wait until ESP-32 to connect, then open the internet browser and enter the IP address provided to you prior in the uploading part.