Arduino IDE + ESP32 CAM | ESP32-CAM Capture and Send Photos to Telegram | Plus with PIR Sensor
ฝัง
- เผยแพร่เมื่อ 28 มิ.ย. 2024
- Arduino IDE + ESP32 CAM + PIR Motion Sensor + Telegram | ESP32-CAM Take and Send Photo to Telegram | Plus with PIR Sensor.
In this project video I use Arduino IDE 1.8.9 , Notepad++ V7.7.1 , Arduino Core for The ESP32, PIR Motion Sensor, Telegram Account, ESP32 CAM AI-Thinker and ESP32 CAM AI-Thinker and ESP32-CAM-MB USB Programmer.
00:00 Opening
00:30 Project Preview
01:27 Additional information for creating this project
02:15 Creating Telegram Bot and Get Your Telegram User ID
04:08 Test Connection of ESP32-CAM with Telegram
08:45 Test Connection of ESP32-CAM with Telegram (Demo)
09:44 ESP32-CAM Take and Send Photo to Telegram
12:12 ESP32-CAM Take and Send Photo to Telegram (Demo)
13:58 ESP32-CAM Take Photo with PIR and Send Photo to Telegram
17:28 ESP32-CAM Take Photo with PIR and Send Photo to Telegram (Demo)
21:31 Closing
Download arduino code and installation image : drive.google.com/file/d/1nup6...
Download Universal Arduino Telegram Bot Lib : github.com/witnessmenow/Unive...
The code file is saved in the .rar file format. I created a .rar file using Winrar V5.50, so to extract it, make sure you use the same version of Winrar that I use or the latest version or use the winrar extractor online.
SORRY IF MY ENGLISH IS CONFUSING, I USE AN ONLINE TRANSLATOR.
THANKS FOR WATCHING & DON'T FORGET TO LIKE , SHARE, COMMENT AND SUBSCRIBE.
***********************************************
Installing the ESP32 Board (Arduino core for the ESP32) in the Arduino IDE : • Arduino IDE + ESP32 | ...
Programming ESP32 Cam with Arduino UNO : easyelectronicsproject.com/es...
Programming ESP32 Cam with FTDI Programmer : randomnerdtutorials.com/progr...
***********************************************
***********************************************
For other video tutorials on this channel, please see this playlist:
- Basic4Android (B4A) Tutorials : • Basic4Android (B4A) | ...
- Electronics Tutorials : • 3 LED Flip Flop
- Arduino Tutorials : • Arduino | Scrolling Te...
- Great Cow Basic Tutorials : • Great Cow BASIC with A...
- Bascom Avr Tutorials : • Bascom Avr | How to Se...
- VB .NET Tutorials : • Visual Basic .NET | ...
- LoLin NodeMCU V3 ESP12E ESP8266 Tutorials : • Arduino | LoLin NodeMC...
- ESP32 Tutorials : • Arduino IDE + ESP32 | ...
- ESP32 CAM Tutorials : • Arduino IDE + ESP32 Ca...
***********************************************
***********************************************
Download Arduino IDE : www.arduino.cc/en/Main/Software
Download Notepad++ : notepad-plus-plus.org/downloads/
***********************************************
***********************************************
Reference :
- Arduino Core for The ESP32 : github.com/espressif/arduino-...
- Color reference when editing video : www.arduino.cc/en/Trademark/C...
- Telegram: ESP32-CAM Take and Send Photo (Arduino IDE) : randomnerdtutorials.com/teleg...
and from several other sources.
*********************************************** - วิทยาศาสตร์และเทคโนโลยี
The best project I have come across on TH-cam. Thanks brother.
You're welcome 🙂.
@@utehstr Hi please i need help i am constantly getting the error no serial data received is my esp32-cam broken or what is it?
Can you please make the same video using the flex sensor? And how can I make it send photos at regular intervals?
Thanks for an Awesome project!!
You're welcome🙂.
@@utehstr Hi please i need help i am constantly getting the error no serial data received is my esp32-cam broken or what is it?
do you have a rtsp sketch for esp32 cam, sir? Ive uploaded a rtsp on my esp32 cam but no image on motioneye..if i stearm it on vlc, theres a image but in motion eye theres no image
Hello sir, is it possible if I use the same coding as in this video on 'ESP32-CAM using Arduino UNO' by referring to the link you gave?
thank you man, its awesome
You're welcome 🙂.
cara tu consegue disponibilizar pra mim a pasta com esse codigo??
não tem nenhum link pra referencia dele. Obg
hello can i know where you buy the 5v supply ?
you are awsome
I'm facing problem, please help me. "A fatal error occurred: Failed to connect to ESP32: Invalid head of packet ('S')"
Hello, thank you for this amazing project! Is it possible to send the images to multiple telegram accounts?
Hello sir, why does the pir sensor continue to send images even when it is covered?
Grande
Hello, i have a problem. The connection between esp32 cam and telegram is stable. But if Isend the command capture_photo there is not photo back to telegram. Is there in the sketch a BUG?
can we use any other board rather than ai thinker please give me reply
Excellent job
Thank you🙂
how to connect esp 32 cam with pr and buzzer?
Big Thanks
You're welcome🙂
When executing the code to take the photo, I get an error that is the following
ESP32-CAM failed to send photo.
Tip :
- Reset ESP32-CAM
- Change FRAMESIZE (see Drop down frame size in void configInitCamera)
how can i solve that?
Sir code ma koi problem ha esp32 baar baar photo poc kar raha when we use pir
hey bro can i change with ultra sonic
Thank you for such a amazing project, but i faced a problem on 3rd project in which pir sensor after stabilization complete, but it don't send picture automatically by sensing ,please reply why i face this problem
Pir sensor related something not present in description as you say .
Have you connected the PIR sensor with the ESP32 Cam correctly? Have you checked the cable? Try testing the PIR sensor only with the code for the PIR sensor to make sure the PIR sensor and its wiring are in good working order.
@@utehstr yes i check the pin the i realised that pin no. not matched with coding pin the i change this acoording to coding ,after this it work perfectly.
Thanks for the awesome project. may I know what kind of battery do you use ? thanks!
I'm using an 18650 battery with a "step up" module to 5v.
@@utehstr Noted thank you very much sir
@@arrvinnadewi789 you're welcome 🙂
Awesome
Thanks 🙂.
How to share access of it (i want to share its access to my family member (we both need access at same time)???
how is the power consumption how long can we run it with 18650 battery
I don't know for sure, I haven't tried it.
Great project thanks...but it gives me an error "Send photos..{"ok":false,"error_code":400,"description":"Bad Request: IMAGE_PROCESS_FAILED"}. I changed the framesize but without success can you help me , Thanks in advance
hi bro..this project was amazing..but i have a question,,why my pir keep detecting and take a poto?
Hi bro, have you find the solution to that problem?
@@moderatord2984 mine too
hi bro i have same problem The problem is get many photos when activating the mode with the sensor have you solved the problem
😍😍😍😍😍
👍🙂
Hi nice review. I have a one problem with this. Do you know hot to fix it A fatal error occurred: MD5 of file does not match data in flash!
Failed uploading: uploading error: exit status 2
issue is solved?
if yes, can you tell me how to fix it?
Please solve this error “SW_CPU_RESET”
I like!
Thanks 🙂.
i really like this project, but i have some small problem....there is a lag in the picture capturing thus after capturing one position it will still send the same position for about 4x though you have changed the position....any fix for that lag?
Same, me to
Please author, answer
@@rakaminul2181it probably sends those picture, which captured during sensor warming
same :(
Everything worked except taking photos with PR sensor, is it possible to troubleshoot what can be the issue here? i am using HC-SR501 as PIR sensor
Neverminded it was a sensitivity issue on Pir-s side =D
please send me the code
@@narekhambardzumyan1059
'TELEGRAM_CERTIFICATE_ROOT' was not declared in this scope?
Make sure that you have the "UniversalTelegramBot" library installed.
Hi please i need help i am constantly getting the error no serial data received is my esp32-cam broken or what is it?
your use ftdi to upload program?
Thanks for sharing such an awesome project.
I tried the first code for testing/checking the esp32 cam connectivity with my Telegram bot. I get esp32 cam IP Address on Arduino serial monitor but when I click /Start on bot page, it doesn't show Got response on serial monitor. Nor does any activity or led on off commands on bot page appear.
Can you please help me why it's bot working.
I tried many other codes on TH-cam for esp32 cam & Telegram but on clicking /Start nothing happens on Bot page while serial monitor shows IP. I tried chatting with one of friends the chatting is ok.
Awaiting your earliest response.
Kind regards.
Hello,
Make sure that you have used the correct "BOTtoken" and "CHAT_ID".
@@utehstr Thank you very much for your quick response. I have already checked number of times Bot token and Bot id but every time no response on bot page on /start command.
Can you please share what esp32 board version you are using in Arduino IDE..
BTW I have also tried on my friend mobile creating a new Telegram account & new bot but still the same fate .
Please assist where I m going wrong .
Once again Thanks & kind regards.
@@yawarsaeed6499 I'm using Arduino Core for The ESP32 V1.0.6
Do you have the wiring diagram?
Look at 14:03 .
Im getting fatal error
why my pir keep detecting object,i already set my pir sensitive and timing but always detecting object
Are you sure you have connected the vcc on the PIR sensor with a 3.3V power supply?
@@utehstr yes i already but keep detecting every 1 second
@@yoplays Have you tried turning on the PIR sensor for 30 to 60 seconds before using it? I've explained about this in the video.
The project is very nice, the codes are also very good, but it does not take and send the photos in real time, it always sends the photos it has taken several times before.
how did you formatted the code, I mean its splitted in 3 parts how did you made it in one single part
@@prajwalx77 copy the part , which do you want to run and paste it on a new sketch
CDRTOSConfigure
embedded:startup.tcl:28: Error: Can't find debug.cfg
in procedure 'script'
at file "embedded:startup.tcl", line 28
what should i do
.
to send pictures to telegram, does the esp32 cam have to be connected to the internet ??
Yes, the ESP32-CAM must be connected to the internet.
@@utehstr in the video, can you add a gsm sim card to replace the wifi connection?
How to reduce photo capturing and sending time
Pls i've same issue
Reduce sensor calibration time
30 ko 0 karo
hello can u show us the schematic and wiring
I've updated the code file in the description of this video to include an installation image of the EPS32 CAM with PIR sensor. The link to download it is available in the description of this video.
@@utehstr thanks so much
@@niggtube4482 You're welcome 🙂.
Can u taking photo without WiFi and pir?
Yes, look here: th-cam.com/video/_5VmYJZI4XI/w-d-xo.html
where is the link for pir esp32 cam and telegram merge program code
ESP32-CAM Take Photo with PIR and Send Photo to Telegram I need this program code link please help!!!!!!
Please, how can I get the code?
The link in the description is not working.
@@D_Hertz I've checked the link to download the code and it works.
Thanks a bunch 😊
this wont work when you provide your mobile hotspot name and password you need a wifi for this
In this project video I use "mobile hotspot" and it works. If it doesn't work for you, check your "mobile hotspot" settings.
@@utehstr after exploring esp 32 I found out it doesn't support 5G it needs 4G
@@utehstrwhat is the role of those 3 lines why we need to activate and comment those then reupload
hi, great tutorial !
i have a question, why telegram did not reply at all when i give command?
this is the response from the serial monitor
Connecting to Bruh
.....
Successfully connected to Bruh
ESP32-CAM IP Address: 192.168.43.207
------------
------------
Got response
Handle New Messages: 1
Incoming command/message : /start
Reply to the start command.
------------
and it ended there. even when i give command like pinging the esp cam it still did not respond at all. do you know why?
thank you!
As you can see in the video, everything is going well. Try re-watching the video, maybe you missed something.
I have the same problem 😅
Hi, first of all thanks for an amazing tutorial!
I am doing some tests but I can not send photos to Telegram. I got every time the same error while sending photos:
"/capture_photo
New photo request
Preparing photo...
Taking a photo...
Successful photo taking.
Connect to api.telegram.org
Connection successful
Send photos.............................................................
From the ESP32-CAM :
ESP32-CAM failed to send photo.
Suggestion :
- Reset ESP32-CAM
- Change FRAMESIZE (see Drop down frame size in void configInitCamera)
------------
"
I've dropped down the frame size and the configInit:
s->set_framesize(s, FRAMESIZE_QQVGA);
config.frame_size = FRAMESIZE_SVGA; else{ config.frame_size = FRAMESIZE_VGA;}
.... Any suggestions? :/
Thank you in advance!!! Great job :)
Make sure that you have entered the correct BOTtoken and CHAT_ID.
@@utehstr I did. Even though I could control Flash led through Telegram. But it's ok, this error was only with the part 2 of the code.
With the third and last part (I mean Cam + Telegram + PIR), everything was fine. Thanks again!! I've seen many tutorials, but yours is the one with the best explanations. 👏🏼👏🏼👏🏼
@@NTX10 When I have some free time, I will check and retest part 2 of the code. Maybe something is wrong there. Thank you for your feedback 🙂🙂🙂.
@@NTX10 Hi, I've checked the code part 2 ("02 ESP32 CAM Take and Send Photo to Telegram"), I found the wrong code written there and I've fixed it. Thanks for telling me about that. I've updated the code file with the code file I've fixed. I have also updated the download link to download the code file. Please try it if you want to try it.
I have the same problem, did you solve it? and how? thank you so much