In recent years, smart security systems have become essential for homes and workplaces. Traditional systems require continuous monitoring, but with IoT and embedded systems, we can automate surveillance.
This project demonstrates a motion-activated security camera using ESP32-CAM and PIR sensor. When motion is detected, the ESP32-CAM captures an image and sends it to a registered email address using the CircuitDigest Cloud platform.
- Detects motion using PIR sensor
- Captures image instantly
- Sends captured image via Email
- Uses secure HTTPS communication
- Wi-Fi enabled IoT-based security system
| S.No | Component | Purpose |
|---|---|---|
| 1 | ESP32-CAM | Main controller & image capture |
| 2 | PIR Sensor | Motion detection |
| 3 | Breadboard | Hardware connections |
| 4 | Jumper Wires | Interfacing |
| 5 | Red LED | Status indication |
| 6 | 220Ξ© Resistor | LED protection |
Note: If using standard ESP32-CAM (without USB), you need a USB-to-Serial converter for programming.
- PIR OUT β GPIO13
- PIR VCC β 5V
- PIR GND β GND
- Red LED β GPIO14 (with 220Ξ© resistor)
- Flash LED β GPIO4 (Onboard)
- ESP32-CAM connects to Wi-Fi
- PIR sensor continuously monitors motion
- When motion detected:
- Flash LED turns ON
- Image is captured
- Image stored in frame buffer
- HTTPS POST request sent to cloud
- Cloud server processes request
- Email with image attachment is delivered
System LED indications:
- Fast blink β Initialization
- Slow blink β Monitoring mode
- Flash ON β Capturing image
π Applications
π Home Security Monitoring
π’ Office Surveillance
π¦ Warehouse Protection
πΎ Remote Area Monitoring
π Conclusion
This project provides a cost-effective smart surveillance solution using ESP32-CAM. It combines: Motion sensing,Real-time image capture,Secure Wi-Fi communication and Cloud-based email alerts.
β Frequently Asked Questions
-
Why does ESP32-CAM fail to capture images? Usually due to insufficient power supply or incorrect configuration.
-
Why is email not being sent? Check Wi-Fi, API key, and server endpoint configuration.
-
PIR detection range? Typically 5β7 meters depending on model and environment.
-
Can images be stored locally? Yes, using microSD card integration.
-
Is this suitable for real security systems? For basic monitoring yes. Professional systems require additional security features.
Author:
Vedhathiri. K