Development of an IoT Enabled Smart Security System Using PIR (Motion Sensor) and Esp32cam Micro-Controller
Hi, I'm @techlhab and it's my pleasure to share this with you. Which is an IoT-enabled smart security system using PIR (Passive Infrared) Motion Sensor, and ESP32CAM Microcontroller .
In developing this project I used the following hardware components:
- PIR (Passive Infrared) Motion Sensor
- Control Switch
- Relay Module
- TP4056 Lithium Battery Charger
- 2000mAH 3.7v Lithium Battery
- Indicating LED (Light Emitting Diode)
- DC-DC step up converter
- Female USB Port
- Connecting Wires
- 12v Power Jack
- Arduino IDE (Integrated and Development Environment)
- Embedded C/C++
- HTML (HyperText Markup Language)
- CSS (Cascading Style Sheet)
The project was developed to solve problems relating to security and lightening smartly.
ESP32 CAM is an advance and modern IoT-enabled microcontroller that has Bluetooth, a Camera, Wifi (Wireless Fidelity), Micro SD (Secure Digital) Card Slot, and a very Bright LED embedded in it which makes it very useful and capable of performing many functions.
When the device is been put on, by pressing the power control switch, a power LED (Light Emitting Diode) comes on. The ESP32Cam connects to the Internet and hence has its own unique static IP (Internet Protocol) Address. When the IP of the device is been navigated on a web browser it displays that which is below.
When the device senses movement through the PIR (Passive Infrared) Motion Sensor, the ESP32Cam takes picture of the instance and the LED (Light Emitting Diode) embedded on the micro-controller flashes simultaneously.
In the absence of movement, the device continues to display the video of what the camera sees on the webpage as shown above.
The webpage interface was developed with HTML (Hypertext Markup Language) for providing the structure of the webpage and CSS (Cascading Style Sheet) for styling the webpage. Arduino IDE (Integrated Development Environment) was used for writing the codes used for the project and C/C++ programming language was also used in the development of the software part of the project.
The buttons on the webpage are used to control the lights on the ESP32Cam and also the 5v output of the Female USB (Universal Serial Bus) port on the device which is been connected to a relay module for easy switching.
Below is the schematic diagram I designed for the project and the first image shown above is the wiring diagram.
You can find the codes and other resources relating to the project through this link.
Thanks for reading 🤝, don't forget to like ❤️, comment ✍️, and share.
Posted with STEMGeeks