1 / 52

Smart House

Smart House. Maison Intelligent Members: Steven Bellows, Matthew Marston, Kenneth Nolasco, Brian Sparrow March 26, 2008. The Smart House. Mission: Provide low-cost automated home system Automated systems connected to a central network core: Environment Security Media

Télécharger la présentation

Smart House

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.


Presentation Transcript

  1. Smart House Maison Intelligent Members: Steven Bellows, Matthew Marston, Kenneth Nolasco, Brian Sparrow March 26, 2008

  2. The Smart House • Mission: Provide low-cost automated home system • Automated systems connected to a central network core: • Environment • Security • Media • Target Market: Private Homeowner • Approximate Prototyping Cost: $825 • Selling Price per Unit: $3000

  3. Technical Objectives • Media • MP3 playback of single zone audio • Play/Stop functions • Volume controls • Previous Song/Next Song functions • Security • Automated door lock • Window break-in detection • Centralized alarm • Environment • Lighting Control • On/Off functions • 30 gradients of dim • Temperature Sensor • -100 to 450 C temperature range • .06250 C resolution

  4. Technical Specifications

  5. System Diagram

  6. Sound Design

  7. Specifications • Single-Zone Audio Media System • Single “Pleomax” USB-powered speaker • Mp3 Capabilities • fmod sound engine • Simple Playback capabilities • Stop, Play, Previous Song, Next Song • C++ and Windows Programming

  8. Audio Program Outline

  9. Block Diagram Send file pathname Compile List Main Program fmod Play specified mp3 file Return array pointer Return song name FileSearch Sound Output Insert song name

  10. Problems • Multi-zone audio • USB Speakers • Multiplexing • Playback functionality • Rewind, Forward, Pause • Unsupported data types • WAV, MP4 • External iPod source

  11. Access Control and Security … … Network Core Environment Multimedia Security Door Lock Break-in Sensor Alarm System

  12. USB Board Computer USB Cable USB Board … … … Alarm Sensor Door Lock

  13. Alarm … USB Board … Relay USB Board 7 11 Alarm Power Source 3.3V 130mA Alarm

  14. Window Bug … USB Board 7 13 … Window Bug USB Board 7 13 3.3V Power Supply Window Bug

  15. Alarm and window bug designed to work together The alarm is triggered when the Window Bug detects an intrusion The alarm and Window Bug can be manually reset after they are triggered Window Bug triggered at window breaks Window Bug can be tested without breaking a window Manufacturer provides for on the spot testing of the Window Bug Break-in Detection

  16. Door Lock … USB Board 7 15 3.3V Relay 12V 500 mA Lock Power Source

  17. Locking Mechanism • Lock is locked when un-powered • Lock unlocks when a 12V power source is connected • Lock mechanism is controlled by a relay • Relay is controlled by the USB board • User can unlock the door from the user interface • 5 second timer is programmed to automatically relock the door

  18. Security Circuit Computer USB Cable USB Board 7 11 13 15 Copper Wire 3.3V Relay Sensor 3.3V 130mA 12V 500 mA Alarm 3.3V Power Supply Lock Power Supply

  19. Environmental System Temperature System Lighting System

  20. Temperature System • LM76 Series Digital Temperature Sensor • -10oC to 45oC, .0625oC resolution • I2C Bus slave • Altera DE2 Board • Header I/O pins • I2C Bus • Network Core • USB • GUI

  21. Data Flow

  22. Circuit Wall Plug +3.3V Altera DE2 CPU I/O Header Pins Contains Bus Controller and Clock I2C Bus Memory USB

  23. I2C Bus: Serial Communication • Bus master start request • Contains read/write • LM76 internal registers • Transfer to interface registers LM76 writes • Data to I2C Bus • Master sends ACK • Master stop condition • Data in I2C Bus to SDRAM • Sent to network core via USB

  24. Example I2C Timing www.national.com

  25. Lighting System • Network Core • Serial RS-232 • X-10 CM11a Computer Interface • Serial to X-10 PLC • Bit error check • Altera DE2 Board • ADC • On-board LED’s

  26. Data Flow

  27. Circuit RJ-11 PLC 125kHz DB-9 CM11a Network Core .25” Jack Altera DE2 Audio CODEC Data Bus CPU 50MHz Clock Memory LED’s

  28. Transmission • PC sends Header:Code • 2 Bytes • Contains house code, device code, and function code • Interface stores in buffer • Checksum • PC ACK • Interface transmission • Interface ready • Dimming

  29. Sample Transmission www.smarthome.com

  30. Problems • Temperature • I2C controller • USB data output • Testing • 8-SOIC • Lighting • Audio CODEC • Connector • 60Hz timing • Filter

  31. Network Core Design

  32. Specifications • Connects computer core to systems • Security • Activewire USB board connections • Audio • Audio/USB cable • Environment • Serially connected to Altera board via X10 • Temperature readings passed through USB

  33. Design: Security System • Security • Data outputted/received via pins • IO0 / Pin 11 : Lock output • IO1 / Pin 13 : Window input • IO2 / Pin 14: Alarm output

  34. ActiveWire Pin Legend www.activewireinc.com

  35. Design: Environmental System • Lighting • Data outputted via RS-232 to X10 • Temperature • Data read via USB from Altera board

  36. Design: Audio System • Single-Zone • Self-contained • Requires Audio/USB wiring • Multi-Zone • USB Speakers • USB drivers, data transfer programming • Multiplexing • Self-contained

  37. Problems • Serial Communication • Windows complexity • X10 encoding • USB Communication • ActiveWire Troubleshooting • Input data latching • Pin directions • Polling/Interrupts • GUI Interfacing

  38. GUI Design

  39. GUI Design Flowchart

  40. Main Window This is the main window of the GUI that is opened when the program is run. The main window has quick-menu tools to close the program quickly and to read the program information. In the body of the main window are four widgets bound around a fixed body of text. The text will act as a welcome screen as well as to give small instructions to the user. Each of the widgets around the text will act as push buttons to the subdivisions by which they are labeled.

  41. Media The media panel will consist of basic playback controls, song selection controls, current song and progress, and volume control. The basic playback controls will be a Play button to start playback and a Stop button to stop it. The song selection controls will be a Previous Song button and a Next Song button. The Volume controls will be a slider bar with a numeric indicator next to the slider bar for displaying the current volume. The design is currently to have 10 levels of volume. The current song and progress bar will display the song currently playing and it’s percentage of played.

  42. Temperature As of right now, the only output from the temperature facet of the smart home will be a highly accurate, temperature reading. Because of this, only an LCD number displaying the current temperature is made to be on the Temperature window. Until the design is refined to obtain more information, display more content, or increase the functionality, the temperature display box may be implemented permanently in the main window along with other information (date, time, etc.).

  43. Lighting The lighting panel will consist of control of the lighting intensity, current intensity, and a basic on/off input. The control of the light intensity is operated by a scroll bar. The intensity displayed is dependent upon the scroll bar, and since there is no feedback, the lighting system must be initiated with the GUI in order to produce accurate readings. The ON and OFF buttons are simple push buttons to turn the light on or off.

  44. Security The security panel will consist of door unlock, alarm disable, and broken window detection. The door unlock push button will send a signal to the system for a 5 second duration to open the lock. An adjacent text box will give the current status. The alarm in the security circuitry will be disabled from a push button on the GUI interface. The GUI will receive a signal when the network senses the window has been or is broken. As for now, simply a check box that is local to the program.

  45. Problems with Design • Style-sheet formatting • Coding rules, hierarchies, and order • Widgets • Development , integration • Functionality • Difficulties • Graphics / Aesthetics • Import sizes, formats

  46. Demonstration Plan • Environment • Dimmer switch control through LEDs • Temperature display • Security • Remote lock control • Break-in detection / alarm activation

  47. Demonstration Plan Cont. • Audio • Mp3 playback and control • Network Core Programming • Successful computer control • GUI • Comprehensive interface

  48. Project Schedule

  49. Prototyping Cost

  50. Selling Cost

More Related