secure outside package box “sopbox”makeblock co/81340 motor with encoder 7.4v dc 0.5a $13.79...

36
Secure Outside Package Box “SOPBOX” Group 8 Thomas Garner Alejandro Valdes Dustin Huff Jeffery Henry

Upload: others

Post on 27-May-2020

4 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

Secure Outside

Package Box

“SOPBOX” Group 8

Thomas Garner

Alejandro Valdes

Dustin Huff

Jeffery Henry

Page 2: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

Packages being stolen off one person front porch

Packages that are damaged due to inclement weather

Financially feasible option for people who want to keep there packages secure but may not be able to afford something with a ridiculous price tag.

The lockbox is weather resistance and protects the packages

The lockbox will be securely shut and locked and only certain people can access the lockbox to access the package

Motivation

Page 3: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

Goals and Objective

Smart Mailbox that will open and close using a locking mechanism that is enabled and disabled by RFID

RFID is composed of RFID reader and two corresponding tags, one for the delivery person and one for the home owner

The smart mailbox should be able to detect motion of someone or something in front of the box and take a corresponding picture of it

The smart mailbox will have a mobile application that the user can download to keep him or her updated with their box.

The mobile application will let the user know about lid status, pictures being taken and the power status of the box

Page 4: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

Specifications and Requirements Components Design Specification

Wi-Fi Maximum range of 100 meters from its location

RFID Tag max distance 30 mm (with Mifare 1 card)

Camera Detect motion 15 feet in front of the camera

Battery Backup battery system run for a minimum of 24 hours

Power Running on 120V 60Hz AC power from standard 3-prong

outlet

Enclosure 6 cubic feet of storage space

Page 5: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

Overall Block

Diagram

Page 6: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

Hardware

Enclosure

Criteria

Sturdy

Weather resistant

Large enough for packages

Low cost

There were many different options to

consider

Metal

Hard plastic

Size

Mobility

Cost

Page 7: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

Enclosure

Rubbermaid 19 Gallon deck box

Weather resistant

Wont damage the surrounding area

Big enough for packages

Reasonable price

A container like this will be easier to modify

Several hollowed out portions along the inside

wall and lid that could serve as mounting

points for our hardware.

Page 8: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

Microcontrollers

ATmega328P MSP430G2533 BCM2837

Cost $2.15 $2.69 $43.75

Number of

I/O ports

23 pins 24 pins 40 pins

Number of

Host

Interface

ports

2 SPI,

1 I2C,

1 UART

2 SPI,

1 UART,

1 12C

3 SPI,

2 UART,

2 I2C

Power

Draw

200uA at 1

MHz

230uA at 1

MHz

800mA at

1 MHz

Operating

Voltage

1.8V – 5.5V 1.8V – 3.3V 2.5V –

5.5V

Criteria:

Low cost

Host Interface Ports

Easy to learn

Power Consumption

General Input/Output

ports

Page 9: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

ATmega328P

Cost $2.15

Clock Speed 16 MHz

Dev board Arduino Uno

Operating Voltage 1.8V – 5.5V

Power draw 200uA at 1 MHz

Number of I/O ports 23 pins

Host Interface Ports 2 SPI, 1 I2C, 1 UART

• The ATmega328P check off all out

boxes of things that we want

• Low power

• Low Cost

• Host interface ports

• General I/O ports

• Going with the Arduino was the best

option for our project. We will be using

the Arduino IDE to code our MCU and

have it talk to our modules.

Page 10: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

Camera

TTL Serial Camera comes with a library and

independent configuration software to

adjust settings for the camera.

The library contains a motion sensor

feature that allows easy-use security

monitoring.

Page 11: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

Locking Mechanism

There are multiple options to lock an

enclosure.

Some criteria were:

Number of components or moving parts

Type of components (electrical or mechanical parts)

Power consumption (constant or intermittent draw)

All of this boils down to three types of

mechanisms:

Armature plate

Solenoid

Motor

Page 12: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

Locking Mechanism Cont.

Company/Part name Description Voltage

Rating

Current Draw Price Torque Force

AGPtEK/HS0028 Armature Plate/Fail

Safe

12V DC 0.11A ~0.15A $20.99 130LBS

Visionis/VIS-ML120 Armature Plate/Fail

Safe

12V DC ~0.12A $19.11 120LBS

Visionis/VIS-ML300LED Armature Plate/Fail

Safe

12/24V DC 0.30A at 12V; 0.15A

at 24V

$36.99 300LBS

Visionis/VIS-CL102 Solenoid/ Push in 12V DC 1.45A ±10% $11.80

SparkFun/ROB-11015 Solenoid/ Push in 5V DC 1.1A $4.95

Delta Electronics/DSOS-0416-03D Solenoid/ Push in 3V DC 1.3A $5.50

Delta Electronics/DSMS-0730-05 Solenoid/ Push in 5V DC 5.9A $20.16

MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m

N•m

Digilent/290-028 Stepper Motor 5V DC $5.24

Page 13: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

We opted for the armature plate because it did not involve any

moving parts. The enclosure is either closed or it isn’t and the

armature would be energized accordingly.

FPC Security offered a 600 lb lock for $40, so we got that because

it was also the same power consumption as the 300 lb version just

larger.

AGPtEK/HS0028 Armature

Plate/Fail

Safe

12V DC 0.11A

~0.15A

$20.99 130LBS

Visionis/VIS-ML120 Armature

Plate/Fail

Safe

12V DC ~0.12A $19.11 120LBS

Visionis/VIS-

ML300LED

Armature

Plate/Fail

Safe

12/24V

DC

0.30A at

12V;

0.15A at

24V

$36.99 300LBS

Locking Mechanism Cont.

Page 14: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

Locking Mechanism Cont.

Because the lock requires higher voltage and current than the MCU can provide, a relay

is required to separate the two circuits.

In order to isolate the MCU’s circuit as much as possible, we chose a relay circuit that

utilizes an optocoupler.

We performed a small test to check if the armature plate could be properly energized

at lower power levels for when the system has to operate on battery power.

RegulatorRelay

Wall Power

Lock MCU12 V

5 V

Battery

Page 15: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

Lid Sensor

There were four options that we could

have used:

Magnetic sensor, Hall sensor or Reed switch

Ambient light, because a closed enclosure should be dark

Gyroscope, measure the pitch of the lid

Force sensitive resistor, outputs a different voltage

depending on pressure

The reed switch was the easiest and most

cost-effective implementation because it

only requires checking for continuity from

the MCU to ground.

Page 16: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

RFID

MiFare RC522 module, MFRC522, is the

easiest way to implement a security

identification system.

A master card is used to add or remove

any RFID tags.

The Unique ID (UID) of each Proximity

Integrated Circuit Card (PICC) will be

saved to the SD card.

Each scan of a PICC will be compared to

the registered PICCs on the SD card.

Page 17: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

RFID Cont.

After comparing the UID, the MCU will send an alert that there was a successful tag scanned.

MCU

APP

DATABASE

MFRC522

ESP12E

Page 18: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

Wireless Connection

ESP8266 WiFi module will serve as the link between the MCU and the database

WiFi has a larger connection range than Bluetooth

Several WiFi libraries that are available to manipulate WiFi configuration

Module Communication Memory

ESP-01S UART 1 MiB Flash

ESP-12E UART,SPI,I2C 4 MiB Flash

Page 19: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

ESP8266-12E

Interfaces with the MCU over I2C to transmit

events from system to database

Flash memory acts as a buffer for the data to

be sent

Page 20: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

Receives 12v DC input

Chargers and

discharges Battery

Outputs 12v, 5v, and

3.3v DC

Provides the project

with 24h of power in

the event of a power

failure

Power

Power Board

Page 21: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

Consist of 18650 Li-ion Cells

Eight cells wired in parallel

Each cell is 3.7v nominal with 2800mAh

Each cell has about 10Wh of energy giving the battery 80Wh

This is excessed our estimated design requirement of 60Wh

Battery

Page 22: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

BQ24195 by Texas Instruments

Accepts a 12v input source

Has safe charging futures

Can output 5v for the system

Can interface with a MCU

Battery Management System

Page 23: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

Power Board Schematic Draft

Page 24: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

The Logic Board is were all the

major hardware components

are joined together

All peripherals interface with

the MCU’s and Wi-Fi module

Power is delivered to the logic

board at 3 different voltages

from a separate power board

Logic Board

Page 25: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

The ATmega328P is the MCU that powers the L.B.

The MCU interfaces with the RFID & SD Card through UART

It interfaces with the WiFithrough I2C

And it interfaces with the Camera through Serial COM

The Lock Sensor & Maglock interface through the std I/O ports on the ATmega

Logic Board Schematic

Page 26: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

Logic Board Layout and Prototype

Page 27: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

Software

Mobile

Application When it comes to writing the mobile

application we had to figure out which

mobile operating system we wanted to

write the app for

We could use android studio for android or

swift for IOS

Another option that was available was to

use React Native, which doesn’t restrict

ones development to be tailored to a

single operating system.

Page 28: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

React Native

When it came to deciding on which

platform we were going to use we wanted

to make sure that out mobile application

would be for Android

React Native is the best option for us to

complete our goal

Only have to write the code in one language (JavaScript)

React native provides hot reloading which gives the

developer fast modifications to their application

React native Debugger

Project can be developed in any editor/IDE

Page 29: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

Mobile

Application

Features Displays

Power

Camera log

Lid status

Most recent tag scanned

Battery percentage

The user is able to connect there

mobile device to the box to keep

track of the status of the box and

packages.

Page 30: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

Database

We chose Firebase as our backend service

Firebase provides secure authentication methods, modifiable security

rules, and firebase cloud functions.

Cloud functions allow developers to write “serverless” event driven

code for their backend.

These features are what persuaded us to choose firebase for our

backend.

Page 31: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

Use Case

Diagram

Page 32: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

Class

Diagram

Page 33: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

GUI

Page 34: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

Budget and Financing Item Supplier Price/Units # Units Cost Item Supplier Price/Units # Units Cost

Enclosure Home

Depot

$40.00 1 $40.00 Samsung

2500mAh

18650 Battery

Store

$5.00 8 $40.00

TTL Serial Camera Amazon $60.00 1 $60.00 AC/DC power

convertor

Amazon $16.98 1 $16.98

ATmega328P/

Dev Board

Amazon $29.75 2 $29.75 PCB boards

(logic) * does bot

include shipping

JBLC PCB $3.00 3 $9.00

MF-RC522 Amazon $5.49 2 $11.00 PCB boards

(power) * does

bot include

shipping

JBLC PCB $3.00 2 $6.00

ESP8266-12e Amazon $6.50 2 $12.99

Locking

Mechanism

Visionis/VIS-

ML300LED

Amazon $38.99 1 $38.99

Adafruit MicroSD Amazon $9.55 2 $19.10

2 Channel relay Amazon $6.59 1 $6.59

Total $200.92 Total $72.79

Total = $273.71

Page 35: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

Progress

0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%

Research

Design

Prototyping

Testing

Total

Page 36: Secure Outside Package Box “SOPBox”MakeBlock Co/81340 Motor with encoder 7.4V DC 0.5A $13.79 78.45 m N•m Digilent/290-028 Stepper Motor 5V DC $5.24

Demo and Questions?