430 likes | 514 Views
A comprehensive system consisting of database, hubs, Android app, and modules for automated energy saving, security, and convenience. Utilizes PHP, MySQL, Raspberry Pi, Python, Zigbee, and more for seamless integration and operation.
E N D
Joshua Early Marc Garcia Nicholas “Bailey” Godfrey Daniel “DK” Krummen Group 23 Sponsored By:
Objectives and Goals • Energy Savings • Security • Automation • Convenience
Close to Home System Online Database Module Module Hub Android App Module … Module
Close to Home System Online Database Module Module Hub Android App Module … Module
Android Application Goals • Versatile • Lightweight • Simple • Quick and Effective
Android Application Platform • Android 4.0 Ice Cream Sandwich • Simple, natural, powerful public APIs
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 • Communicates with the database to check for current status of devices • Works with the Database and Hub to change the physical states of the devices
Android Application Class Diagram
Android 4.0 Ice Cream Sandwich User Interface • Simple • Quick • Easy to Use
Close to Home System Online Database Module Module Hub Android App Module … 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 • Weakly typed • Loose I/O • Better Server Support • Cross-Platform ∴We are opting for PHP in order to help the system work together throughout the entire project and facilitate accessibility for the Hub and App.
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.
Server 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. PHP • Designed to handle I/O of data and commands • Class system to facilitate data sorting by class.
Close to Home System Online Database Module Module Hub Android App Module … Module
C2H Hub • Point of Contact for Modules • Uplink • Scheduling • Periodic Module Polling
Raspberry Pi equipped with… Raspbian (Linux) • Set up once and forget • Fastand responsive • Developed for the Pi’s Hardware • Free! Python • Compatible with Raspbian • Ties in with app and database • Accessible serial GPIO control
Close to Home System Online Database Module Module Hub Android App Module … Module
Modules 120V 240V In-Wall Occupancy Computer Lock
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
In-Wall Module • Standard Light Switch • Relay Activated • Ammeter detect on/off • Wall Powered
Occupancy Module • Laser Trip Wire • Double Laser Transmit Design • Photocell Receiver • Increment/Decrement Counter • Battery Powered
Computer Module • Sends Soft Shutdown command via USB • Will Monitor On/Off State • Ideally Flash Drive Form Factor • Powered by Computer 2 in. 4 in. 8 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
Successes and Difficulties Successes • Well under budget Difficulties • Synchronized progress required • PCBs arrived with incorrect design • Building a door is hard!
Project Budget Initial Budget