a-team
DESCRIPTION
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 - PowerPoint PPT PresentationTRANSCRIPT
A-Team Home Central Control Unit
Kevin CookePeter LarsonBen VerstegenAndreas RugloskiAden Abdillahi
Design Overview
Home Central Control Unit– Controllable by
LaptopPhone
– 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
M68HC11E0 Schematic
PB6/ADDR1436
PC3/AD
DR
3/DA
TA
312
XT
AL
8
PB0/ADDR842
PE0/AN0 43
PE4/AN4 44
PE1/AN1 45
PE5/AN5 46
PE2/AN2 47
PE6/AN6 48
PE3/AN3 49
VSS
1
MO
DB
/VSTB
Y2
MO
DA
/LIR
3
STRA
/AS
4
E5
STRB/R/W6
PE7/AN7 50
PB5/ADDR1337
PA0/IC334 VRH 52
PB2/ADDR1040
PB7/ADDR1535
PC6/AD
DR
6/DA
TA
615
PC5/AD
DR
5/DA
TA
514
PC4/AD
DR
4/DA
TA4
13
PD4/SCK 24
VD
D26
PA6/OC2/OC128
PA4/OC4/OC130
PD5/SS 25
PA7/PAI/OC127
PA5/OC3/OC129
PA3/OC5/IC4/OC131
PA1/IC233
PA2/IC132
VRL 51
PB4/ADDR1238
PC2/AD
DR
2/DA
TA2
11
PC1/AD
DR
1/DA
TA1
10
PC0/AD
DR
0/DA
TA0
9
PD3/MOSI 23PD2/MISO 22PD1/TXD 21PD0/RXD 20
IRQ
19
XIR
Q18
RESET
17
PC7/AD
DR
7/DA
TA7
16
PB3/ADDR1139
PB1/ADDR941
EX
TAL
7 U1MC68HC11E0CFN3
OE1
LE11
D03 Q0 2
D14 Q1 5
D27 Q2 6
D38 Q3 9
D413 Q4 12
D514 Q5 15
D617 Q6 16
D718 Q7 19
VDD 20
GND10
U4
MC74HC373N
OE19
DIR1
A12 B1 18
A23 B2 17
A34 B3 16
A45 B4 15
A56 B5 14
A67 B6 13
A78 B7 12
A89 B8 11
VCC 20
GND10
U5
MC74HC245AN
GND
GND
GND
A[8..15]
A15A14A13A12A11A10A9A8
A15A14A13A12A11A10A9A8
VCC
AD0AD1AD2AD3AD4AD5AD6AD7
A0A1A2A3A4A5A6A7
VCC
VCC
OE19
DIR1
A12 B1 18
A23 B2 17
A34 B3 16
A45 B4 15
A56 B5 14
A67 B6 13
A78 B7 12
A89 B8 11
VCC 20
GND10
U5
MC74HC245AN
VCC
GND
AD[0..7]AD0
AD1AD2
AD3AD4
AD5AD6
AD7
AD0AD1AD2AD3AD4AD5AD6AD7
A15A14A13A12A11A10A9A8
D0D1D2D3D4D5D6D7
VCC
INV
GND
Reset
Control[0..2]
Control0Control1
Control2
D[0..7]
Control[0..2]
A[0..15]
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
AT29C512
Electronically erasable and programmable read only memory(EEPROM)
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
Reset Switch
1M
R1
.1 uF
C1
D1
B1
SW-PB
GND
GND
VCC
INV INV
Reset
4.7K
R3
Res1
4.7K
R4
Res1
VCC
modeA
modeB
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
MAX232 Level Converter
RS-232 interface requires– +3V to +12V ON state– -3V to –12V OFF state
MAX232– Delivers +/- 10V
C1+1 VDD 2
C1-3
C2+4
C2-5
VEE 6
T2OUT 7
R2IN 8R2OUT9
T2IN10 T1IN11
R1OUT12 R1IN 13
T1OUT 14
GND15
VCC 16
U3
MAX232CPE
GND
1uF
C?
1uF
C?
1uFC?
GND
1 2 3 4 56 7 8 9
11 10
J?D Connector 9
1 2 3 4 56 7 8 9
11 10
J?D Connector 9
PortPort
PortPort
GND GND
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 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
TimelineID Task Name10 Critical Design Review
15 Touch Tone Decoder
11 CD-R and Hard Copies
12 Collection of Data/Schematics
13 PPT Presentation
14 Rehearse for Presentation
1 Weekly Progress Reports
2 Weekly Progress Reports
3 Weekly Progress Reports
16 First Milestone
17 Appliance Modules
20 Micro Controller
18 Lighting and Phone Interface
19 Garage Door Device
4 Weekly Progress Reports
34 Spring Break
5 Weekly Progress Reports
6 Weekly Progress Reports
7 Weekly Progress Reports
21 Second Milestone
22 Thermostat
23 Computer Interface
24 Control Program
25 IR
8 Weekly Progress Reports
9 Weekly Progress Reports
26 Capstone Expo
32 User's Manual
31 Demo/Explanation
27 Technical Reference Manual
28 Critiques
29 Display Board
30 CD-R and Hard Copies
33 Device Housing
KC,BV,ADR
BV
ADR
ADR
AGM
KC,BV
AA,AGM,BV
BV,PL
ADR
KC,BV
BV
AA
KC
ADR
AGM
ADR
AGM
ADR
BV
ADR
30 2 5 8 11 14 17 20 23 26 1 4 7 10 13 16 19 22 25 28 31 3 6 9 12 15 18 21 24 27 30 3 6 9 12 15 18 21 24 27February March April May
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?