100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Essay

Unit 19 Assignment 2 Example 2 (ACHIEVED DDM OVERALL)

Rating
-
Sold
-
Pages
5
Grade
B
Uploaded on
13-09-2022
Written in
2020/2021

How I answered the assignment for Unit 19 Information Technology.

Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Study Level
Examinator
Subject
Unit

Document information

Uploaded on
September 13, 2022
Number of pages
5
Written in
2020/2021
Type
Essay
Professor(s)
Unknown
Grade
B

Subjects

Content preview

Raspberry Pi Motion Detector Annotated Diagram

, Raspberry Pi Motion Detector Code
from gpiozero import MotionSensor
from picamera import PiCamera
from email.mime.image import MIMEImage
from email.mime.multipart import MIMEMultipart
import datetime
import time
import smtplib
#Email Addresses
FromAddress =

ToAddress =
#Finds Motion Sensor and Camera
PIRSensor = MotionSensor(4)
camera = PiCamera()
#Exit While loop
Tripped = True
#Wait Five Seconds
time.sleep(5)
while Tripped:
if PIRSensor.motion_detected:
print("Motion Detected")
#Take a Picture
Tripped = False
TimeCaptured = “/home/pi/Desktop” + datetime.datetime.now().strftime(“%Y-%m-
%d%H:%M:%S”) + “.png”
camera.rotation = 180
camera.capture(TimeCaptured)
print("Image Taken")
#Create the Message
msg = MIMEMultipart()
msg[ “Subject”] = “Intruder”
msg[“From”] = FromAddress
msg[“To”] = ToAddress

#Attach the File
File = open(TimeCaptured, “rb”)
img = MIMEImage(File.read())
File.close()
msg.attach(img)
# Log in Details for FromAddress
username=“”
password=“1999hot”
# The Email Sends from a Microsoft Account
server = smtplib.SMTP(“smtp-mail.outlook.com:587”)
$15.91
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached


Also available in package deal

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
Scrumlin NPTC Group
Follow You need to be logged in order to follow users or courses
Sold
324
Member since
4 year
Number of followers
172
Documents
182
Last sold
1 week ago
Scrumlins School Supplies

Visit our Other Stores on TES and Payhip for more documents! Are you learning about BTEC Information Technology and need the "right" tools? Look no further! Scrumlin's is the place to shop for past exams, study notes and real essays! We have a large inventory of items that were actually used during college classes. If you are looking for an example of how to structure an essay, Scrumlin's has it! Come and shop today!

2.5

22 reviews

5
3
4
2
3
6
2
4
1
7

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions