Nicolas “Bailey” Godfrey Joshua Early Marc Garcia Daniel Krummen Group 23 Sponsored By:
Close to Home (C 2 H)
Objectives and Goals Energy Savings Security Automation Convenience
Specifications and Requirements ParameterValue Positive Energy Savings+40% Locking Method Error Rate0% Locking Response Time100ms Polling Time Between Actions5 min
Close to Home System Hub Android App Module Online Database Module …
Close to Home System Hub Android App Module Online Database Module …
Android Application Goals Versatile Lightweight Simple Quick and Effective
Android Application Platform Android 4.0 Ice Cream Sandwich Simple, natural, powerful public APIs Secure management of credentials “Android 4.0 makes it easier for applications to manage authentication and secure sessions. A new keychain API and underlying encrypted storage let applications store and retrieve private keys and their corresponding certificate chains. Any application can use the keychain API to install and store user certificates and CAs securely.” - Android Developers Website
Android Application Platform Free SDK Huge community and developer support Simple integration with the Eclipse IDE Library of virtual devices useful for testing
Android Application Application’s Interaction With the System
Android Application Tasks and Features Main GUI to the Close to Home system Update settings and user permissions
Android Application Tasks and Features Two Classes of users Head of Household Full control of all devices Control of tenant user permissions Tenant Only has permission to control devices the Head of Household allows
Android Application Class Diagram
Android Applications User Interface Simple Quick Easy to Use
Close to Home System Hub Android App Module Online Database Module …
Web Server Basics Bridge the gap between app and hub Utilize web hosted programming to relay data from hub to app and commands from app to hub Utilize web hosted database to keep a live record of the various hub statuses
Web Hosted Programming Java Strongly typed Rigid I/O More Secure Works well with Android Weakly typed Loose I/O Better Server Support Cross-Platform ∴ We are opting for Java in order to work with one language throughout the entire project and facilitate our class-oriented design.
Database Embed in device Can be tricky to keep synched with multiple users Embed on web Can handle multiple users simultaneously on the same database.
Design Fundamentals MySQL Designed based on the class system of the hub based on specific rooms Will be updated by the hub and viewed by the Android app. Java Designed to handle I/O of data and commands Class system to facilitate data sorting by class.
Close to Home System Hub Android App Module Online Database Module …
Point of Contact for Modules Uplink Scheduling Periodic Module Polling C 2 H Hub
Topologies
Hardware Choices Raspberry Pi ATmega328 (Arduino Uno) BeagleBone Processor 700MHz ARM1116MHz720MHz AM3359 RAM 512MB32KB256MB GPIO 8xGPIO14xDIG, 6xANALOG65xGPIO (!) Floating? Yes Op. Volt. 5V UART? Yes LAN? On-Boardw/ ExpansionOn-Board Size 3.4” x 2.2”2.7” x 2.1”3” x 3” Weight 45 grams39.69 grams37 grams Price $40.00$36.00$59.00
Hardware Choices Raspberry Pi ATmega328 (Arduino Uno) BeagleBone Processor 700MHz ARM1116MHz720MHz AM3359 RAM 512MB32KB256MB GPIO 8xGPIO14xDIG, 6xANALOG65xGPIO (!) Floating? Yes Op. Volt. 5V UART? Yes LAN? On-Boardw/ ExpansionOn-Board Size 3.4” x 2.2”2.7” x 2.1”3” x 3” Weight 45 grams39.69 grams37 grams Price $40.00$36.00$59.00
OS/Language Choices CentOS (Linux) Set up once and forget Easily distributable Stable, fast, and server-friendly Free! Java Compatible with CentOS Ties in with app and database Software multi-threading
Close to Home System Hub Android App Module Online Database Module …
120V240VOccupancyComputerLockIn-Wall
Flow Chart
MCU MSP430F2121 Low Power: Active: 200 µA Standby:.7 µA Ram:.1 µA Familiarity C Language Adaptability CC Wireless Ease of Implementation Low Cost Substantial Memory
Wireless CC2520 Zigbee Low Power Ease of Implementation Low Cost Antenna 2.4 GHz Ceramic Very Small Foot Print
120V/240V Module Standard 3-Wire Socket Relay Activated Ammeter detect on/off Wall Powered
120V/240V Module
In-Wall Module Standard Light Switch Relay Activated Ammeter detect on/off Wall Powered
In-Wall Module
Occupancy Module Laser Trip Wire Double Laser Transmit Design Photocell Receiver Increment/Decrement Counter Battery Powered
Occupancy Module
Computer Module Sends Soft Shutdown command via USB Will Monitor On/Off State Ideally Flash Drive Form Factor Powered by Computer 4 in. 8 in. 2 in.
Lock Module Modification to existing lock system Servo Controlled FS5106B 4.8V: 69.6 oz-in (5.01 kg-cm) 6.0V: 83.5 oz-in (6.01 kg-cm) Micro Switch State Detection Battery Powered
Lock Module
Successes and Difficulties
Project Budget PartCost Per Unit Qty. Total Atmel Microcontrollers $ $ Blank Circuit Boards (30 Piece) $ $ Various Resistors and Capacitors $ Raspberry Pi (Hub) $ XBee Radio Module $ $ AA Batteries (20 Pack) $ $ Total: $ Initial Budget
Project Budget PartCost Per Unit Qty. Total Atmel Microcontrollers $ $ Blank Circuit Boards (30 Piece) $ $ Various Resistors and Capacitors $ Raspberry Pi (Hub) $ XBee Radio Module $ $ AA Batteries (20 Pack) $ $ Total: $ Modified Budget
PartCost Per UnitQty.Total Atmel Microcontrollers Black Circuit Boards Raspberry Pi (Hub)$ GB SD Card (Hub)$8.951 Slice of Pi Board (Hub)$ Xbee 1mW Wire (Hub)$ AA Batteries (20 Pack)$12.752$25.50 Various Resistors/Capacitors$ Total:
Initial Plan
Progression (Chart of Progression Here)
What’s Next? Make transmission reliable
Questions