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.
    ***********************************************
  • วิทยาศาสตร์และเทคโนโลยี

ความคิดเห็น • 113

  • @vilayet90436
    @vilayet90436 ปีที่แล้ว +4

    The best project I have come across on TH-cam. Thanks brother.

    • @utehstr
      @utehstr  ปีที่แล้ว +1

      You're welcome 🙂.

    • @abdul2105
      @abdul2105 2 หลายเดือนก่อน

      @@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?

  • @zeynepfenercioglu8631
    @zeynepfenercioglu8631 6 หลายเดือนก่อน

    Can you please make the same video using the flex sensor? And how can I make it send photos at regular intervals?

  • @stewartpereira5442
    @stewartpereira5442 ปีที่แล้ว +1

    Thanks for an Awesome project!!

    • @utehstr
      @utehstr  ปีที่แล้ว +1

      You're welcome🙂.

    • @abdul2105
      @abdul2105 2 หลายเดือนก่อน

      @@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?

  • @raijinguinita582
    @raijinguinita582 ปีที่แล้ว

    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

  • @FitJamal
    @FitJamal ปีที่แล้ว +1

    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?

  • @cansatmessi2.0
    @cansatmessi2.0 ปีที่แล้ว

    thank you man, its awesome

    • @utehstr
      @utehstr  ปีที่แล้ว

      You're welcome 🙂.

  • @stive8171
    @stive8171 ปีที่แล้ว +1

    cara tu consegue disponibilizar pra mim a pasta com esse codigo??
    não tem nenhum link pra referencia dele. Obg

  • @Nanada1me
    @Nanada1me ปีที่แล้ว

    hello can i know where you buy the 5v supply ?

  • @arindomain3574
    @arindomain3574 8 หลายเดือนก่อน

    you are awsome

  • @dileepkumarprajapati6098
    @dileepkumarprajapati6098 ปีที่แล้ว +1

    I'm facing problem, please help me. "A fatal error occurred: Failed to connect to ESP32: Invalid head of packet ('S')"

  • @vortexvgm
    @vortexvgm 10 หลายเดือนก่อน

    Hello, thank you for this amazing project! Is it possible to send the images to multiple telegram accounts?

  • @ranz-24
    @ranz-24 6 หลายเดือนก่อน

    Hello sir, why does the pir sensor continue to send images even when it is covered?

  • @rosellamassa6448
    @rosellamassa6448 4 หลายเดือนก่อน

    Grande

  • @jensneumann8803
    @jensneumann8803 ปีที่แล้ว

    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?

  • @suryagaming9286
    @suryagaming9286 8 หลายเดือนก่อน

    can we use any other board rather than ai thinker please give me reply

  • @geniustechnology3358
    @geniustechnology3358 ปีที่แล้ว

    Excellent job

    • @utehstr
      @utehstr  ปีที่แล้ว

      Thank you🙂

  • @azmihusni8021
    @azmihusni8021 ปีที่แล้ว

    how to connect esp 32 cam with pr and buzzer?

  • @mahentay8031
    @mahentay8031 หลายเดือนก่อน

    Big Thanks

    • @utehstr
      @utehstr  หลายเดือนก่อน

      You're welcome🙂

  • @adz458YT
    @adz458YT ปีที่แล้ว

    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?

  • @deepanshusarawagi6681
    @deepanshusarawagi6681 7 หลายเดือนก่อน

    Sir code ma koi problem ha esp32 baar baar photo poc kar raha when we use pir

  • @giaphuc2630
    @giaphuc2630 11 หลายเดือนก่อน

    hey bro can i change with ultra sonic

  • @amansingh-xp1ul
    @amansingh-xp1ul ปีที่แล้ว +1

    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

    • @amansingh-xp1ul
      @amansingh-xp1ul ปีที่แล้ว

      Pir sensor related something not present in description as you say .

    • @utehstr
      @utehstr  ปีที่แล้ว

      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.

    • @amansingh-xp1ul
      @amansingh-xp1ul ปีที่แล้ว

      @@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.

  • @arrvinnadewi789
    @arrvinnadewi789 6 หลายเดือนก่อน

    Thanks for the awesome project. may I know what kind of battery do you use ? thanks!

    • @utehstr
      @utehstr  6 หลายเดือนก่อน +1

      I'm using an 18650 battery with a "step up" module to 5v.

    • @arrvinnadewi789
      @arrvinnadewi789 6 หลายเดือนก่อน

      @@utehstr Noted thank you very much sir

    • @utehstr
      @utehstr  6 หลายเดือนก่อน

      @@arrvinnadewi789 you're welcome 🙂

  • @ariansyahcenter
    @ariansyahcenter 2 ปีที่แล้ว

    Awesome

    • @utehstr
      @utehstr  2 ปีที่แล้ว

      Thanks 🙂.

  • @21khanfarhan
    @21khanfarhan ปีที่แล้ว

    How to share access of it (i want to share its access to my family member (we both need access at same time)???

  • @emraheren
    @emraheren 2 ปีที่แล้ว

    how is the power consumption how long can we run it with 18650 battery

    • @utehstr
      @utehstr  2 ปีที่แล้ว

      I don't know for sure, I haven't tried it.

  • @rosellamassa6448
    @rosellamassa6448 4 หลายเดือนก่อน

    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

  • @atiowahyudi2495
    @atiowahyudi2495 ปีที่แล้ว +1

    hi bro..this project was amazing..but i have a question,,why my pir keep detecting and take a poto?

    • @moderatord2984
      @moderatord2984 ปีที่แล้ว

      Hi bro, have you find the solution to that problem?

    • @luismitr8233
      @luismitr8233 ปีที่แล้ว +1

      @@moderatord2984 mine too

    • @labcreative9362
      @labcreative9362 ปีที่แล้ว

      hi bro i have same problem The problem is get many photos when activating the mode with the sensor have you solved the problem

  • @yogeshitaliya473
    @yogeshitaliya473 2 ปีที่แล้ว

    😍😍😍😍😍

    • @utehstr
      @utehstr  2 ปีที่แล้ว +1

      👍🙂

  • @stilianb.383
    @stilianb.383 ปีที่แล้ว

    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

    • @harivarman3472
      @harivarman3472 ปีที่แล้ว

      issue is solved?
      if yes, can you tell me how to fix it?

  • @AdityaPandey-iy1cx
    @AdityaPandey-iy1cx ปีที่แล้ว

    Please solve this error “SW_CPU_RESET”

  • @bernardfavre4411
    @bernardfavre4411 2 ปีที่แล้ว

    I like!

    • @utehstr
      @utehstr  2 ปีที่แล้ว

      Thanks 🙂.

  • @frankjay6533
    @frankjay6533 9 หลายเดือนก่อน +1

    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?

    • @rakaminul2181
      @rakaminul2181 8 หลายเดือนก่อน

      Same, me to

    • @rakaminul2181
      @rakaminul2181 8 หลายเดือนก่อน

      Please author, answer

    • @psykopat81
      @psykopat81 8 หลายเดือนก่อน

      ​@@rakaminul2181it probably sends those picture, which captured during sensor warming

    • @user-gf7bj8uf5p
      @user-gf7bj8uf5p 7 หลายเดือนก่อน

      same :(

  • @narekhambardzumyan1059
    @narekhambardzumyan1059 ปีที่แล้ว

    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

    • @narekhambardzumyan1059
      @narekhambardzumyan1059 ปีที่แล้ว

      Neverminded it was a sensitivity issue on Pir-s side =D

    • @prajwalx77
      @prajwalx77 7 หลายเดือนก่อน

      please send me the code
      @@narekhambardzumyan1059

  • @hurmatbekurinboyev6842
    @hurmatbekurinboyev6842 2 ปีที่แล้ว

    'TELEGRAM_CERTIFICATE_ROOT' was not declared in this scope?

    • @utehstr
      @utehstr  2 ปีที่แล้ว

      Make sure that you have the "UniversalTelegramBot" library installed.

  • @abdul2105
    @abdul2105 2 หลายเดือนก่อน

    Hi please i need help i am constantly getting the error no serial data received is my esp32-cam broken or what is it?

  • @yawarsaeed6499
    @yawarsaeed6499 ปีที่แล้ว

    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.

    • @utehstr
      @utehstr  ปีที่แล้ว

      Hello,
      Make sure that you have used the correct "BOTtoken" and "CHAT_ID".

    • @yawarsaeed6499
      @yawarsaeed6499 ปีที่แล้ว

      @@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.

    • @utehstr
      @utehstr  ปีที่แล้ว

      @@yawarsaeed6499 I'm using Arduino Core for The ESP32 V1.0.6

  • @ayrtoncontreras8674
    @ayrtoncontreras8674 2 ปีที่แล้ว

    Do you have the wiring diagram?

    • @utehstr
      @utehstr  2 ปีที่แล้ว +1

      Look at 14:03 .

  • @NotFound-vb6xs
    @NotFound-vb6xs 2 ปีที่แล้ว

    Im getting fatal error

  • @yoplays
    @yoplays 2 ปีที่แล้ว

    why my pir keep detecting object,i already set my pir sensitive and timing but always detecting object

    • @utehstr
      @utehstr  2 ปีที่แล้ว

      Are you sure you have connected the vcc on the PIR sensor with a 3.3V power supply?

    • @yoplays
      @yoplays 2 ปีที่แล้ว

      @@utehstr yes i already but keep detecting every 1 second

    • @utehstr
      @utehstr  2 ปีที่แล้ว

      @@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.

  • @psykopat81
    @psykopat81 7 หลายเดือนก่อน

    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.

    • @prajwalx77
      @prajwalx77 7 หลายเดือนก่อน

      how did you formatted the code, I mean its splitted in 3 parts how did you made it in one single part

    • @psykopat81
      @psykopat81 7 หลายเดือนก่อน

      @@prajwalx77 copy the part , which do you want to run and paste it on a new sketch

  • @Nirajanvloger34
    @Nirajanvloger34 3 หลายเดือนก่อน

    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
    .

  • @alizahar3939
    @alizahar3939 10 หลายเดือนก่อน

    to send pictures to telegram, does the esp32 cam have to be connected to the internet ??

    • @utehstr
      @utehstr  10 หลายเดือนก่อน

      Yes, the ESP32-CAM must be connected to the internet.

    • @alizahar3939
      @alizahar3939 10 หลายเดือนก่อน

      @@utehstr in the video, can you add a gsm sim card to replace the wifi connection?

  • @NileshPatel-ic4zc
    @NileshPatel-ic4zc ปีที่แล้ว +1

    How to reduce photo capturing and sending time

    • @Justlup22
      @Justlup22 ปีที่แล้ว +1

      Pls i've same issue

    • @21khanfarhan
      @21khanfarhan ปีที่แล้ว

      Reduce sensor calibration time

    • @21khanfarhan
      @21khanfarhan ปีที่แล้ว

      30 ko 0 karo

  • @niggtube4482
    @niggtube4482 ปีที่แล้ว

    hello can u show us the schematic and wiring

    • @utehstr
      @utehstr  ปีที่แล้ว +1

      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.

    • @niggtube4482
      @niggtube4482 ปีที่แล้ว

      @@utehstr thanks so much

    • @utehstr
      @utehstr  ปีที่แล้ว

      @@niggtube4482 You're welcome 🙂.

  • @fiqianarofi2991
    @fiqianarofi2991 ปีที่แล้ว

    Can u taking photo without WiFi and pir?

    • @utehstr
      @utehstr  ปีที่แล้ว

      Yes, look here: th-cam.com/video/_5VmYJZI4XI/w-d-xo.html

  • @deeghovlogs
    @deeghovlogs 2 หลายเดือนก่อน

    where is the link for pir esp32 cam and telegram merge program code

    • @deeghovlogs
      @deeghovlogs 2 หลายเดือนก่อน

      ESP32-CAM Take Photo with PIR and Send Photo to Telegram I need this program code link please help!!!!!!

  • @D_Hertz
    @D_Hertz 4 หลายเดือนก่อน

    Please, how can I get the code?

    • @D_Hertz
      @D_Hertz 4 หลายเดือนก่อน

      The link in the description is not working.

    • @utehstr
      @utehstr  4 หลายเดือนก่อน

      @@D_Hertz I've checked the link to download the code and it works.

    • @D_Hertz
      @D_Hertz 4 หลายเดือนก่อน

      Thanks a bunch 😊

  • @prajwalx77
    @prajwalx77 7 หลายเดือนก่อน

    this wont work when you provide your mobile hotspot name and password you need a wifi for this

    • @utehstr
      @utehstr  7 หลายเดือนก่อน

      In this project video I use "mobile hotspot" and it works. If it doesn't work for you, check your "mobile hotspot" settings.

    • @prajwalx77
      @prajwalx77 7 หลายเดือนก่อน

      @@utehstr after exploring esp 32 I found out it doesn't support 5G it needs 4G

    • @prajwalx77
      @prajwalx77 7 หลายเดือนก่อน

      ​@@utehstrwhat is the role of those 3 lines why we need to activate and comment those then reupload

  • @wiraa7764
    @wiraa7764 ปีที่แล้ว +2

    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!

    • @utehstr
      @utehstr  ปีที่แล้ว

      As you can see in the video, everything is going well. Try re-watching the video, maybe you missed something.

    • @AlexMartin-vi4eq
      @AlexMartin-vi4eq ปีที่แล้ว

      I have the same problem 😅

  • @NTX10
    @NTX10 2 ปีที่แล้ว

    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 :)

    • @utehstr
      @utehstr  2 ปีที่แล้ว

      Make sure that you have entered the correct BOTtoken and CHAT_ID.

    • @NTX10
      @NTX10 2 ปีที่แล้ว

      @@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. 👏🏼👏🏼👏🏼

    • @utehstr
      @utehstr  2 ปีที่แล้ว

      @@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 🙂🙂🙂.

    • @utehstr
      @utehstr  2 ปีที่แล้ว +1

      @@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.

    • @rosellamassa6448
      @rosellamassa6448 4 หลายเดือนก่อน

      I have the same problem, did you solve it? and how? thank you so much