ESP32-CAM with Telegram: Take Photos, Control Outputs, Sensor Readings and Motion Notifications

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
in this video we'll create a pcb shield for the esp32 cam with a pr motion sensor and the bme 280 temperature humidity and pressure sensor we'll create a telegram bot for the esp32 cam that allows you to control your board from anywhere to request the photo and sensor readings additionally you'll receive a notification with a new photo whenever motion is detected you can find all the resources needed to build this project in the links below this video this project is sponsored by pcbway pcboa is a full-featured printed circuit board manufacturing service turn your diy breadboard circuits into professional pcbs you can get 10 boards for approximately 5 dollars plus shipping which will vary depending on your country this project consists of three parts designing and building the pcb shield creating a telegram bot and finally programming the esp32 cam using arduino ide the pcb shield is designed to be stacked to the esp32 cam so if you want to use our pcb you need the esp32 cam ai thinker module board we've replaced the original camera module with one with a longer ribbon the shield consists of a bme 280 sensor connected to gpis 14 and 15. a mini pr motion sensor connects to gpi 13 5 volt and ground pins to power up the shield and the esp32 cam and other gpios if you want to add additional features but we won't use them in this project to control the esp32 cam we'll create a telegram bot that allows you to control and monitor your esp32 cam from anywhere as long as you have internet access in your smartphone you can use the following commands to interact with your bot slash start sends a welcome message with the valid commands to control the shield slash flash toggles the esp32 cam onboard led flash slash photo takes a new photo and sends it to your telegram account slash readings request the latest bme 280 sensor readings additionally you'll receive a notification with a photo whenever motion is detected finally only you or any other authorized user can control the esp32 cam using telegram so let's get started [Music] before designing and building the pcb it's important to test the circuit on a breadboard if you don't want to make a pcb you can still follow this project by assembling the circuit on a breadboard here's the schematic diagram for this project after making sure everything works properly on a breadboard we can design the pcb using any pcb design tool to customize this pcb you can download the files provided in the project page designing the circuit works like in any other circuit software tool you place some components and you wire them together then you assign each component to a footprint having the parts assigned place each component when you're happy with the layout make all the connections and route your pcb save your project and export the gerber files once you have your gerber files you can order the pcb if you don't want to modify the pcb you can go to the project page below and download the curve files provided you can click the first link in the video description to go to the pcbway website and open the pcb instant quote page pcbway can grab all the pcb details and automatically fill them for you use the quick ordered pcb autofill parameters press the adgerberg file button to upload the provided gerber files and that's it you can also use the online gerber viewer to check if your pcb is looking as it should if you aren't in early you can lower your cost using the china post shipping method i think they overestimate the china post shipping time you can increase your pcb order quantity and change the solder mask color i've ordered the blue color once you're ready you can order the pcbs by clicking the save to cart button and click complete your order in less than a week using the dhl shipping method i received my pcbs as i've said in a previous video everything comes well packed and the pcvs are really high quality i also received some gifts related to their 6th anniversary and i would like to congratulate them pcbway has been an essential company that supports makers around the world building professional pcb projects they also support some of your favorite youtubers with their projects without pcbway some of the best projects post online wouldn't be available thanks again to pcua for everything they do for the maker community the next step is soldering the components to the pcb you just need to solder some other pins and then connect the pr motion sensor and the bme 280 sensor to those pins there's a list with all the components needed and where to buy them in the video description here's how the pcb shield looks like after assembling it stacks perfectly to the esp32 cam [Music] go to google play or app store download and install the telegram app to create a telegram bot search for bot father and click the butt father click the start button type slash new bot and follow the instructions to create your bot give it a name and username if your bot is successfully created you'll receive a message with a link to access the bot and the bot token save the bot token because you'll need it later so that the esp32 cam can interact with the bot now in your telegram account search for idbot start a conversation with that bot and type slash get id you will get a reply with your user id save that user id [Music] we'll program the esp32 board using arduino ide so make sure you have the esp32 board add-on installed you also need to install the following libraries universal telegram bot library arduino json and bme 280 sparkfun library after that copy the code provided to your arduino ide to make it work for you you need to insert your network credentials your telegram bot token and your telegram user id upload the code to your esp32 cam board read this guide if you don't know how to upload code to your board now connect the pcb shield to your esp32 cam apply power press the reset button and it should be working for the final solution you can buy one of these cheap fake dummy cameras and put your project inside and that's it let's test it send the command start to receive the commands list that you can use to control your board then you can click on the commands send the slash photo command to receive a new photo taken with the esp32 cam if you want to receive sensor readings send the slash readings command additionally if it detects motion it will send you a notification with a photo to your telegram account as you can see everything is working as expected we hope you found this project useful and you're able to build it yourself you can program the pcb shield with a different code to suit your needs and remember that if you don't have the pcb it still works on a breadboard thanks for watching if you enjoyed this video make sure you click the like button if you are new to the channel consider subscribing and ring the bell for post notifications to catch my next esp projects finally make sure you visit randomnerdstutorials.com for the full step-by-step instructions and downloadable code just click the link in the video description that's it for now and we'll see you in the next video
Info
Channel: Rui Santos
Views: 54,482
Rating: undefined out of 5
Keywords: rui santos, randomnerdtutorials, random nerd tutorials, ESP32-CAM Telegram Notifications, ESP32-CAM Shield PCB, ESP32-CAM Telegram Sensor readings, ESP32-CAM Telegram control outputs, ESP32-CAM Shield Take photos send Telegram
Id: tgaqegUNNyE
Channel Id: undefined
Length: 9min 20sec (560 seconds)
Published: Wed Aug 12 2020
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.