3rd Year Project
Department of CE - UoP

Remote Gatekeeping System

Control unit with intercom, Smart Mailbox, Mobile controlling interface, Web services
Hero Image


Image

The motivation to our solution

REAL WORLD PROBLEM

In the busy and complicated lifestyle today, keeping interactions with outsiders is, inefficient, impractical and vulnerable. The ongoing pandemic has worsen the situation becase people are afraid to having physical intractions with outsiders.

We have understood that people are having troubles with taking online deliveries to their door steps securely. Since people in Sri Lanka are so busy today, there is a good chance of not being in the house when an outsider or delivery person comes to the door.If the homeowners are not at home , delivery people are adapt to keep the delivery outside the house.Therefore delivery package is subjected to get stolen or get damaged.

Otherthan that , when an outsider comes to the door, if the parents are not home, it is not a good idea to expose the children and elder people to that outsider. It would be better if there is a way to communicate with the outsider when she/he is at the gate.(before entering to the house premise)

We thought we can come up with a system of interconnected devices (inspired from IoT) to provide an efficient solution for those problems.

How it works

Components of the Sytem

Control Unit

This is the main component of the system and all the cotrolling related to the system is done using this unit.Outsider interacts with this component.

Smart Mailbox

This is used to receive the delivery packages safely and this can be remotely controlled by the homeowner from anywhere in the world.

Mobile Application

Used by the homeowner and various features like capturing the photo of the outsider, intercom with the outsider and mailbox/gate controlling is handled using this.

Web Interface

Used to sign up, establish the connection between the system with the user account , download the mobile application and various other purposes.




Image

What happens under the hood

Solution Architecture

This is a high level representation of our system and it shows how our system works.

All of the modules of our system is connected to the microprocessor Raspberry Pi 3 and it will be connected to the internet using built-in wifi module through the home wifi access point.

Then it would be connected to the backend of our system which is firebase.Backend transfer data to the mobile application and the web interface. Connecting and data sharing between the hardware front-end and two software front-end is the main goal of the backend.




Data/Control signal distribution

Data and Control Flow

This is a high level representation of our system and it shows how our the controlling and data transmission happens in the system.

Purple Lines : Control Signals

Black Lines : Data Transmission

Control signals are supplied to all the modules that are connected to the Raspberry Pi3. Data is input to the Raspberry Pi by camera module, push button, usb microphone. The SD card is used to load the raspbian OS to the system and if there are any data to be stored, they are stored using SD card.

IoT device is connected to the backend of our system therefore obvously data sharing happens there. Using the backend , the data transmission between mobile application, web site and the IoT device is achieved.

Image


Image

Blocks and Components

Block Diagram

This figure shows how various components of our system interconnected.

All the controling mechanisms are handled by the control unit of our system. When the homeowner wants to open up the smart mailbox , a control signal will be send to the control unit and control unit will send a control signal to the smart mailbox and it will be opened. This exact behaviour is applied for the smart gatelock as well.

The control unit is going to connected to the power supply adapter and will get power from the wall plug. Then the power required for smart mailbox and smart gatelock will be provided by the control unit itself.

Then it would be connected to the backend of our system which is firebase.Backend transfer data to the mobile application and the web interface. Connecting and data sharing between the hardware front-end and two software front-end is the main goal of the backend.

UX-UI Design

Mobile Application

Image
Login Screen
Image
Welcome Screen
Image
Active Event
Image
Close Active Event
Image
Previous Events
Image
Previous Event Info

UX-UI Design

Web Application

Image
Home Page
Image
Login From
Image
Signup From
Image
Dashboard

UX-UI Design

Hardware Interface

Image
Initialize system
Image
Choosing option
Image
Realtime Updates
Image
Realtime Updates
Image
Realtime Updates
Image
Failure Handling

Algorithms of the System


Algorithm runs on the hardware module

Image

Algorithm runs on the Mobile Application

Image




Image

how we store the data

Database Schemata

We use Firebase Realtime Database as database of our system which is a cloud-hosted database. Data is stored as JSON and synchronized in realtime to every connected client. That means all the clients connected to our system share one Realtime Database instance and automatically receive updates with the newest data.

Firebase Realtime Database is a non sql, dynamic and non relational database.

How the modules are connected

Circuit Diagram


Image

What we have implemented so far...

Progress

Initializtion Node
Failure Handling
Web App Demostration
Interaction with the outsider Demostration
-->

hardware modules

Sensors and Actuators

Blog

Raspberry Pi Camera Module v2 (Sony IMX219)

8 Megapixels

Several image formats (JPEG, BMP, PNG) - smaller file size for faster and effective transmission

300mA current, 1.2V

RPi library: PiCamera

Blog

16 x 2 LCD (CM 162-4)

Affordable

Suits our requirements

Consumes less power compared to other options (3.3 ~ 5V)

RPi library: Adafruit_CharLCD

Blog

Selenoid Lock

Mechanical locks of the Mailbox

Solenoid lock denotes a latch for electrical locking and unlocking

Consumes around 12V

Blog

Mini USB Microphone (Adafruit 3367)

Very reliable for voice recording, which allows optimum communication in Intercom

Works great with a Raspberry Pi computer

5V of electricity with a maximum current of 0.5A

Factory Calibrated

From Week 1 to Week 15

Project Timeline

Week 1 - Week 4

Project Planing

- Coming up with an idea
- Getting familier with the tecknologies
Week 5

Project Proposal

- Presentation explaining the Product and the Tecknologies
Week 6 - Week 8

Preperation and Learning Phase

- Getting along with the tecknologies
- Building the Algorithms
Week 6 - Week 10

Web App and Server Backend Dev

- Development of the User registration system with ReactJS
- Configuration of Firebase server backend and the database
Week 7 - Week 12

Mobile App Dev

- Design of the application structure and laout
- Implementation of the application
Week 9 - Week 13

Microcontroller Environment Dev

- Implementation of Intercom capabilites
- Setting up sensors and actuators
Week 10 - Week 18

Error Handling and Final Test

- Handling the errors arise while combining the technologies
- Testing of the final product
- Fine tuning the system



bakcend services

Scalability

For now, we are using the free tier of the Firestore. Cloud Firestore offers free quota that allows you to get started at no cost. The free quota amounts are listed here.

Firebase offers upto 50,000 document writes per day. We have observed about 25 database reads will take for a single event. If we assume a normal user may encounter 10 events per day, we can handle about 200 nodes per day in the free tier.

Firebase Realtime Database provides 100 simultaneous connections for the free tier. Since we are not expecting that much of events at the same time, it won't be a bottleneck. If it was, we can easily boost it to 200k by upgrading the system to paid tier.

Firebase Realtime Database offers upto 5GB of data storage per day for the free tier. We have analysed for several test cases and found out average event may contains files upto 3MB. Since we are hoping to provide 1 month of backup data, it will be enough for 5 nodes. We can reduce the backup size to accommodate more users, or we can switch to paid tier. Additional 40GBs costs $1 and for that we can provide backup for 40 users.

As a future Implementation, we are going to scale the system to have the ability of connecting several users for a single hardware node.

Image

simultaneous
connections

upto 100

additional
backup storage

$1/ 40 users

Physical designs of our system

CAD & CAM

Blog
Control Unit - Isometric Transparent View
Blog
Control Unit - Exploded View
Blog
Mailbox - Isometric Transparent View
-->

Packagings of our system

Packaging

Blog
Packaging of the Control Unit
Blog
Packaging of the Control Unit
Blog
Packaging Mailboxt
-->

Group 19

Team Members

Image

Achintha Harshamal

Computer Engineering UG

Image

Ishara Nawarathna

Computer Engineering UG

Image

Pubudu Bandara

Computer Engineering UG

Advisors

Image

Dr. Isuru Nawinna

Senior Lecturer
Department of CE

Image

Dr. Mahanama Wickramasinge

Senior Lecturer Department of CE