A DIY Smart Doorbell based on ESP32

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
today we're gonna make this [Music] hi how's it going my name is sebastian and in this video i'm gonna show you step by step how to make a smart doorbell like this even though i call it smart i'm not big fan of this term even car wipers are smart these days that's why i wanted to call it video adorable but short form didn't sound right anyway i based my project on this popular guy esp32 camboard if you want you can use it to create something similar of course this will require a bit creativity from it for me an excuse to design my pcb is enough i can put any component exactly where i want and avoid those tangled cables which i hate besides designing a nicer looking enclosure this way is so much easier so what exactly do we need the esp32 module it will be central unit of our adorable it is a big brother of the esp8266 chip which wouldn't be able to process the image from the camera speaking of which a camera you can use classic one like this or that one with a fisheye lens it's a bit more expensive but you can see a lot more with it to open wicked door gate or whatever we need a relay like this for example it is probably the easiest way to power up a solenoid lock close open a switching dc-dc converter there's a 12 volts in my smart installation but 24 is probably even more popular that's why i choose not to use a cheap ldo and use that one instead it has broad range of input voltages and higher efficiency therefore it won't heat up as much and last but not least of non-obvious components it is a ps ram if you need a greater resolution than 800x600 you need more memory than esp module has i'll not use such a high resolution in this project though but i wanted to leave myself an option for upgrades and that's it the rest of the components are pretty standard let's go straight to designing a pcb [Music] [Music] [Music] [Music] [Music] [Music] ready pcb look like this that black solder mask love it i'll be doing all my projects in this color from now just connect your camera and touch button and you are ready to go now let's talk about integration with home assistant if you are using different system like domotic or openhab you can skip to the part where i'm talking about the enclosure here i focus on the smart system i've used the most and i know the best but i'm sure you can also use this kind of device in your system of choice before we start a more detailed description you can find on my website link below i described on how to integrate this kind of smart doorbell with home assistant you'll also find a complete pack of source files including configuration file for esp home i assume your home assistant and esp home are up and running and you have a basic knowledge how to program an esp chip if not i've covered this topic on my website check it out ok let's start by adding a new device select generic esp32 as a device type esp home generates the initial file structure automatically you just need to add the configuration for all your toys luckily you don't have to write this from scratch you can open and copy the file i provide on my website it's a complete configuration for all peripherals if you are using esp32 cam boards you need to make sure that the button leds and the relay are connected to the same pins as mine if not just correct it since we are using a touch button in this device we'll have to do one more thing calibrate it but we can do it after mounting the pcb in the housing not before therefore for now let's compile the project as it is and program the chip for the very first time we have to use the usb uart adapter fortunately every future update we can do via wi-fi over the air now let's prepare an automation that will send notification to our smartphone when someone presses the button on the doorbell unfortunately it looks entirely different for ios and android users but in both cases installing the home assistant companion app will be the first step let's start with the iphone the first automation will be responsible for sending the live view from the camera to the phone the name isn't that important but it's nice if it describes the automation role it's easier to navigate later when we have a lot of them as a trigger we'll set pressing our touch button and here we'll set what actually happen when somebody presses the button now you can save it if you want like me to use your smartphone to activate the relay in the main configuration file add two possible actions in case of getting notification let in and ignore seems to cover all possibilities but if you have any other ideas you can add them here the final step is to add another automation for each action we just entered but if we ignore our guest we don't need to do anything therefore we'll do only one automation this time the trigger is an even with the let in action id the id must be the same as the one we entered in the configuration file finally we turn on the switch connected to the relay in our doorbell from now on you have a choice you can let him in or not now let's talk about android just like in ios let's start with creating a new automation when the doorbell button is pressed do these two actions the order in this case is crucial first we need to save the camera picture in the local storage and then we'll send this picture in the notification to our phone additionally we'll add all actions here let in and ignore to be able to save a picture we must add the location to the white list we can do it in the main configuration file let's add these two lines now let's create the last automation it will turn on the relay if we decide to let our visitor in the notification should look something like this software part is almost ready there's still carburetion left but we'll lose later now let's make a beautiful and professional looking case for our adorable let's make it our pride and joy [Music] [Music] uh [Music] [Music] [Music] [Music] [Music] the case is assembled it's time to calibrate the touch button let's go back to the esp home configuration file i would like to focus on one specific part of this code the threshold value determines when the touch button is considered to be pressed it has to be selected experimentally to do this we need to enable setup mode now interlock we'll see current values read by the esp chip let's do some tests now in our case there's an acrylic sheet between the button and the finger it reduces the sensitivity by a lot but we can use it anyway based on these values we can determine the threshold it should be exactly in between in my case i said 1100 our button is calibrated and ready to use let's disable the setup mode the final stage remains let's mount the doorbell in my case on the fence and check if it works [Music] it's time for our demo if you enjoyed this video hit the like and subscribe button because more projects like this coming up soon [Music] expect traffic delays and restrictions take personal security
Info
Channel: Smart Solutions for Home
Views: 34,016
Rating: undefined out of 5
Keywords: smart doorbell, diy, project, smart home, esp32, home assistant, esphome
Id: P4HT_PlZKZg
Channel Id: undefined
Length: 14min 58sec (898 seconds)
Published: Mon Dec 07 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.