home central control unit

Upload: defjedi

Post on 07-Apr-2018

221 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/6/2019 Home Central Control Unit

    1/32

    A-TeamHome Central Control Unit

    Kevin Cooke

    Peter Larson

    Ben VerstegenAndreas Rugloski

    Aden Abdillahi

  • 8/6/2019 Home Central Control Unit

    2/32

    Design Overview

    Home Central Control Unit Controllable by

    Laptop

    Phone

    Able to adjust or turn on/off household items

    Ability to check status of garage door and of

    thermostat setting

  • 8/6/2019 Home Central Control Unit

    3/32

    Functional Requirements

    User will be able to access the system via:

    Laptop:Use from within houseTest with cable -> Move to wireless

    Phone: Password, Voice prompt,Device status (for garage door and

    thermostat) and option to change the setting

  • 8/6/2019 Home Central Control Unit

    4/32

    Functional Requirements

    Turn on and off lights or any other plug-in

    devices. Check current setting of house thermostat and

    have the ability to adjust it.

    Check if the garage door is open or closed and

    have the ability to toggle or leave in currentstate.

    Turn on and off infrared devices and possiblysome controls such as volume.

  • 8/6/2019 Home Central Control Unit

    5/32

    Block Diagram Outline

  • 8/6/2019 Home Central Control Unit

    6/32

    Control Unit Block Diagram

  • 8/6/2019 Home Central Control Unit

    7/32

  • 8/6/2019 Home Central Control Unit

    8/32

  • 8/6/2019 Home Central Control Unit

    9/32

    RAM Schematic

    AT29C512

    Electronically erasable and programmable read only memory(EEPROM)

  • 8/6/2019 Home Central Control Unit

    10/32

    Features of AT29C512

    Single cycle reprogram (erase and program)

    Fast read access time 70ns Low power dissipation (50mA active current and 100uA

    CMOS standby current)

    Internal program control timer

    Typical endurance > 10,000 cycles Single 5V +/- 10% supply

    512K memory

  • 8/6/2019 Home Central Control Unit

    11/32

    Reset Switch

    1M

    R1

    .1 u

    1

    D1

    B1

    SW-

    B

    GND

    GND

    VCC

    INV INV

    Reset

    4.

    R3

    Res1

    4.

    R4

    Res1

    VCC

    modeA

    modeB

  • 8/6/2019 Home Central Control Unit

    12/32

    Phone Interface

    Upon dialing you will hear a voice prompt

    Enter user ID and password Toggle device status

    Voice feedback giving device status

    Logout command

    Requires a touch tone phone

    Includes cell phones

  • 8/6/2019 Home Central Control Unit

    13/32

    Phone Interface Block Diagram

  • 8/6/2019 Home Central Control Unit

    14/32

    Ring Detector TCM1520

    Telephone ringing voltage: 90V - 140V @ ~20Hz

    TCM1520 Simple, cheap, SAFE!

    Use of optocoupler completely electrically isolates

    circuit from phone line

  • 8/6/2019 Home Central Control Unit

    15/32

    Hook Switch HT18

    Hook switch is a switch that connects TIP to the

    switching station to connect to incoming call. HT18 is an electronic line switch bypassing the need

    for hook switches.

  • 8/6/2019 Home Central Control Unit

    16/32

    DMTFDecoder TT7

    DTMF: Dual-tone multi-frequency

    Every button on phone has two unique frequencies

    TT-7 deciphers which button pressed

    Buttons 1-9 will be commands

    0 will logout

  • 8/6/2019 Home Central Control Unit

    17/32

    Audio Feedback ISD2560

    ISD2560 Single chip, multi-message, voice record/playback device

    Microcontroller compatible Allows complex addressing

    Recordings stored on chip in EEPROM

    Amplified outputs Connect to audio transformer to send audio data down

    phone line

  • 8/6/2019 Home Central Control Unit

    18/32

    Serial Interface

    Computer connects to home unit via serial

    cable Start testing with cable, then move to wireless.

    Control of each device using keyboard

    Monitor shows status of each device

  • 8/6/2019 Home Central Control Unit

    19/32

    MAX232 Level Converter

    RS-232 interface requires

    +3V to +12V ON state -3V to 12V OFF state

    MAX232

    Delivers +/- 10VC1+

    1VDD

    2

    C1-3

    C2+4

    C2-

    VEE6

    T2OUT7

    R2IN8

    R2OUT9

    T2IN10

    T1IN11

    R1OUT12

    R1IN13

    T1OUT14

    GND15

    VCC16

    U3

    MAX232CPE

    GND

    1u

    C?

    1u

    C?

    1u

    C?

    GND

    1 2 3 4 5 6 7 8 9

    11

    10

    J?

    DConnector9

    1 2 3 4 5 6 7 8 9

    11

    10

    J?

    DConnector9

    Port

    Port

    Port

    Port

    GND GND

  • 8/6/2019 Home Central Control Unit

    20/32

    Thermostat

    Model: Honeywell Pro 3000

    Plans of attack:

    1) Reverse engineer to nderstand/control

    the microprocessor on the circ it board:ATMEGA169V

    2) Hardwire as a co nter

  • 8/6/2019 Home Central Control Unit

    21/32

    X10 Equipment

    The Two-Way Powerline Interface Module

    allows us to interface with the powerline usingstandard X-10 protocol.

    Connects to a serial port using a standard

    RJ11 telephone connector and cable.

    We are using the Appliance, Lab and Relaymodule.

  • 8/6/2019 Home Central Control Unit

    22/32

    X10 Binary Codes

    The Transceiver (PSC05)

    provides a 60 Hz square wave

    with a maximum delay of 100

    sec from the zero crossing point

    of the AC power line.

  • 8/6/2019 Home Central Control Unit

    23/32

    Software

    Phone tree

    Majority of software composed from Flash andCPLD

    Inputs/Outputs: 8 data bits, 16 address bits,

    Inputs: phone signals, serial data, door status,

    temp

    Outputs: voice prompt, operation commands

  • 8/6/2019 Home Central Control Unit

    24/32

    Input Signals

    Garage Door - Door sensor on garage door will

    go low if the garage door is open or send highif the door is closed.

    Thermostat If we use the counter method, we

    will hardwire the buttons on the thermostat to

    some simple logic which will keep track of thecurrent thermostat setting.

  • 8/6/2019 Home Central Control Unit

    25/32

    More Input Signals

    Phone Our circuit will pick up the ring signal

    and take it off-hook. From here our TT7 willread in the two sine waves and will set the

    corresponding pin to low.

    Laptop The serial port on the microcontroller

    will wirelessly receive the signals from the

    laptop via a transceiver.

  • 8/6/2019 Home Central Control Unit

    26/32

    Output Signals

    Toggle lights via X10 signal

    Garage door toggle signal

    Thermostat: increment or decrement command

    Infrared: sends signal pattern to infrared LED

    Voice Prompt

  • 8/6/2019 Home Central Control Unit

    27/32

    Parts List

    Part #

    Name Model1 Thermostat Honeywell PRO3000

    2 Microcontroller MC68HC11E0

    3 Door/Window Sensor N/A

    4 X10 Transceiver 2-way power line

    5 X10 Appliance module 2 Pin Polarized

    6 DTMF Decoder R-TT7

  • 8/6/2019 Home Central Control Unit

    28/32

  • 8/6/2019 Home Central Control Unit

    29/32

    Updated Deadlines and Goals

    Feb 27th CDR:working phone decoding and micro

    controller running (no code) with working reset. Mar 20th Milestone I:computer and phone

    control over lights and garage door.

    Apr 17th Milestone II:computer and phonecontrol over lights, 1 infrared device, thermostat andgarage door motor, final PCB layout complete.

    May 3rd Capstone Expo:wireless computer andphone control over lights, thermostat, infrared devices,all bugs worked out.

  • 8/6/2019 Home Central Control Unit

    30/32

    Testing

    Microcontroller-

    -Used logic analyzer to check reset button andwiring.

    DTMF Phone decoder-

    - First tested the lab phone line directly tocircuit

    - We then called the lab phone from a cellphone and tested if the circuit was reading the

    correct inputs.

  • 8/6/2019 Home Central Control Unit

    31/32

    Group Member Tasks

    Kevin Thermostat, Infrared Devices Peter Microcontroller, RAM, Lighting Controls

    Aden Microcontroller, RAM

    Andreas Tech. Ref. Manual, Garage Door Device,

    Phone Interface

    Ben Phone Interface, Control Cards, PCB

  • 8/6/2019 Home Central Control Unit

    32/32

    THANKS!

    ANY QUESTIONS?