iHome Automation System Home Automation System Team: Million Dollar Contingency Regiment Adam Doehling Chris Manning Ryan Patterson 1 Updated Overview: • The goal of this project is to develop a home automation system that gives the user complete control over all remotely controllable aspects of his or her home. • The automation system will have the ability to be controlled from a central host PC, the Internet, and also remotely accessed via a Pocket PC with a Windows Mobile based application. • We do not have any ‘tangible’ test results to present in this presentation, but we will demonstrate some software we have developed. iHome Security & Automation System 2 iHome Security & Automation System iHome Automation Overall Flowchart (Review) 3 Hardware Description-Base Station iHome Control Center USB Base Station RS-485 Wireless L1 Nodes Base Station Block Diagram iHome Security & Automation System 4 Base • Attaches to PC, interfaces between software and hardware. iHome Security & Automation System 5 Hardware Description-Level 1 Nodes • Controls L0 nodes, replaces light switch, has simple user interface. Level 1 Node RS-485 Bus Quadrature Encoders L1 Node RS-485 Transceiver 8-bit Parallel Bus MCU TI MSP430F149 SPI Bus PWM 1 Mb Flash Touch Sensors LCD Display iHome Security & Automation System Digital Potentiometer 6 L1 MCU iHome Security & Automation System 7 L1 comm iHome Security & Automation System 8 L1 sensor iHome Security & Automation System 9 L1 touch iHome Security & Automation System 10 USB programmer iHome Security & Automation System 11 Hardware Description-Level 0 Nodes • Basic ‘cells,’ controlled by level 1 nodes. Mainly On/Off/Sensor functionality. Since L0 nodes are so varying in what kinds of functions they carry out, it is impossible to block diagram every variety, since they all contain different hardware. Generically, however, they look like this: Level 0 Block Level 1 Node Diagram See next slide for comprehensive list of interface connections Level 0 Node Sensor/Switch iHome Security & Automation System 12 L1 Device Interface All L0 Nodes connect to the system via L1 nodes using the following L1 ports: • Eight TTL Output Ports (5V) • Four TTL Input Ports (5V) • Three Analog Input Ports (3.3V) • Four PWM Output Port (5V, resolution of 33,300) • 127 Channel I2C Port (3.6V) • Two SPI Ports (3.6V, 1mbps) • One digital quadrature encoder input (5V) iHome Security & Automation System 13 Hardware Description-Level 2 Nodes • Controls audio communications, no user interface RCA/Stereo Mini Connector (30 Ω) Stereo Output 2x22W Speaker Output (4Ω) Stereo Mini Connector Line In MP3/WAV Encoder/Decoder VLSI1003 SPI 8-bit Parallel Addressed Bus MCU 8-bit parallel bus with latched/ translated address bus Atmel AT91SAM7S256 (ARM7TDMI Core) Ethernet 512kbyte SRAM Buffer Realtek 8019AS CY62148BLL L2 Block Diagram RJ45 Connector iHome Security & Automation System 14 L2 mcu iHome Security & Automation System 15 L2 ether iHome Security & Automation System 16 L2 audio iHome Security & Automation System 17 L2 power iHome Security & Automation System 18 Hardware Description-Level 3 Nodes • Level 3 node portion of the project has been cancelled due to unexpected budget cuts. • Level 3 nodes were intended for streaming video between the central server, TVs, and video cameras. This would require expensive hardware that is now not able to be purchased or developed. iHome Security & Automation System 19 Software Overview Recall: • There are three main software applications in this project: The iHome Control Center, the Remote Control Center, and the Webserver Webserver Remote Control Center iHome Control Center iHome Security & Automation System 20 Software: iHome Control Center Block Diagram Output User Input (via GUI): Command (Webserver DLL): iHome Map New Node Low Level Node ‘Pairing’ Timed Event Control Center Command for L2 Node (direct user call or Timed system call) Low Level Node ‘Pairing’ firmware adjustment (From Web Server) Information Request Low Level Node Command iHome Security & Automation System Web Server Basestation 21 Software: Web Server Block Diagram iHome Output Input (from iHome CC) Command Node addition or pairing (from remote CC) Web Server Information Request Command Confirmation (via TCP/IP Wireless comm) Information (nodes, rooms) Command Info request (from web user) Command Confirmation Center Remote Control Center (via http comm) Command Timed Command Control (via Windows Messaging): Command Confirmation iHome Security & Automation System Web User 22 Software: Remote Control Center Block Diagram Output User Input (via GUI): Command Information Request (via TCP/IP wireless comm.): Remote Control Command Information Request Web Server (node, state, rooms) Center Confirmation of Instruction iHome Security & Automation System GUI 23 Or, Generally: Nodes iHome Web Server Control Center Remote Control Web User Center iHome Security & Automation System 24 Progress made this semester: -What has been done? • Hardware − Design of L0 device for dimming incandescent light bulbs − Partial Design for wireless USB base station − USB L0 device programmer completed • Firmware/Software − Ability to do firmware upgrades of L1 Nodes remotely implemented − GUI of iHome Control Center − Webserver interface with iHome control center − User interface for webserver − GUI for Pocket PC application • Miscellaneous: − Construction of roomish structure started iHome Security & Automation System 25 Updated Objectives for This Semester -What needs to be done? • Hardware − Design a wired & wireless USB Base Station − L0 nodes for physical control of systems − Completion of construction of higher-order nodes • Firmware/Software − Completion of GUI and code for both the central server (iHome Control Center) and the remote user (Pocket PC) interface − Completion of firmware for the L1 – L2 nodes − Completion of all firmware for the Base Station − Webserver for both remote access and L2 node communication iHome Security & Automation System 26 Updated Division of Labor -Who is doing what? • Adam- completion of web server, and L0 node completion, and completion of L2 node design / programming. • Chris- user interface for Pocket PC, completion of various peripheral hardware. • Ryan- completion of the iHome Control Center, and completion of L0 nodes, L1 nodes, and USB Base Station. iHome Security & Automation System 27 Updated Schedule -When will everything be done? • Milestone 1− Schematics for Base station, wireless adapters for L1 nodes, and light dimmer L0 node completed; PCB layout underway. − Remote firmware update ability implemented. − Communications handler for iHome Control Center completed − Remote Control Center basically functional − TCP/IP communications for L2 nodes completed − Framing of roomish structure completed iHome Security & Automation System 28 Updated Schedule -When will everything be done? • Milestone 2− All circuit boards assembled and tested − Device pairing finished and scheduler underway for iHome Control Center − Roomish structure sheetrocked, mudded, and texturized − Remote Control Center completed − L2 Nodes completed − L1 Nodes installed in roomish structure iHome Security & Automation System 29 Updated Schedule -When will everything be done? • Expo− Webserver finished − L1 Nodes successfully controlling lights and outlets − Roomish structure painted − Users Manual completed − All software completed − Adam, Ryan and Chris’ software communicating seamlessly with one another iHome Security & Automation System 30 iHome Security & Automation System 31 iHome Security & Automation System 32