This shows you the differences between two versions of the page.
iothings:proiecte:2021:smartvideodoorbell [2022/01/28 01:45] teona.severin [Software] |
iothings:proiecte:2021:smartvideodoorbell [2022/01/28 02:27] (current) teona.severin [Final result] |
||
---|---|---|---|
Line 23: | Line 23: | ||
- The first system is controlled by the ESP32-CAM module, which doesn’t have any power supply socket. Because of that, I used a CP2102 USB to Serial converter to power on the device and to also have access to its serial port. On this board I also connected a button on GPIO13 pin to trigger the photo being taken. With this module, I also had some problems: I managed to destroy the external flash memory chip and I had luck I managed to find someone to change it. | - The first system is controlled by the ESP32-CAM module, which doesn’t have any power supply socket. Because of that, I used a CP2102 USB to Serial converter to power on the device and to also have access to its serial port. On this board I also connected a button on GPIO13 pin to trigger the photo being taken. With this module, I also had some problems: I managed to destroy the external flash memory chip and I had luck I managed to find someone to change it. | ||
- The second system uses the ESP32 WROOM module that controls a I2C LCD display that shows different messages and a SG90 servo motor that opens and closes the door. The servo motor is connected on the GPIO13 digital pin. | - The second system uses the ESP32 WROOM module that controls a I2C LCD display that shows different messages and a SG90 servo motor that opens and closes the door. The servo motor is connected on the GPIO13 digital pin. | ||
+ | |||
+ | |||
+ | The hardware schema is presented below: | ||
+ | |||
+ | {{:iothings:proiecte:2021:esp_fritzing_hardware.png?750|}} | ||
==== Software ==== | ==== Software ==== | ||
Line 43: | Line 48: | ||
{{:iothings:proiecte:2021:esp32-cam-soft.drawio.png?500|}} | {{:iothings:proiecte:2021:esp32-cam-soft.drawio.png?500|}} | ||
+ | |||
+ | I have also created an Express JS server hosted on a Virtual Private Server (VPS) that listens to requests on port 8000. Also, I created a Vue JS application available on port 8080 that hosts the user interface of the server. The following picture is a screenshot of the UI: | ||
+ | |||
+ | {{:iothings:proiecte:2021:open_door_server_v2.png?700|}} | ||
==== Final result ==== | ==== Final result ==== | ||
+ | |||
+ | We have a working system that can actually be used in real life situations. For now, the notifications are sent via e-mail using the IFTTT infrastructure, but it would be nice in the future to connect this little system with a mobile application. But for now, when the guest comes to you, he rings the camera trigger instead of the classic bell, his picture gets taken and sent to our private server, and the owner can choose what to do: to let the guest in or to display him a message. | ||
+ | |||
+ | To test this project, we used a 3D printed house as shown below: | ||
+ | |||
+ | {{:iothings:proiecte:2021:door_house_1.jpeg?400|}} | ||
+ | {{:iothings:proiecte:2021:door_house_2.jpeg?400|}} | ||
+ | {{:iothings:proiecte:2021:door_house_3.jpeg?400|}} | ||
+ | {{:iothings:proiecte:2021:door_house_4.jpeg?400|}} | ||
+ | |||
==== Demo ==== | ==== Demo ==== | ||
+ | |||
+ | The demo is available in the next link: | ||
+ | |||
+ | [[https://www.youtube.com/watch?v=gn4aN6-h83s|{{:iothings:proiecte:2021:open_door_server_v2.png?500|}}]] | ||
+ | |||
+ | ==== Resources ==== | ||
+ | * Post images to cloud: [[https://randomnerdtutorials.com/esp32-cam-post-image-photo-server/]] | ||
+ | * Take photos and save to SD card: [[https://randomnerdtutorials.com/esp32-cam-take-photo-save-microsd-card/]] | ||
+ | * Useful WIfi library functions: [[https://randomnerdtutorials.com/esp32-useful-wi-fi-functions-arduino/]] | ||
+ | * LCD I2C library for HD44780: [[https://github.com/lincomatic/LiquidTWI2]] | ||
+ | * Componente: | ||
+ | * [[https://www.cleste.ro]] | ||
+ | * [[https://www.emag.ro]] |