Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies...

Post on 30-May-2020

5 views 0 download

Transcript of Open Sesame - UCSB...Open Sesame is designed to be a multi-use locking accessory which simplifies...

1

Open Sesame

Grant ApodacaJeffrey Bolin

Eric TabaRichie Agpaoa

Evin Sellin

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.

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

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

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

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)

7

Mechanical Design

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

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

10

Top Level Block Diagram

11

Schematic

12

Schematic

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.

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.

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

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

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

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)

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

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

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

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

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.

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

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”

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”

27

Power Distribution

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.

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.

30

Thank You!

Questions?Comments?Concerns?