ESP32 WiFi Camera

ESP32 Web Camera
Share:

About

In this post, I’ll show you how to program the ESP32 Camera board to live stream the video feed to your browser.

Hardware used:

Hardware Connections

Adding The Board To The Arduino IDE

In the Arduino IDE go under File -> Preferences.
When the Preferences window opens up paste this URL https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json into the input box.
Note: If you have a URL from another board added put the ESP32 URL after that one and separate them with a comma like so: your first url,your second url
Open the Boards Manager under Tools -> Board -> Boards Manager… Then type esp32 and install the esp32 boards.
Select your board like so Tools -> Board -> ESP32 Arduino -> AI Thinker ESP32-CAM and then set the rest of the settings like in the image below:

Firmware

You can download the ESP32 Web Camera firmware from the official Espressif GitHub here or from the fork I made here(in case the previous link stops working at some point). You must download the entire ESP repository and copy out the arduino-esp32/libraries/ESP32/examples/Camera/CameraWebServer folder.

Open up the .ino file from the CameraWebServer project folder. Then uncomment the CAMERA_MODEL_AI_THINKER board and comment out any other. Finally set your wifi network and password.

Upload the firmware. When that’s done open the serial port monitor in the Arduino IDE Tools > Serial Monitor. Remove the jumper and press the reset button on the board.
When the board reboots it will print its IP address in the serial monitor.
Paste the IP into the browser and the camera interface will appear. Click the Start Stream button and you should be able to see the live video feed from the ESP32 camera.
Share:

Leave a Reply

Your email address will not be published. Required fields are marked *

The following GDPR rules must be read and accepted:
This form collects your name, email and content so that we can keep track of the comments placed on the website. For more info check our privacy policy where you will get more info on where, how and why we store your data.

Advertisment ad adsense adlogger