OUR PROJECT IS LIKE A THIRD EYE...


I'm inspired on the thing that ESP32CAM sends the messages and photos to the user's telegram id

I searched through internet and learned how the message is sent to telegram...that was interesting and It Capture pictures whenever the motion is detected..


We build our project by the following components

  1. ESP32CAM - MODEL (AI - THINKER)
  2. PIR SENSOR
  3. FTDI USB DRIVER
  4. JUMPER WIRES
  5. LED LIGHTS

CONSTRUCTION :

  • STEP 1 : First we need an Arduino ide to program the ESP32CAM and after that we need to install the esp32 libraries from board preferences on Arduino ide which was provided by Espressif Systems
  • STEP 2 :Next we can use FTDI USB or Arduino board both can be used to program ESP32CAM.
  • STEP 3: Connect the PIR SENSOR to the ESP32CAM according to below connections

  1. ESP32-CAM GND -> FTDI Programmer GND
  2. ESP32-CAM 5V -> FTDI Programmer VCC(5V)
  3. ESP32-CAM U0R -> FTDI Programmer TX
  4. ESP32-CAM U0T -> FTDI Programmer RX
  5. ESP32-CAM GPIO 0 -> FTDI Programmer GND
  6. ESP32-CAM GPIO 13 -> PIR DIGITAL PIN
  7. ESP32-CAM 5V -> PIR VCC
  8. ESP32-CAM GND -> PIR GND

  • STEP 4 : Upload the code into ide but before that for credentials

  1. You’ll create a Telegram bot for your ESP32-CAM;
  2. You can start a conversation with the ESP32-CAM bot;
  3. When you send the message /photo to the ESP32-CAM bot, the ESP32-CAM board receives the message, takes a new photo and responds with that photo;
  4. You can send the message /flash to toggle the ESP32-CAM’s LED flash;
  5. You can send the /start message to receive a welcome message with the commands to control the board;
  6. The ESP32-CAM will only respond to messages coming from your Telegram account ID. And finally upload the code into the ESP32CAM.

  • STEP 5 : While programming the gpio0 and GND should be connected together and after uploading remove the jumper wires.
  • STEP 6: Finally press the reset button in ESP32CAM to start working and you I'll be able to see the message on the serial monitor and if motion detected the message is send to telegram and you can type commands to use flash etc.

CHALLENGES FACED

We faced many challenges like sometimes camera didn't work and we get unusual outputs and motion detecting problems, power input, WIFI range etc.


TWO MODES

i ) ONLINE MODE

It requires WIFI connection to send and receive messages here we don't need MicroSD card and for long meter connections we use IPEX connector and 5V constant External power supply is needed.


ii ) OFFLINE MODE

It doesn't need WIFI for communication and it manually stores the picture in the MicroSD card and later when you want to see the pictures you simply remove the MicroSD card from ESP32CAM and read it by using card reader but it needs a constant 5V constant External power supply.


Built With

Share this project:

Updates