open sesame - ucsb...open sesame is designed to be a multi-use locking accessory which simplifies...

30
1 Open Sesame Grant Apodaca Jeffrey Bolin Eric Taba Richie Agpaoa Evin Sellin

Upload: others

Post on 30-May-2020

5 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

1

Open Sesame

Grant ApodacaJeffrey Bolin

Eric TabaRichie Agpaoa

Evin Sellin

Page 2: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

2

Description

Open Sesame is a portable, affordable, compact and easy-to-use door security accessory, that can unlock your door remotely through WiFi with an android or iOS app, or it can unlock your door through a Bluetooth proximity detector that discriminates between authorized users. It requires a very simple, non-invasive installation, and it is powered from AA batteries.

Page 3: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

3

Team Sesame● Grant Apodaca - team leader, Bluetooth, and security● Jeff Bolin - WiFi, networking, and server● Eric Taba - motors, motor controllers, and mobile

application● Richie Agpaoa - e-compass, power management, and

camera interface● Evin Sellin - camera interface and web development

Page 4: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

4

Application● Open Sesame is designed to be a multi-use locking accessory which

simplifies the way people lock and unlock their doors● After a simple, non- invasive installation, the user can unlock their door in 1

of 3 ways:o Automatically by approaching the dooro Manually by use of the included appo Manually by use of the web interface

● The door can be locked in a similar fashion○ Automatically by walking away from the door○ Manually by use of the included app○ Manually by use of the web interface

Page 5: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

5

Application II● The App and Web interface serve as control panels for the device

o Lock activationo Settings adjustmento Permissions control by sharing encrypted keys securely or blocking

user ID’so Device health data

Door status (locked / unlocked / ajar)■ Battery health■ Camera access

Page 6: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

6

Application III● We are considering the following tools to develop our application. We can

develop our app with a custom server and the gui controlled directly from the phone. Alternatively, we can use an http server that sends web pages to be displayed on the phone.

● We have not made a decision on the tools to develop the app with, but are considering the following.o Visual Studio/.NET framework (GUI and server)o Qt framework (GUI and custom server)o Ruby on rails (server)o Python (server)

Page 7: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

7

Mechanical Design

Page 8: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

8

Parts List

Component

Part number

Notes Primary features Interface

Processor LPC4088 5 UART, 1 USB, 120 MHz 5 UART, 1 USB

Motor QSH4218-51-10-049

High torque stepper motor to better control for locking mechanism

Bipolar, Hybrid, 69 oz*in torque, 5 V, 1 A20 mm long shaft

Motor Driver

Quadrature Encoder

ENC-A4PS-0360-197-H-M

Used to calibrate and securely lock door bolt within original door’s parameters

Modular, .45” thick GPIO

Motor Driver DRV8834 Stepper motor driver interfacing motor to microcontroller

2.8-10.8V input range, sleep mode, current limiting

GPIO

WiFi module RN171XVW-I/RM low energy, WiFi b/g, communicates with ascii

UART

Bluetooth Module RN42XV Low power and desired 30 ft range class 2, BLE, version 4.0, low power sleep mode

UART

Page 9: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

9

Parts List

Component

Part number

Notes Primary features Interface

E-Compass LSM303D Used to determine status of door (open,closed,ajar)

accelerometer, magnetometer, low power and shutdown modes

I2C

Camera Logitech Webcam C210

Simple to use library for universal camera control

Able to run at low resolutions. Low power. Adjusts for different light levels

USB

SDRAM MT48LC8M16A2-7E Internal buffer 128Mb, 133MHz, 54TSOP EMC

Memory Card Connector

PRT-11362 SD card slot Memory expansion SD

3.3V regulator D24V3F3 Two 3.3V regulators needed for analog and digital

Switching regulator Through hole

5V regulator D24V6F5 Powers USB and quad. encoder Switching regulator Through hole

5V High Amp D15V70F5S3 For motor driver Switching regulator Through hole

Page 10: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

10

Top Level Block Diagram

Page 11: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

11

Schematic

Page 12: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

12

Schematic

Page 13: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

13

PCB Layout - Design●Through-hole devices are given extra room on layout because the cells are not representative of the real size.●Analog components grouped with analog components at top of layout.●Digital components grouped with digital components at bottom of layout.●Power regulation taken care of at the top of the schematic.

○ Power planes routed to reduce power traces○ Digital power plane starts in top left and routes to the bottom○ Analog power plane starts at the top left and routed to the top

●Test headers and LEDs are organized along the edges of the PCB in groups that match with the schematic for easy use.

Page 14: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

14

PCB Layout - Size● Our prototype is made larger than it

needs to be to ensure success in our design.

● In a consumer design, the processor, wifi, bluetooth, SD card modules could be made smaller with different package types, like QFN.

● Analog power regulation could be done off the board to free up space

● Routing could be done on the bottom of the plane

● More than 4 planes could be used.

Page 15: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

15

Critical ElementsBluetooth●Used to detect proximity of an authorized user to lock or unlock door●Establishes WiFi connection and to set calibration of deviceMotor●Used to lock and unlock doorServer●Hosts specific user logins and accountsWiFi●Acts as server providing device statistics to the internet

Page 16: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

16

ProcessorLPC4088●Memory: 512KB Flash, 96KB RAM, 4KB EEPROM●Timers: 9 Standard Timers, 18 PWM Channels●Serial Interfaces: 5 UART, 3 I2C, 3 SPI/SSP, 1 I2S, 1 USB, 2 CAN, 1 Ethernet●Analog Interfaces: 8-ch/12 b ADC channels, 10b DAC channel, 2 comparators●8/16/32 External Bus Interface●109/165 GPIO pins●Max CPU Frequency: 120 MHz●Supply Voltage: 2.4-3.6V●Temperature Range: -40° to 85°C

Page 17: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

17

MotorQSH4218 51-10-049●Operates bolt, locking and unlocking door●Full-Step Motion: lower power consumption●Bipolar Hybrid Stepper Motor●Step Resolution: 1.8° - 200 steps●Torque: 69 oz*in●5 V @ 1 A

Page 18: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

18

Quadrature EncoderENC-A4PS-0360-197-H-M Modular Encoder●Attaches to motor shaft, .45” thickness●Provides shaft index feedback to the microprocessor via GPIO.●Frequency of output signal provides speed of the motor and distance traveled.●Allows for precise monitoring of bolt position due to powered motion or manual rotation (occurs during device configuration)

Page 19: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

19

Motor DriverDRV8834●Texas Instruments DRV8834 Dual Bridge Stepper/DC Motor Driver●Indexer logic for step/direction control●2.5 V - 10.8 V power supply voltage range●1.5-A continuous, 2.2-A peak output current●Current regulation and limiting control●Built in ground pad for thermal regulation

Page 20: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

20

WifiRN171XVW-I/RM●Connectivity: Wi-Fi, 802.11 b/g 2.4GHz●Low power Consumption: 180mA Tx, 3.3V Operation●TTL UART Connections●Supports the following network protocols

-WEP, WPA, WPA2-DHCP, DNS, ARP, ICMP-TCP/IP-FTP, HTTP

Page 21: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

21

Bluetooth

RN42XV Bluetooth Module●Bluetooth v2.1●Class 2 to limit power usage and range

o max 4dBm●UART data connection interface●Supports secure simple pairing●29.9 x 24.4 x 1.8mm●Low power sleep mode

Page 22: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

22

E-CompassLSM303D●A digital 3-axis accelerometer and 3-axis magnetometer in a single package. ●Used to determine if the door is open, closed, or ajar●Built on a 0.4 x 0.9 inch breakout board●Interface: I2C●Operating Voltage: 2.5 V to 5.5 V●Current Draw: 5 mA

Page 23: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

23

CameraLogitech Webcam C210●Communicates over USB via UVC Device Class specification.●Able to run at low resolutions to reduce bandwidth requirements over both USB and WiFi●Easily mounted form factor●Low power usage.

Page 24: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

24

MemorySDRAM (MT48LC8M16A2-7E)●Used as internal buffer●128Mb●Interface: EMCSD Card Slot (PRT-11362)●SD card will be used for memory expansion●Interface: SD DATA

Page 25: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

25

Power Regulators● Two 3.3V switching regulators (D24V3F3)

o One for analog and one for digitalo Operating Voltage: 3.8V to 42Vo Current output: 300 mAo 0.4” x 0.5”

● 5V low amp switching regulator (D24V6F5)o To power the USB and quad encodero Operating Voltage: 6V to 42Vo Current output: 600 mAo 0.4” x 0.5”

Page 26: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

26

High Amp Power Regulator● 5V high amp switching regulator (D15V70F5S3)

o To power the motor drivero Input voltage: 4.5V to 24Vo Current Output: 7Ao 1.9” x 0.6”

Page 27: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

27

Power Distribution

Page 28: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

28

Technology Reuse● WiFi, Bluetooth, SD card slot, and SDRAM

modules will be reused from previous capstone projects to reduce development time. o Better devices have been found, but manufacturing

constraints forbid their use at this point.

Page 29: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

29

Technologies to Consider● We are also considering the use of GPS technologies to

better improve proximity accuracy. Sonar and Infrared are also being explored to aid the GPS with proximity ranging to prevent erroneous door unlockings.

● There are also better power regulators and wireless modules which have better power consumption, smaller physical footprint, and newer wireless standards.

Page 30: Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies the way people lock and unlock their doors After a simple, non- invasive installation,

30

Thank You!

Questions?Comments?Concerns?