ESP32 CAM

ESP32 CAM Smart IoT Bell Circuit Diagram and Programming

ESP32 CAM Smart IoT Bell:

ESP32 CAM Smart IoT Doorbell and Door Lock- In this article, you will learn how to make a Smart IoT Bell and Door Lock project using ESP32 Cam Module, Electronic Door Lock, and Blynk Application. From the very beginning, the ESP32 camera module has been one of my favorite camera modules, which I have been frequently using in all of my ESP32 Cam based projects. I have recently used the ESP32 camera with Google Drive. I have applied two methods during this project. In my first method, I used to send images directly on Google Drive, whereas according to the second method, images were sent on Google Drive when the IR sensor was activated. I have previously comprehensively explained this project.

I also used it for opening the Electronic Door lock using the Human Face recognition technique and I have also used the same camera module for the live video streaming using the Blynk application. These previously designed projects will really help you in getting started with the ESP32 CAM Module.

If you are using the ESP32 CAM module for the first time, then you might have come across some issues, I have also faced the same issues and that’s why I have written a complete article about it, and I highly recommend you should read my getting started article on the ESP32 CAM issues and how to solve them.

Ordinary doorbells are generally of a very boring type. Inmates do not have any idea who is at the door. Besides, you might have also experienced people who have an unpleasant habit of aimlessly pressing the doorbell and then running away quickly. When any of the inmates opens the door, he or she finds none outside.

Moreover, you are well aware of the fact how alarmingly the crime ratio has increased nowadays. In case only a female member of a family is present at home and suddenly the doorbell rings, you can better imagine a serious nature problem she might come up with, particularly when she is unaware of who is at the door. But with my designed project, she will know exactly, who is at the door.

My designed smart doorbell and door lock system is specifically handy for disabled people because whenever the doorbell rings, the disabled person can watch on his mobile who is at the door. If he wants to allow that person, he or she can press a button on the Blynk application to open that electronic door lock.

Now you can decide for yourself how useful this system can turn out to be for you, guys. And the interesting point about the system is that it is pretty cheap. Anybody can design this system easily if my instructions are followed carefully.

Before, I am going to explain the circuit diagram, Blynk App designing, and programming. First let’s watch the ESP32 Cam based Smart IoT Bell and Door Lock project in Action.

check my new project on ” ESP32 CAM and Python OpenCV Yolo V3 for object detection and identification”


Altium 365:

altium 365

Altium 365 lets you hold the fastest design reviews ever. Share your designs from anywhere and with anyone with a single click. it’s easy, leave a comment tagging your teammate and they’ll instantly receive an email with a link to the design. Anyone you invite can open the design using a web browser. Using the browser interface, you’re able to comment, markup, cross probe, inspect, and more. Comments are attached directly to the project, making them viewable within Altium designer as well as through the browser interface. Design, share, and manufacture, all in the same space with nothing extra to install or configure. Connect to the platform directly from Altium Designer without changing how you already design electronics. Altium 365 requires no additional licenses and comes included with your subscription plan. Start with Altium Designer and Activate Altium 365.

Anyway, in today’s article, I am going to use the ESP32 CAM in a very practical way. We will be designing the ESP32 CAM Smart IoT Bell. Let me tell you in detail what is ESP32 CAM based Smart IoT Bell is and how it works?

esp32 cam smart doorbell and door lock

ESP32 CAM Smart IoT Bell is a semi-automatic Door control system based on the Blynk application. When the Bell button is pressed a notification message is sent to the concerned person. He can then open the Blynk application and can check who is at the door, he can even capture the image of that person. On the Blynk application, there are buttons that can be used to capture the image and also to Open and Close the Electronic Door Lock. For the 12V Electronic door lock, I have used a relay module. You can use a readymade relay module or you can design and make your own relay module.

Components Required:

  • ESP32 cam
  • Relay module
  • 10KΩ Resistor
  • Push-button
  • Jumper wires

Amazon Links:

12v Adaptor:

Arduino Uno

ESP32 Camera Module:

12v Electronic Door Lock / Elock / Solenoid Lock:

12V SPDT Relay:

One-Channel Relay Module: 

Other Tools and Components:

Top Arduino Sensors:

Super Starter kit for Beginners

Digital Oscilloscopes

Variable Supply

Digital Multimeter

Soldering iron kits

PCB small portable drill machines

*Please Note: These are affiliate links. I may make a commission if you buy the components through these links. I would appreciate your support in this way!



ESP32 CAM Smart IoT Bell Circuit diagram:

  • Connect the ground of the relay module with the ground of the ESP32 cam module
  • Connect the signal pin of the relay module with the GPIO12 of the ESP32 CAM
  • Connect the push button with the GPIO13 of the ESP32 CAM

esp32 cam iot bell and door lock

Download PCB boards Gerber files:

ESP32 CAM Smart IoT Bell, Blynk app Designing:

You can start by downloading the Blynk application from the PlayStore and the amazing thing is it’s absolutely free and you get enough energy which is sufficient for most of the projects. If you want more energy, then you can purchase it. Anyway, for this project you don’t need to pay. Simply download and install the Blynk application.

First open the Blynk app in the mobile and click on the new project.

ESP32 CAM Smart IoT Bell


Then give a name to the project Smart Door Bell and select ESP32 DEV board and click on the Create Button.

ESP32 CAM Smart IoT Bell

The authentication code will be sent on your registered email id, don’t share this code with anyone, and also don’t delete the email, as you will need this authentication code while writing the program.

ESP32 CAM Smart IoT Bell

Then click on the add button and add the image gallery.

ESP32 CAM Smart IoT Bell


After adding the image gallery we set the virtual pin 1 and click on the ok. In the image gallery we will get the image from the ESP32 CAM.

ESP32 CAM Smart IoT Bell

Then we will click on the notification button and add it to the screen.

ESP32 CAM Smart IoT Bell

 

Then click two styled buttons.

ESP32 CAM Smart IoT Bell

Then click on the one button and select the pin gp14 and give a name to the button.

ESP32 CAM Smart IoT Bell


Then click on another button and select the pin gp12 and give the name to the button as gate opener.

ESP32 CAM Smart IoT Bell

Click on the Image gallery and select virtual V1.

ESP32 CAM Smart IoT Bell

ESP32 CAM Issues and how to fix them:

Before, I am going to share the code, first I am going to talk about some ESP32 CAM issues. When it comes to uploading the program most of the guys faces a lot of issues and that’s why I get a lot of messages from boys and girls. So, I decided to talk about these issues in detail.

You have to setup your ESP32 CAM exactly the same way as per my instructions and I am sure if you follow everything correctly then you will be able to fix all the issues and problems.

Before, you upload the program into the ESP32 CAM first, you need to select the correct module which is the ESP32 Wrover Module.

ESP32 CAM Smart IoT Bell


Then we set the flash mode to QIO

ESP32 CAM Smart IoT Bell

After that we will set the flash frequency to 80MHz.

ESP32 CAM Smart IoT Bell

If you compile the code and you see this type of error

Sketch too big; see http://www.arduino.cc/en/Guide/Troubleshooting#size for tpis on reduing it

ESP32 CAM Smart IoT Bell

Then it means that you have selected the limited memory, to fix this error/issue you have to change the memory setting to huge memory and this problem will be fixed.

ESP32 CAM Smart IoT Bell

After that you have to select the upload speed 921600.

 

ESP32 CAM Smart IoT Bell


Then you have to set the core debug level to none

ESP32 CAM Smart IoT Bell

Then you have to select the port number which is different in every computer.

There is another most common issue which is about the AVR ISP programmer. I oftenly hear this from guys that they are not able to see the AVR ISP programmer. The same thing has happened to me, I fixed this issue by changing the Arduino IDE. I used the Arduino IDE version 1.6.12, and in this version of the Arduino IDE I was able to find the AVR ISP Programmer. So, if you are not able to the AVR ISP Programmer then simply go ahead and install the 1.6.12 version of the Arduino IDE.

ESP32 CAM Smart IoT Bell

Now the setup is completed for the programming and we will write the code and upload in the ESP32 cam.

If you still see an error

Error compiling for board ESP32 Wrover Module

ESP32 CAM Smart IoT Bell

Then it means that you have installed multiple Arduino IDEs. Remove all the Arduino IDEs and install only one IDE this problem will be resolved.


ESP32 CAM IoT Bell Complete Code:

for this project, you will also need 

app_httpd.cpp

camera_index.h

camera_pins.h

and the main code which you can see below. 

You will need to keep all these files inside the same folder. 

Download the Project folder:

 

Watch Video Tutorial:

 

 

Engr Fahad

My name is Shahzada Fahad and I am an Electrical Engineer. I have been doing Job in UAE as a site engineer in an Electrical Construction Company. Currently, I am running my own YouTube channel "Electronic Clinic", and managing this Website. My Hobbies are * Watching Movies * Music * Martial Arts * Photography * Travelling * Make Sketches and so on...

Leave a Reply

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

Back to top button