This project uses an microcontroller ESP32CAM and software generated by Our device will turn on the camera on a signal from the motion sensor and send photos via telegram bot to a chat or channel. You can also send commands via the  telegram bot to the microcontroller. Before starting work with the module save the firmware that came with your module to a file using the esptool command: -p COM3 -b 115200 read_flash 0x00000 0x400000 backup.bin

You can always restore the software from a backup using the command: -p COM3 -b 115200 –after no_reset write_flash –flash_size 4MB –flash_mode dio 0x00000 backup.bin –erase-all

Now you can start your project. Select the required functions on this web page. Be sure to check the following features:

  1. Telegram
  2. Camera
  3. GPIO
  4. Logic2
  5. OLED 128×64
  6. Default settings

On the “Default Settings” function, click the gear icon and fill in the parameters of your WiFi network.










Compile and download the firmware in three files to your computer. Using the program “ESP32 Download tool” , download the firmware from a computer to your device via a USB connection.


Wait until the firmware download is completed and connect to the device via the web interface. The rest of the settings and updates are easy to do through the web interface at the address http://<ip address you ESP>.  (Also the camera image will be available at http://<ip address you ESP>/cam).










On the notification web page, configure the Telegram parameters.

Next, configure GPIO 33 which is associated with the motion sensor.


On the Logic2 web page, configure the logic of the module.


That’s all, you can check the work. 🙂






























Note the image from the camera can be obtained by sending the command cam or automatically by the motion sensor.

Leave a Reply