ECE 4564 - Network Application Design,
Team Immortal, Final Design Project
Visitor Detection and Alert System
Authors: Yihan Pang, Mohammad Islam, and Arun Rai
===============================The Home Visitors Detection and Alert System is designed to detect visitors coming to a house, take their pictures, and send the host (the homeowner) an email message with the pictures. The system also allows the visitor to leave a text message or an email to the host by using a keyboard and a screen monitor that are installed at the entrance door. The goal of this system design is that, while being away from the home, the host can still keep track of his visitors. When the host is away from the home, there are chances of property theft and/or destruction. This device, if installed properly, can provide the user with valuable information of the suspects. The system automatically triggers the camera to take the pictures of the visitors when the visitors are active in front of the door longer than three seconds and sends them to the host. Then the host can take action, if necessary.
Two Raspberyy Pi
One HC-SRQ4 sensor
One Logitech webcam
Two Wi-Fy dongles
Sensor Setup:
Use Wire or dupont cable to connect the HC-SR04 sensor to one raspberry’s GPIO PINsv
Camera Setup:
Connect the webcam to a USB port of the other Raspberry Pi
json
os
pika
pygame
RPi
signal
socket
smtplib
sys
threading
time
twilio
Please see instruction.txt file
Please see instruction.txt file
Folder:
HostInformation: contains the qt application and executable HostInformation for setting the email address and sending options
VisitorMessageBox: contains the qt application and executable VisitorMessageBox for visitor to send messages to user
snapshots>: contains the uploaded photo
File:
README.md: a typical read me file
ThanksYou.mp3: recording played after the visitor sent the message
getSensorData.py: contains the functions that the sensor uses to detect human presence
getVisitorMessage.py: contains the function that get the message that the visitor wrote
infoSetup.py: receive the host user infomration from the HostInformation executable
instruction.txt: step by step walkthrough on how to run the program
welcome.mp3:welcome message when a visitor is detected by the sensor
instruction1.mp3: following message after welcome.mp3 is played
playSound.py:play different sound based on the message it received from message queue
publisher.py:
1. Receive host user information, and send it to the subscriber.
2. Receive visitors' message and send it to the subscriber.
3. Receive sensor reading, and send trigger signal to camera to the subscriber.
send_image_twilio.py: sends a sms of the visitor's image to the cell phone number using twilio account.
send_sms_twilio.py: sends a sms of the visitor's image to the cell phone number using twilio account.
setVisitorMessage.py:set the visitor entered message to be published to subscriber
smsAndEmailToHost.py:sends visitor message to text or email
subscriber.py:
1. Receive host user information.
2. Receive visitors' message.
3. Receive camera trigger signal.
webcame_pi.py: triggers the webcam after getting a signal from the publisher pi.
If you want to be informed about sensor:
- email pyihan1@vt.edu
If you want to be informed about webcam:
- email mri2410@vt.edu
If you want to be informed about GUI Interface and network communication :
- email raiarun52@gmail.com
We would like to use this opportunity to thanks Dr. William Plymale and Thaddeus Czauski for approving us to work on this project as our final team project as we learned and enhanced our knowledge on programming network applications. We also like to thank ECE Department of Virginia Tech for generously supporting us with the equipment we need for this project. In the end, we also thanks the our entire classmates who generously help us on class forum on questions that we encountered in this project. Thanks you all and hope you all have a good winter break.
-Yihan Evan and Arun