A Super Easy Security Camera With the ESP32 CAM

by mcmchris in Circuits > Cameras

31387 Views, 112 Favorites, 0 Comments

A Super Easy Security Camera With the ESP32 CAM

Chris.jpg

If you have done any IoT project, you may know that everything almost all the time consist on sensors measuring physical magnitudes, sending them through the internet and controlling devices with the I/O ports.

But today we are going to learn how to use the ESP32 CAM, that is an ESP32 Development board that has a Built-In camera.

This board can help us on developing projects that can see, and some interesting aplications are:

  • Security Camera.
  • Longs Time Lapse Shots.
  • 3D Printer Monitoring Camera.
  • Door bell camera.
  • Etc.

If you are a visual learner I know that a video worth more than 1000 words, so here is a Tutorial video. (I am a Spanish speaker, so please consider turning on English subtitles):

Hope you to enjoy the project.

Skills Needed.

Captura de pantalla (250).png

As you can noticed, nothing looks very difficult on this project, but you will need some basics knowings about:

-Using the Arduino IDE.

-3D printing or Handcraft (for the enclousures).

-Welding.

Components and Parts List.

ESP32-CAM (7)-800x800.jpg
Captura de pantalla (226).png
Captura de pantalla (236).png
20150217144126HUW1TZGF0MIYT_full.jpg
Pinsun Soldering Iron 60W 1 Twins Chip-1200x1000.jpg
ESP32 CAM case.PNG
JLC.PNG

Here is the list of materials and tools you will need to do the project yourself.

  1. -ESP32 CAM: https://www.banggood.com/custlink/GGvhrjV0tY
  2. -USB to TTL: https://amzn.to/2EBbIiX
  3. -Hot Glue gun.
  4. -Soldering Iron.
  5. -Some jumper Wires.
  6. -USB cable.
  7. -Enclosure.

NOTE: If you want to create a PCB to place your ESP32 CAM more professionally you should design your PCB and manufacture it with JLCPCB.

Cheap PCBs and SMT Assembly from $2 USD + (2 Coupons).

Programming Conections:

Captura de pantalla (238).png
Captura de pantalla (237).png
Captura de pantalla (239).png
ESP32-CAM-FTDI-programmer-5V-supply.png

The ESP32 is board from the ESP family developed by Espressif and if you have used one of their boards, mainly the ESP-01 (ESP8266), you may know that the GPIO0 (Pin) is the one that decide on the boot mode of the Chip, so for this case you need to connect a jumper between the GPIO0 and Gnd.

Installing the Enviroment for the ESP32 in the Arduino IDE.

Captura de pantalla (227).png
Captura de pantalla (228).png
Captura de pantalla (229).png
Captura de pantalla (231).png

First you need to Install the Arduino IDE.

Open it, then click on Archive>Preferences

On Aditionals URL's paste this link:

https://dl.espressif.com/dl/package_esp32_index.js...

And install the ESP32 Boards Package as shown in the screenshots.

Uploading the Camera Web Server Sketch

Captura de pantalla (232).png
Captura de pantalla (233).png
Captura de pantalla (234).png
Captura de pantalla (235).png
Captura de pantalla (240).png
Captura de pantalla (241).png
Captura de pantalla (242).png
Captura de pantalla (243).png
Captura de pantalla (245).png
Captura de pantalla (246).png

Select the Board "Ai thinker ESP32-CAM"

Go to Archive> Examples> ESP32> Camera> CameraWebServer.

In the sketch uncomment the model of the ESP32 CAM you are using.

Put the WiFi credentials and Upload.

Once the ESP32 is burned.

Disconect the GPIO0-GND jumper and reset the board, look at the IP printed on the Serial Monitor.

Search for it on your favorite Web Browser and done.

Click on Start Stream to look what's your camera seeing.

CODE HERE.

Assemble Your ESP32 Within the Enclosure

Captura de pantalla (247).png
Captura de pantalla (248).png
Captura de pantalla (249).png
Captura de pantalla (251).png
ESP32 CAM case.PNG

Wire up the USB cable through the case so the power wires can be soldered to the power pins (+5v and GND) of the ESP.

Glue the ESP32 CAM so the camera sensor can see through the square cutout.

Screw it. and glue the Camera to the power adapter.

STL FILES FOR THE ENCLOSURE.

Test It and Enjoy It.

Captura de pantalla (252).png
ESP32CAM.jpg
Captura de pantalla (253).png

Just connect your camera in a WiFi reaching place, and go to your browser and look at the place you are watching.