Professional Documents
Culture Documents
BONAFIDE CERTIFICATE
Certified that this project report entitled
“IOT Based Doorbell Using Raspberry PI”
is the bonafide work of
A SRI SRAVYA KRISHNA - 160101130041
N SIRISHA - 160101130030
CHARAN KUMAR CHOUDHURY - 160101130037
Who carried out the project work under my supervision. This is to further certify
to the best of my knowledge that this project has not been carried out earlier in
this institute and the university.
Signature Of The Supervisor
Mrs. Jeevaratnam
Assistant Professor
Department of Electronics and Communication Engineering
Certified that the above mentioned project has been duly carried out as per the
norms of the college and statutes of the university
SPECIMEN ACKNOWLEDGEMENT
ACKNOWLEDGEMENTS
I am highly grateful to my group members who evinced keen interest and invaluable
support in the progress and successful completion of my project work.
N.SIRISHA : 160101130030
ABSTRACT
This Raspberry Pi, IoT Doorbell is basically a simple smart Door Bell, which takes a photo of
whoever rings it, and emails it to the specified email address, and keeps all the photos in a folder.
(along with going Ding-Dong).
Hardware is solved by Plug of Webcam into the Rasp-pi, along with your selected network
interface. Then, using the images as a guide (the wiring diagrams + this pinout for rasp pi 1B),
connect your button and resistors to the pi. With the breadboard image, the both wires are the
wires running the the door bell (Project Box with button).
When a person presses the switch or knocks the door , the bell gets rang which is old fashion but
in our project the new thing is when a person presses the switch the bell gets rang and meanwhile
the owner gets notifications through mail with captured image and the message that somebody
knocked the door at particular day and time.
\
5
TABLE OF CONTENTS
1. CHAPTER – 1 INTRODUCTION 7
1.1. Introduction To Wireless Doorbell Using Raspberry Pi
1.2. Product overview
5. CHAPTER – 5 CODING 13
5.1 E-mail Attachment Coding
5.2 Text E-mail Coding
8. CHAPTER – 8 REFERENCES 18
8.1 Reference
7
CHAPTER – 1
INTRODUCTION:
CHAPTER-2
SOFTWARE DESCRIPTION:
1. Use “Zapier” to write the raspberry pi OS image file to the micro Insert micro SD card
and format it using SD card Formatter.
2. Extract Raspbian OS file to get image file.
3. SD card.
4. Remove the SD card and insert into the raspberry pi.
1. Connect micro USB cable to the raspberry pi for power to the raspberry pi.
2. Connect Ethernet cable to the raspberry pi from router which has an active internet
connection.
3. Wait for one to two minutes, as raspberry will be booting after that move onto next steps.
1. Open command prompt by typing CMD in RUN window and 1st open the xming .
2. Type “ping-4 raspberry pi.local”, and Note down the IP address which is mentioned in
the command prompt.
3. Open “putty”.
4. In IP address type “raspberry.local”.
5. Click open.
6. Login as : pi@raspberrypi.local , Password : raspberry (can be anything).
7. Type – start lxde.
8. Type – y.
9. Type – vncserver:1.
10. Close putty.
11. Open putty again.
12. In IP address type raspberry.local.
13. Go to SSH-tunnels in source port type and copy the ip address and paste it.
9
CHAPTER – 3
HARDWARE DESCRIPTION:
Here is the list of parts with approximate prices and links, though you don't need to buy these
exact parts, or you may already own some components.
1. Raspberry Pi 3 Model B :
I have linked Raspberry Pi 3, though any should work, it even has Wi-Fi which
means your doorbell can be wireless. You can also use the other Raspberry Pi Models
also.
And it act as CPU.
3. Web Cam :
It is used to click the images when the persons press the doorbell with the help of
Raspberry Pi 3 Model B and it send the images to E-mail.
4. SD Card:
It is the memory card which is used to store the data in it.
5. HDMI Cable:
It is the cable is used to installation process of OS at Raspberry Pi 3 Model B by
connecting between the Raspberry Pi 3 Model B and laptop.
11
6. LAN Cable:
It is the cable is used to dump the coding part and it is connected between Raspberry
Pi 3 Model B and laptop.
7. Jumper wires:
CHAPTER – 4
BLOCK DIAGRAMS:
4.1 Block diagram
CHAPTER – 5
#!/usr/bin/python
import urllib2
import time
import os
GPIO.setmode(GPIO.BCM)
GPIO.setwarnings(False)
lcd = Adafruit_CharLCDPlate()
lcd.clear()
lcd.backlight(lcd.ON)
lcd.message("Welcome to your\ndoorbell")
sleep(1)
14
def internet_on():
try:
urllib2.urlopen('http://www.google.com', timeout=10)
return True
pass
return False
lcd.clear()
if internet_on():
else:
while True:
lcd.clear()
lcd.message(strftime("%d-%m-%Y %H:%M:%S"))
os.system("sudo python zapier_webhook.py") # put a space within the quote after .py to
insert an argument
os.system("sudo python send_email.py") # put a space within the quote after .py to insert
an argument
time.sleep(0.2)
15
#!/usr/bin/env python
import smtplib
import os
USERNAME = "doorbellding@gmail.com"
PASSWORD = "doorbell2"
MAILTO = "tim@tieka.nl"
MOSTRECENTSNAPSHOT = '/home/pi/camera/images/mostrecent.jpg'
def sendmail():
print('Starting sendmail\n')
msg = MIMEMultipart()
msg['to'] = MAILTO
msg['from'] = "doorbellding@gmail.com"
16
msg.attach(MIMEText(text))
part.set_payload(open(MOSTRECENTSNAPSHOT, "rb").read())
Encoders.encode_base64(part)
msg.attach(part)
server = smtplib.SMTP('smtp.gmail.com:587')
server.ehlo_or_helo_if_needed()
server.starttls()
server.ehlo_or_helo_if_needed()
server.login(USERNAME, PASSWORD)
print('\nVerzonden')
server.quit()
17
CHAPTER – 6
6.1 WORKING:
6.3. APPLICATIONS:
1. When the delivery boy presses the button ,we can come to know that at that time and day
he /she knocked the door.(sms)
2. Who knocked the door ,we can know it.(email with captured image)
3. Security of home, office .., etc.
18
CHAPTER – 7
CONCLUSION:
This project comprises a raspberry pi IOT based smart doorbell. The experimental results of the
system proposed indicate that it may consist support and secure assistance for safe and secure
life with minimum cost of the system. Raspberry Pi is a strong and reliable embedded system
device for the complex and challenges tasks. Using these technologies in the proposed system
will bring several advantages in providing safety and security for the owner and also comfortable
for the visitors.
CHAPTER – 8
REFERENCES:
1. https://docs.google.com/document/d/1e7U_WM1jSo0wgMX5RdpN0eN6p9TWadGYHq
Wf6yR2JZM/edit?usp=sharing
2. https://github.com/in06khattab/Doorbell-6--final-