25
SMART DOORBELL A S MART DEVICE TO M A KE YO UR DOOR SMAR T Master of Science in Computer Engineer Class of Pervasive System Ioannis Chatzigianna 18/05/2016 1

Smart DoorBell - Make your door smart with Raspberry Pi!

Embed Size (px)

Citation preview

Page 1: Smart DoorBell - Make your door smart with Raspberry Pi!

SMART DOORBELL

A SM A R T D

E V I CE T

O MA K E Y

O U R DO O R S

M A R T

Master of Science in Computer Engineering

Class of Pervasive System by:Ioannis Chatzigiannakis

18/05/2016

1

Page 2: Smart DoorBell - Make your door smart with Raspberry Pi!

Mattia Brunettihttps

://it.linkedin.com/in/mattiabrunetti

[email protected]

Marco Casinihttps://

it.linkedin.com/in/marcocasini2

[email protected]

ABOUT US

18/05/2016

2

https://github.com/mattiab31/SmartDoorBell

Page 3: Smart DoorBell - Make your door smart with Raspberry Pi!

THE PROBLEM

To control the door when youare not at home.

To control the hall of an officewithout need to be there.

To control automatic gatewithout to be in the range.

18/05/2016

3

There are many situation where is hard to control your «door»!

Page 4: Smart DoorBell - Make your door smart with Raspberry Pi!

OUR SOLUTIONWe developed a «SmartDoorBell», a

device that is always connected to internet, to have a remote control of your door, simply using your smartphone!

18/05/2016

4

There are some similar solutions but:1) Really expensive – more than 200 $2) Need a special app to work 3) Are not flexible (e.g. you can’t turn on

lights)

Page 5: Smart DoorBell - Make your door smart with Raspberry Pi!

POSSIBLE SCENARIOSThe purpose of this device is to help

people to have easly access at their house and to have a remote control of a door.

The focus of this project is about the domestic use of this product.

18/05/2016

5

Page 6: Smart DoorBell - Make your door smart with Raspberry Pi!

18/05/2016

6

POSSIBLE SCENARIOSWe found three main situations:

18/05/2016

6

Owner: with beacon

Friends: with code

Strangers: ring the bell

Page 7: Smart DoorBell - Make your door smart with Raspberry Pi!

18/05/2016

7

POSSIBLE SCENARIOS 1/3

18/05/2016

7

Owner: with beacon

Owner of the house has a beacon device that works like a real key. When he comes back home the «SmartDoorBell» recognise him and unlock the door.

Page 8: Smart DoorBell - Make your door smart with Raspberry Pi!

18/05/2016

8

POSSIBLE SCENARIOS 2/3

18/05/2016

8

Friends: with code

Friends or everyone that would enter in the house, and know the security code, can do that simply typing the code on the numeric keyboard on the door.

Page 9: Smart DoorBell - Make your door smart with Raspberry Pi!

18/05/2016

9

POSSIBLE SCENARIOS 3/3

18/05/2016

9

Strangers: ring the bell

Every time that someone ring the bell the owner receives a Telegram message with a photo and he can decide to take some decisions using Telegram (e.g. take a photo, send/receive vocal messages…)

Page 10: Smart DoorBell - Make your door smart with Raspberry Pi!

THE HARDWARE

18/05/2016

10

Page 11: Smart DoorBell - Make your door smart with Raspberry Pi!

THE SOFTWARE

18/05/2016

11

Script Button

Script OpenDoorScript Secure Code

Our BOT Telegram runs on Raspberry Pi

Script Multi-Media

Page 12: Smart DoorBell - Make your door smart with Raspberry Pi!

BOT COMMANDS/roll reply with a random integer, used for test/time reply with a current time, used for test/photo take a photo and send it to the owner /video take a video and send it to the owner /sound play an audio message from the Raspberry speaker/open unlock the door/openL unlock the door and turn on the light for 10 seconds/light turn on the light for 10 seconds/reboot reboot the Raspberry Pi/shutdown shutdown the Raspberry Pi/help send a document with the list of commands

18/05/2016

12

Page 13: Smart DoorBell - Make your door smart with Raspberry Pi!

PROJECT PROGRESS REPORT

SET UP HARDWA

RE

SET UP SOFTWA

RE

IMPLEMENT

STRANGER

SCENARIO

FAIL TO IMPLEMEN

T API TELEGRAM

ON ANDROID

IMPLEMENT

FRIENDS SCENARI

O

IMPLEMENT

OWNER SCENARI

O

18/05/2016

13

Page 14: Smart DoorBell - Make your door smart with Raspberry Pi!

WHAT’S MISSING – THE OWNER

For the owner side we want that when he comes back home the door will automatically open.

We tried to send an automatic message to our bot with the Telegram API but it’s not so easy to use.

18/05/2016

14

We decided to change the implementation of this part.

Page 15: Smart DoorBell - Make your door smart with Raspberry Pi!

WHAT'S WRONG WITH TELEGRAM?

https://yalantis.com/blog/whats-wrong-telegram-open-api/18/05/20

16

15

1. Telegram’s source code is not an SDK or a library.

2. Strange pieces of code, like setTextColor(0xff757575).3. Magic numbers for int values like “42540” which are passed as flag values. 4. “If-Else” statements that are too long and too, and really long methods.(i.e. 300 lines of code in one method).5. Spaghetti code and copy-paste.6. Only three Activities in such a huge project. 7. Many classes *activity, which extendBaseFragment, which is not actually a Fragment.

Page 16: Smart DoorBell - Make your door smart with Raspberry Pi!

HOW TO SOLVE - CASE 1We developed a simple application for Android

that allow the owner to open the door, with just few click, when he enters in the range of the beacon.

18/05/2016

16

We would use an App like a real key!

PROSEasy to implement

Don’t need additional hardware

CONSIt’s not completly automated

Need to have a special app

Page 17: Smart DoorBell - Make your door smart with Raspberry Pi!

HOW TO SOLVE - CASE 2We use Raspberry Pi as a beacon reciever, and

the beacon of the owner as a trasmitter. When the Raspberry catches the signal, it performs an action.

18/05/2016

17

We would use a Beacon like a real key!

PROSCompletly automated

Don’t need special app

CONSHard to implement

You must have a beacon to enter

Page 18: Smart DoorBell - Make your door smart with Raspberry Pi!

SOME PIC

TURE

W O R K I NP R O G R E S S

18/05/2016

18

Page 19: Smart DoorBell - Make your door smart with Raspberry Pi!

FIRST PROTOTYPE

18/05/2016

19

Page 20: Smart DoorBell - Make your door smart with Raspberry Pi!

SECOND PROTOTYPE

18/05/2016

20

Page 21: Smart DoorBell - Make your door smart with Raspberry Pi!

THIRD PROTOTYPE

18/05/2016

21

Page 22: Smart DoorBell - Make your door smart with Raspberry Pi!

LAST PROTOTYPE

18/05/2016

22

Page 23: Smart DoorBell - Make your door smart with Raspberry Pi!

THE «FINAL» PRODUCT

18/05/2016

23

Page 24: Smart DoorBell - Make your door smart with Raspberry Pi!

LIVE

DEMOSTRATI

ON

18/05/2016

24

Page 25: Smart DoorBell - Make your door smart with Raspberry Pi!

THANKS!

QUESTIONS?SUGGESTION

S?IDEAS?

18/05/2016

25