Yared Woldekiros Project Description Web Enabled Home Automation ETec 471 DEC 08, 2009
Introduction: The design of Web Enabled Home Automation (WEHA) is a standalone device that can control and monitor home devices and appliances through the web from anywhere that Internet service is available. This can be done from any PC or mobile phone with Internet service capability. Web Enabled Home Automation is a general purpose device the can be applied for a very wide range. Some of the devices and appliances that can be monitored and controlled with WEHA are alarm systems, air conditioners, thermostats, garage doors, lights but for my project I want to focus on a general purpose WEHA. Description: The final product will be a standalone device and it will be in the box. The front part of the device will have power and Ethernet connection indicator lights and the back side will have DC power input, RJ45 and IO ports connectors. The maximum dimension for this device will be 11x8.5x3.5 inches. Figure 1 (Project sketch) 2
Detailed Description: The Freescale Coldfire MCF52259 microcontroller will be the main part for this project. The MCF52259 is 32 bit microcontroller. It has 64 Kbytes of internal static random access memory (SRAM), 512 Kbytes of flash memory, a Fast Ethernet controller (FEC) and many other resources. The MCF52259 can go up to 80 MHz operating frequency but I will use 48 MHz for my project. Figure 2 (Block diagram) For my project, I will have a wall transformer (In: AC 120volt in, Out: DC 5volt Current: 1A) for powering my WEHA device. When MCF52259 microcontroller run with 48MHz and considering other components, the maximum current consumption will be up to 350mA but since WEHA is a general purpose device and the user can add anything in the system, I will use 1 ampere wall transformer to be save. Software Description: My main programming language for this project will be C and assembly. Also I will write HTML code that will be a user interface as the form of web page. I will have four modules for this project. The modules are GPIO, HTML, TCP/IP stack and Ethernet driver. GPIO module will handle to read and send signal to IO ports on the MCU. TCP/IP stack module will handle the network (Internet) communication protocol and Ethernet driver module will handle the hardware of embedded Ethernet. 3
User Interface: The user interface of the WEHA includes power and Ethernet connection indicator lights (look Figure 1) but the main interface will be in the form of a webpage that can be access form the web browser. The user who has authorization will login and monitor and control home devices and appliances. On the main web interface, it will have a display of current status and buttons that is allows the user to control and monitor the appliances and devices at home. Figure 3 (Login Page) Figure 4 (Main Page) 4
Development Plan: I will divide my development schedule into winter and spring quarters. My weekly development schedule on this project will be as follow (Table 1). Tasks Quarter Week Start reading about M52259 demo board 1 Initialization setup for M52259 demo board 2 writing codes for M52259 (Header victor, startup) Winter 2010 3,4,5 GPIO module 6 HTML module 7 TCP/IP stack module 8 Ethernet driver module 9 Get ready for the final 10 HTML code 1 Testing everything works together 2 Hardware review 3 Constricting a circuit for controlling devices 4 Housing constriction Spring 2010 5 Software system presentation 6 Final adjustment 7 Final testing 8 Code review 9 Final Presentation 10 Table 1 For my demonstration, I will try to monitor and control a security system, a light and an air conditioner, so I will need Freescale M52259 demo board, an internet outlet, a PC and an air fan that represent air conditioner (Since an air conditioner is heavy and takes space, I will use the air fan to represents the air conditioner), a light, and a small home security system. Electrical Specification: Power source: wall transformer Supply voltage: wall transformer (In: AC 120V, Out: DC 5V, Current: 1A) Max current: 350mA Worst case power: 1.75 watt MCU frequency: 48MHz Communication protocol: TCP/IP, HTTP, DHCP, Ethernet Operating temperature: 40 0 C to +85 C PCB size: 6x7 inches 5
Preliminary Parts List: Parts Cost Lead Time Current Sources Quantity MCF52259 $9.31 2 Weeks 350mA(max) Mouser 1 Enclosure $15.00 2 Weeks Jameco electronics 1 Wall transformer On Hand 1A 1 48MHZ Crystal $00.48 2 Weeks DigKey 1 Various Restores $02.25 2 Weeks 10mA Jameco electronics 10 RJ45 Ethernet cable $10.00 2 Weeks BestBuy 1 Various Capacitors $02.50 2 Weeks Mouser 6 LED $01.00 2 Weeks 75mA 2 Total $39.54 2 weeks 435mA 23 Table 2 6