ESP32-CAM Web Server, View the CAM From Your Computer

by SuitableBat9 in Circuits > Cameras

968 Views, 2 Favorites, 0 Comments

ESP32-CAM Web Server, View the CAM From Your Computer

image_2024-01-25_212742340.png
20240125212714.jpg

In this tutorial, you’ll learn how to watch your ESP32-CAM Live From Your Computer

Supplies

For this project, we’ll be using an ESP32-CAM AI-Thinker board. (Amazon)(AliExpress)

  • To upload code to the board:
  • ESP32-CAM MB programmer( IF YOU BUY FROM THE LINK ABOVE IT WILL COME WITH ONE)
  • Or FTDI programmer


You can also use a different ESP32 Camera board, you just need to make sure you adjust the right pinout on the code. This is only compatible with OV2640 cameras.

Installing ESP32 Add-On

We’ll program the ESP32 board using Arduino IDE. So you need the Arduino IDE installed as well as the ESP32 add-on.

Project Overview

In this tutorial, we’ll show you a simple example that does the following:

  1. The ESP32-CAM connects to your router via Wi-Fi
  2. Being able to watch the camera from your computer
  3. Being able to adjust setting on how to CAM looks


Code

Go To The Following Link And Click ESP32-CAM Web Server Code And Download The ZIP File

Code

Once you download the ZIP extract the files and open Camera_Web_Server.ino


It should open it in arduino ide once you have the code open change the WIFI setting to your own

To Do This Find

const char* ssid = "NETWORKNAME";
const char* password = "PASSWORD";

And change it to your network name and password

Uploading the Code

After inserting your network credentials, upload the code to your board.

If you have an ESP32-CAM AI-Thinker, you should select AI Thinker ESP32-CAM in the ToolsBoard menu.


After that, select the COM port in Tools Port.

Finally, upload the code.

Serial Monitor

After successfully uploading the code to the board, open the Serial Monitor at a baud rate of 115200. Press the RST button so that it restarts the board and it starts running the code.

In the Serial Monitor, you should get a link with an IP copy and paste that into your browser and it will bring you to the webpage

Navigating the Webpage

image_2024-01-25_212217958.png

When you open that IP you should see this webpage to see the image you have to click start stream once you do that you should see it. From here you can change the resolution and quality what works best for me is to set the resolution to SVGA(800x600) and the quality close to 4. From this page you can also turn on the flash of the esp cam and change many other settings.

Help

If You Need Any Help Or Have Any Questions Post A Comment Below Or Join My Discord Server https://discord.gg/Cq7tSEfaC2