We wanted to create a smart doorbell to provide noise pollution and to save time. Our goal was to be able to ring at specific door number like in a building. When someone rings at your door, the smart doorbell will take a picture and stock this picture in a cloud and maybe be able to recognize who is ringing by an Artificial intelligence if it is someone that comes often.
Working principleStep 1:ESP8266 is used to control our connected bell, it serves here as a computer which manages the information. It is link to our keypad 4x4 which is a simulation of a building’s intercom. The first step for us was to be able to read which number were pressed on the keypad.
For this one we must connect our keypad to our esp8266 like the architecture below:
Once the initialization is effective, we want to read the number pressed by the user on the Arduino console, so we use a “for loop” that allows us to see which number we want to call.
Now we have our keypad set up, now we want to connect and initialize this with MQTT and a Wi-Fi network. For this we created a Hub and three devices on Scaleway which allows us to communicate between our two ESP. To set up MQTT, you can use the code in copy at the end.
Once we established the connection, we send a payload named “Smile” to MQTT.
Thanks to this, and through MQTT, we send a second payload to our ESP 32-CAM which is the condition for the ESP 32 to take a photo
Once the photo is taken, we stock her in a cloud by scaleway through a bucket and after we just must download the picture and change the extension by a.jpeg or.png.
Here is an example of a photo taken by our device.
Comments