Arduino IDE + ESP32 CAM | ESP32-CAM Capture and Send Photos to Telegram | Plus with PIR Sensor

Поділитися
Вставка
  • Опубліковано 4 сер 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.
    ***********************************************
  • Наука та технологія

КОМЕНТАРІ • 115

  • @vilayet90436
    @vilayet90436 Рік тому +4

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

    • @utehstr
      @utehstr  Рік тому +1

      You're welcome 🙂.

    • @abdul2105
      @abdul2105 3 місяці тому

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

  • @maxmubin379
    @maxmubin379 2 дні тому

    Mind blowing sir❤❤❤

  • @arindomain3574
    @arindomain3574 10 місяців тому

    you are awsome

  • @stewartpereira5442
    @stewartpereira5442 Рік тому +1

    Thanks for an Awesome project!!

    • @utehstr
      @utehstr  Рік тому +1

      You're welcome🙂.

    • @abdul2105
      @abdul2105 3 місяці тому

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

  • @rosellamassa6448
    @rosellamassa6448 6 місяців тому

    Grande

  • @cansatmessi2.0
    @cansatmessi2.0 Рік тому

    thank you man, its awesome

    • @utehstr
      @utehstr  Рік тому

      You're welcome 🙂.

  • @geniustechnology3358
    @geniustechnology3358 Рік тому

    Excellent job

  • @ariansyahcenter
    @ariansyahcenter 2 роки тому

    Awesome

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

  • @mahentay8031
    @mahentay8031 2 місяці тому

    Big Thanks

    • @utehstr
      @utehstr  2 місяці тому

      You're welcome🙂

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

  • @bernardfavre4411
    @bernardfavre4411 2 роки тому

    I like!

  • @vortexvgm
    @vortexvgm 11 місяців тому

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

  • @stive8171
    @stive8171 Рік тому +1

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

  • @suryagaming9286
    @suryagaming9286 10 місяців тому

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

  • @zeynepfenercioglu8631
    @zeynepfenercioglu8631 7 місяців тому

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

  • @Nanada1me
    @Nanada1me Рік тому

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

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

  • @dileepkumarprajapati6098
    @dileepkumarprajapati6098 Рік тому +1

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

  • @yogeshitaliya473
    @yogeshitaliya473 2 роки тому

    😍😍😍😍😍

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

  • @ranz-24
    @ranz-24 8 місяців тому

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

  • @deepanshusarawagi6681
    @deepanshusarawagi6681 8 місяців тому

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

  • @azmihusni8021
    @azmihusni8021 Рік тому

    how to connect esp 32 cam with pr and buzzer?

  • @giaphuc2630
    @giaphuc2630 Рік тому

    hey bro can i change with ultra sonic

  • @arrvinnadewi789
    @arrvinnadewi789 7 місяців тому

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

    • @utehstr
      @utehstr  7 місяців тому +1

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

    • @arrvinnadewi789
      @arrvinnadewi789 7 місяців тому

      @@utehstr Noted thank you very much sir

    • @utehstr
      @utehstr  7 місяців тому

      @@arrvinnadewi789 you're welcome 🙂

  • @juanperalta8582
    @juanperalta8582 24 дні тому

    I have a problem with the project. When a I active the option to take photo with the sensor PIR, the esp32cam starts to take photo but the sensor didn't detect any movent. Have Any one had the same problem?

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

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

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

  • @atiowahyudi2495
    @atiowahyudi2495 2 роки тому +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

  • @rosellamassa6448
    @rosellamassa6448 6 місяців тому

    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

  • @frankjay6533
    @frankjay6533 11 місяців тому +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 9 місяців тому

      Same, me to

    • @rakaminul2181
      @rakaminul2181 9 місяців тому

      Please author, answer

    • @psykopat81
      @psykopat81 9 місяців тому

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

    • @user-gf7bj8uf5p
      @user-gf7bj8uf5p 8 місяців тому

      same :(

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

  • @NotFound-vb6xs
    @NotFound-vb6xs 2 роки тому

    Im getting fatal error

  • @abdul2105
    @abdul2105 3 місяці тому

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

  • @AdityaPandey-iy1cx
    @AdityaPandey-iy1cx Рік тому

    Please solve this error “SW_CPU_RESET”

  • @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 9 місяців тому

      please send me the code
      @@narekhambardzumyan1059

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

  • @hurmatbekurinboyev6842
    @hurmatbekurinboyev6842 2 роки тому

    'TELEGRAM_CERTIFICATE_ROOT' was not declared in this scope?

    • @utehstr
      @utehstr  2 роки тому

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

  • @alizahar3939
    @alizahar3939 11 місяців тому

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

    • @utehstr
      @utehstr  11 місяців тому

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

    • @alizahar3939
      @alizahar3939 11 місяців тому

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

  • @fiqianarofi2991
    @fiqianarofi2991 Рік тому

    Can u taking photo without WiFi and pir?

    • @utehstr
      @utehstr  Рік тому

      Yes, look here: ua-cam.com/video/_5VmYJZI4XI/v-deo.html

  • @ayrtoncontreras8674
    @ayrtoncontreras8674 2 роки тому

    Do you have the wiring diagram?

    • @utehstr
      @utehstr  2 роки тому +1

      Look at 14:03 .

  • @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 UA-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

  • @deeghovlogs
    @deeghovlogs 3 місяці тому

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

    • @deeghovlogs
      @deeghovlogs 3 місяці тому

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

  • @psykopat81
    @psykopat81 9 місяців тому

    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 9 місяців тому

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

    • @psykopat81
      @psykopat81 9 місяців тому

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

  • @NileshPatel-ic4zc
    @NileshPatel-ic4zc 2 роки тому +1

    How to reduce photo capturing and sending time

  • @Nirajanvloger34
    @Nirajanvloger34 5 місяців тому

    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
    .

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

  • @D_Hertz
    @D_Hertz 5 місяців тому

    Please, how can I get the code?

    • @D_Hertz
      @D_Hertz 5 місяців тому

      The link in the description is not working.

    • @utehstr
      @utehstr  5 місяців тому

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

    • @D_Hertz
      @D_Hertz 5 місяців тому

      Thanks a bunch 😊

  • @prajwalx77
    @prajwalx77 9 місяців тому

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

    • @utehstr
      @utehstr  9 місяців тому

      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 8 місяців тому

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

    • @prajwalx77
      @prajwalx77 8 місяців тому

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

  • @wiraa7764
    @wiraa7764 2 роки тому +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  2 роки тому

      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 6 місяців тому

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