OBJECTIVE:
- To test the coding with component and see it result.
CONTENT/ PROCEDURE:
Adjust Default Settings in Your Gmail
By default, Google does not allow you to send emails containing Python code. To update this default setting, turn on “Allow less secure apps” in your account settings with the following steps:
- Login to your Gmail account by entering your login credentials.
- Click on your profile picture and then click on “Google account”.
- Under “Sign-in and Security” click “Connected apps and sites”.
- Click “Allow less secure apps” to turn it on.
Connect the Sound Sensor to the Raspberry Pi
Connect the VCC and GND pins of the motion sensor to the 5V and GND of the Raspberry Pi, then connect the OUT pin of the sound sensor to GPIO17. Make sure that you connected the camera to the Raspberry Pi and have turned on on the camera from the interfacing options.
Before running the code, make sure the sender and receiver email addresses and the password of the email sender are all entered.
The code will read the output from the sensor and, upon detecting sound, will capture an image and save it on the database folder.
When you run the code for the first time, it will automatically create the folder. Once the camera captures an image, the image will be attached in the email and sent to the sender’s address.
RESULT & ANALYSIS:
After run the code, we can see that "No intruders" has been display at python because it did not receive any signal from sound sensor.
Next, if we make a sound, it will give an interrupt signal to sound sensor and we can see it display "Intruders Detected" then make a process sending Email that contain image generate from Pi camera to our email.
The image result that sending from Raspberry Pi to email:
CONCLUSION:
As a conclusion, the coding and component is function successfully. Next, i will design the case for my project before going to test at the barn.





No comments:
Post a Comment