Open Sesame Grant Apodaca Jeffrey Bolin Eric Taba Richie Agpaoa Evin Sellin 1
Description Open Sesame is a portable, affordable, compact and easyto-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. 2
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 3
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 door o Manually by use of the included app o 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 4
Application II The App and Web interface serve as control panels for the device o o o o Lock activation Settings adjustment Permissions control by sharing encrypted keys securely or blocking user ID s Device health data Door status (locked / unlocked / ajar) Battery health Camera access 5
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 o o o Visual Studio/.NET framework (GUI and server) Qt framework (GUI and custom server) Ruby on rails (server) Python (server) 6
Mechanical Design 7
Parts List Compone nt 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 A 20 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 Bluetooth Module RN42XV Low power and desired 30 ft range class 2, BLE, version 4.0, low power sleep mode UART UART 8
Parts List Compon ent 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 I 2 C 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 9
Top Level Block Diagram 10
Schematic 11
Schematic 12
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. 13
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. 14
Critical Elements Bluetooth Used to detect proximity of an authorized user to lock or unlock door Establishes WiFi connection and to set calibration of device Motor Used to lock and unlock door Server Hosts specific user logins and accounts WiFi Acts as server providing device statistics to the internet 15
Processor LPC4088 Memory: 512KB Flash, 96KB RAM, 4KB EEPROM Timers: 9 Standard Timers, 18 PWM Channels Serial Interfaces: 5 UART, 3 I 2 C, 3 SPI/SSP, 1 I 2 S, 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 16
Motor QSH4218 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 17
Quadrature Encoder ENC-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) 18
Motor Driver DRV8834 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 19
Wifi RN171XVW-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 20
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 21
E-Compass LSM303D 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 22
Camera Logitech 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. 23
Memory SDRAM (MT48LC8M16A2-7E) Used as internal buffer 128Mb Interface: EMC SD Card Slot (PRT-11362) SD card will be used for memory expansion Interface: SD DATA 24
Power Regulators Two 3.3V switching regulators (D24V3F3) o One for analog and one for digital o Operating Voltage: 3.8V to 42V o Current output: 300 ma o 0.4 x 0.5 5V low amp switching regulator (D24V6F5) o To power the USB and quad encoder o Operating Voltage: 6V to 42V o Current output: 600 ma o 0.4 x 0.5 25
High Amp Power Regulator 5V high amp switching regulator (D15V70F5S3) o To power the motor driver o Input voltage: 4.5V to 24V o Current Output: 7A o 1.9 x 0.6 26
Power Distribution 27
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. 28
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. 29
Thank You! Questions? Comments? Concerns? 30