Daniel Jablonski
Published © GPL3+

Lane Tech HS - PCL - Raspberry Pi Motion Activated Camera

This device will allow you to record activity in places with expensive equipment to know what happened should anything be stolen.

IntermediateFull instructions provided2 hours8,400
Lane Tech HS - PCL - Raspberry Pi Motion Activated Camera

Things used in this project

Hardware components

Raspberry Pi 3 Model B
Raspberry Pi 3 Model B
×1
Camera Module
Raspberry Pi Camera Module
×1
Adafruit Raspberry Pi Case
×1
Adafruit Raspberry Pi Case Lid
×1
Adafruit 8GB SD Card with NOOBS
×1
Adafruit 5V 2.4A Power Supply with 20AWG MicroUSB Cable
×1
Adafruit Adjustable Pi Camera Mount
×1

Story

Read more

Schematics

Camera Installation

Code

sendText.py

Python
This script sends a text message to your phone whenever it is executed
import time
import smtplib

#Sprint	  number@messaging.sprintpcs.com
#Verizon	number@vtext.com
#T-Mobile	number@tmomail.net
#AT&T	    number@txt.att.net

TO= "Your phone # as a carrier email address"
GMAIL_USER="Your GMAIL account email address"
PASS= 'Your account password'

SUBJECT = 'Motion Detected!'
TEXT = 'Your Raspberry Pi detected an intruder!'
print("Sending text")
server = smtplib.SMTP('smtp.gmail.com:587')
server.starttls()
server.login(GMAIL_USER,PASS)
header = 'To: ' + TO + '\n' + 'From: ' + GMAIL_USER
header = header + '\n' + 'Subject: ' + SUBJECT + '\n'
print(header)
msg = header + '\n' + TEXT + '\n\n'
server.sendmail(GMAIL_USER,TO,msg)
server.quit()
time.sleep(1)
print("Text sent")

Credits

Daniel Jablonski

Daniel Jablonski

2 projects • 8 followers

Comments