Build your own smart Wi-Fi security camera using the ESP32-CAM module and PIR motion sensor (HC-SR501) that instantly sends photo alerts to your smartphone via Telegram when motion is detected. This step-by-step beginner-friendly tutorial covers everything — from circuit connections, ESP32-CAM setup, and coding, to testing and real-world applications. Whether you're a hobbyist or an advanced maker, this is the perfect home security project to upgrade your DIY skills!
COMPONENTS REQUIRED:
1. ESP32-CAM Module (with OV2640 Camera)
2. PIR Motion Sensor (HC-SR501)
3. ESP32-CAM Programming Module (FTDI/USB-TTL)
4. 2 × 18650 Li-ion Batteries + Battery Holder
5. PCB or Breadboard (for circuit connections)
6. Spacers and Screws (for mounting)
7. JST Connector (optional for secure connections)
8. DC-DC Buck Converter (LM2596) – to regulate 5V supply
9. Arduino UNO (for PIR sensor calibration)
10. Screws, spacers, double-sided tape
11. Multimeter
DOWNLOADS & RESOURCES:
Code, circuit diagrams and setup instructions:
Available on my GitHub:
https://github.com/SciCraft9/DIY-Security-CAM.gitHere's the diagram of the back side of my PCB:
https://drive.google.com/file/d/1SpiKmVdVnrVo1GmQC8sV1FczhFYFmV5G/view?usp=sharingTimestamps – ESP32-CAM Smart Security Camera Project
00:00 - Intro
00:25 - Components Required
01:18 - Uploading Code to ESP32-CAM
05:50 - Circuit connection and power setup
08:30 - Calibrating PIR sensor using Arduino
10:22 - TESTING!!
11:20 - Troubleshooting tips
12:11 - Outro
If you have any problem related to this project, feel free to contact me. My email – scicraft90@gmail.com
Thanks for checking out my project — happy building and goodbye! 😊