(1.95 MB PowerPoint)

advertisement
A-Team
Home Central Control Unit
Kevin Cooke
Peter Larson
Ben Verstegen
Andreas Rugloski
Aden Abdillahi
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
Functional Requirements
User will be able to access the system via:

Laptop: Use from within house
Test with cable -> Move to wireless

Phone: Password, Voice prompt,
Device status (for garage door and
thermostat) and option to change the setting
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 current
state.
Turn on and off infrared devices and possibly
some controls such as volume.
Block Diagram Outline
Control Unit Block Diagram
D
N
G
MC74HC245AN
1
A
3
2
A14
1
A15
A13
1
6
B
6
1
7
B
8
7
B
8
A
N
G
D
A
A
A
5
A11
A
4
A10
A
3
A
2
8
A
9
A
DIR
1
5
B
5
A12
4
1
4
B
4
A11
5
1
3
B
3
A10
6
1
2
B
2
8
A
9
8
1
A
7
1
1
B
1
O
V
Q
7
D
D
1
Q
6
1
Q
5
D
1
Q
4
D
1
3
1
4
D
A
Q
3
D
0
1
2
3
9
8
3
D
A
6
D
1
1
1
1
1
Q
2
D
4
6
9
6
7
2
D
A
Q
1
D
5
4
1
D
A
Q
0
D
STRA/AS
STRB/R/W
PC0/ADDR0/DATA0
PC1/ADDR1/DATA1
PC2/ADDR2/DATA2
PC3/ADDR3/DATA3
PC4/ADDR4/DATA4
PC5/ADDR5/DATA5
PC6/ADDR6/DATA6
PC7/ADDR7/DATA7
VSS
2
3
0
D
A
E
L
1
1
E
O
C
0
C
C
7
9
7
A
6
6
6
A
5
5
5
A
4
2
4
A
3
3
A
2
2
A
1
1
A
0
0
A
D
D
D
N
G
4
1
5
D
A
5
D
A
A
1
1
V
2
MC74HC373N
7
1
6
D
A
8
1
7
D
A
2
D
3
4
D
A
4
5
1
C
5
U
0
1
1
D
A
A
D
A
7
D
A
6
V
E
9
6
A12
1
7
A13
0
8
A14
1
9
A15
D
N
G
C
C
V
AD[0..7]
0
D
A
D
N
G
A[8..15]
0
2
1
A[0..15]
PD5/SS
PB7/ADDR15
PB6/ADDR14
4
U
4
2
5
2
PD4/SCK
6
3
A14
5
3
A15
PD3/MOSI
PB5/ADDR13
3
2
7
3
A13
PD2/MISO
PB4/ADDR12
C
C
V
2
2
8
3
A12
PD1/TXD
PB3/ADDR11
D
N
G
1
2
9
3
A11
PD0/RXD
PB2/ADDR10
Control0
0
2
0
4
A10
PB1/ADDR9
PB0/ADDR8
Control1
PE7/AN7
0
5
2
4
8
A
1
4
9
A
Control[0..2]
PE6/AN6
Control[0..2]
8
4
PE5/AN5
PA7/PAI/OC1
D
N
G
Control2
6
4
7
2
PE4/AN4
PA6/OC2/OC1
4
4
8
2
PE3/AN3
PA5/OC3/OC1
9
4
9
2
PE2/AN2
PA4/OC4/OC1
7
4
0
3
MODB/VSTBY
PE1/AN1
PA3/OC5/IC4/OC1
MC74HC245AN
5
4
1
3
PE0/AN0
PA2/IC1
MODA/LIR
3
4
2
3
D
N
G
PA1/IC2
D
0
1
3
3
EXTAL
D
RESET
L
R
V
PA0/IC3
XTAL
XIRQ
1
5
4
3
V
8
B
8
A
H
R
V
IRQ
7
D
1
1
9
7
D
A
2
5
7
B
7
A
E
6
D
2
1
8
6
D
A
6
B
6
A
5
D
3
1
7
5
D
A
MC68HC11E0CFN3
6
7
8
9
5
B
5
A
2
1
1
1
5
7
8
2
3
4
D
4
1
6
4
D
A
1
U
4
B
4
A
3
D
5
1
5
3
D
A
3
B
3
A
2
D
6
1
4
2
D
A
2
B
2
A
1
D
7
1
3
1
D
A
1
B
1
A
INV
0
D
8
1
2
0
D
A
D[0..7]
DIR
1
C
C
V
E
O
Reset
0
2
9
1
C
C
V
5
U
C
C
V
M68HC11E0 Schematic
Type and Features of MCU







MC68HC11E0
52-pin plastic thin quad flat pack (TQFP)
low voltage (3.0 – 5.5V)
512 on-chip RAM
Synchronous serial peripheral interface (SPI)
Asynchronous (NRZ) serial communication
interface (SCI)
8-bit A/D converter
RAM Schematic
Electronically erasable and programmable read only memory(EEPROM)
AT29C512
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
4.7K
Res1
modeB
4
R
4.7K
Res1
modeA
3
R
C
C
V
D
N
G
D
N
G
uF
.1
1
C
INV
INV
SW-PB
Reset
1
B
M
1
1
R
1
D
C
C
V
Reset Switch
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
Phone Interface Block Diagram
Ring Detector – TCM1520


Telephone ringing voltage: 90V - 140V @ ~20Hz
TCM1520
–

Simple, cheap, SAFE!
Use of optocoupler completely electrically isolates
circuit from phone line
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.
DMTF Decoder – 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
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
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
D
N
F
u
1
MAX232CPE
?
C
VEE
D
N
G
R2OUT
R1OUT
6
R2IN
8
R1IN
3
1
2
5
9
1
1
T2OUT
T2IN
Port
7
0
1
T1OUT
T1IN
Port
4
1
1
1
C2-
5
C2+
4
1
6
D
D
C
V
C1+
C
V
C1-
3
D
N
G
D
N
G
2
1
3
U
5
9
4
8
3
7
2
6
1
5
9
4
8
3
7
2
6
1
9
Connector
D
9
Connector
D
?
J
?
J
+3V to +12V ON state
-3V to –12V OFF state
G
D
N
Port
?
C
Delivers +/- 10V
G
Port
F
u
1
–
?

F
–
u
–
C
0
1
0
1
1
1
1
1

1
MAX232 Level Converter
RS-232 interface requires
MAX232
Thermostat
Model: Honeywell Pro 3000
Plans of attack:
1) Reverse engineer to understand/control
the microprocessor on the circuit board:
ATMEGA169V
2) Hardwire as a counter
X10 Equipment



The Two-Way Powerline Interface Module
allows us to interface with the powerline using
standard X-10 protocol.
Connects to a serial port using a standard
RJ11 telephone connector and cable.
We are using the Appliance, Lab and Relay
module.
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.
Software





Phone tree
Majority of software composed from Flash and
CPLD
Inputs/Outputs: 8 data bits, 16 address bits,
Inputs: phone signals, serial data, door status,
temp
Outputs: voice prompt, operation commands
Input Signals


Garage Door - Door sensor on garage door will
go low if the garage door is open or send high
if 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 the
current thermostat setting.
More Input Signals

Phone – Our circuit will pick up the ring signal
and take it off-hook. From here our TT7 will
read 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.
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
Parts List
Part #
Name
Model
1
Thermostat
Honeywell PRO3000
2
Microcontroller
MC68HC11E0
3
Door/Window Sensor
4
X10 Transceiver
2-way power line
5
X10 Appliance module
2 Pin Polarized
6
DTMF Decoder
R-TT7
N/A
Timeline
ID
10
Task Name
Critical Design Review
30
February
2 5 8
11 14 17 20 23 26
15
Touch Tone Decoder
11
CD-R and Hard Copies
BV
12
Collection of Data/Schematics
ADR
13
PPT Presentation
14
Rehearse for Presentation
1
Weekly Progress Reports
2
Weekly Progress Reports
3
Weekly Progress Reports
16
First Milestone
March
1 4
7
April
10 13 16 19 22 25 28 31 3
6
9
May
12 15 18 21 24 27 30 3
KC,BV,ADR
ADR
AGM
17
Appliance Modules
20
Micro Controller
18
Lighting and Phone Interface
BV,PL
19
Garage Door Device
ADR
4
Weekly Progress Reports
34
Spring Break
5
Weekly Progress Reports
6
Weekly Progress Reports
7
Weekly Progress Reports
21
Second Milestone
KC,BV
AA,AGM,BV
22
Thermostat
23
Computer Interface
BV
24
Control Program
AA
25
IR
KC
8
Weekly Progress Reports
9
Weekly Progress Reports
26
Capstone Expo
6
KC,BV
32
User's Manual
31
Demo/Explanation
27
Technical Reference Manual
ADR
28
Critiques
AGM
29
Display Board
ADR
30
CD-R and Hard Copies
BV
33
Device Housing
ADR
ADR
AGM
9
12 15 18 21 24 27
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 phone
control over lights, 1 infrared device, thermostat and
garage door motor, final PCB layout complete.

May 3rd – Capstone Expo: wireless computer and
phone control over lights, thermostat, infrared devices,
all bugs worked out.
Testing

Microcontroller-Used logic analyzer to check reset button and
wiring.

DTMF Phone decoder- First tested the lab phone line directly to
circuit
- We then called the lab phone from a cell
phone and tested if the circuit was reading the
correct inputs.
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
THANKS!
ANY QUESTIONS?
Download