Detecting motion with PIR sensor and sending the Raspberry Pi Camera image as email.
Things used in this project
Hardware components
Software apps and online services
- gmail account
- ssh connection
Story
I have make recently a new project and I thought it would be a good idea to share with you Hackster community. I am continuously trying to add new functionality to this existing project.
I got motivation for this project from the project I made without PIR sensor which was based on image processing face detection. I realized that it was having many long python and XML scripts, which might be difficult for everyone to understand also in some cases detecting a motion and capturing image would be more effective.
Currently the project is capturing image when motion is detected with Raspberry Pi camera and sending that image as email notification. I have used python to write the script and have also published it. You should have two email accounts (I have used gmail), to send and receive emails. I have connected PIR sensor on GPIO 23. If your gmail uses SSL certificates you might need another port that 587
I am always looking forward to discussion about the project and comments, suggestions, etc.
Custom parts and enclosures
Photos
screenshot_from_2018-10-18_11-39-25_IKrEi0RZxT.png
Schematics
Connect Pin 3 of Raspberry Pi(5V Power) to the Power pin of the sensor.
Pin 5 of Raspberry Pi (GND) to the GND of the Sensor
And Pin GPIO23 of Raspberry Pi to the output Pin of the sensor(of course one can use different GPIO but then one should change to Python code)
Code
Read More Detail : Raspberry Pi Home Security System with Camera and PIR Sensor