C.A.R.S. Overview

Download Report

Transcript C.A.R.S. Overview

CARS
Cellular Automotive Remote System
Critical Design Review
Matt Lasek
Blair Harness
Nguyen Le
Abhishek Jain
Mike Charogoff
C.A.R.S.- System Overview
Home Phone
Voice
Messaging
Used to Obtain
Data
Cellular Phone
Speaker, Microphone, and Solenoids
Wireless
Audio PreAmp,
Filter, and Amp
Solenoid Driver
Voice
Number Keys
Used for Control
MCU
Misc. Digital Outputs
Heater, Door L/U, …etc.
(W/ ADC
on-board)
Temperature Sensor and
Accelerometer
GPS
Misc. Digital Inputs
Presented by Abhishek Jain
Board Layout
Presented by Abhishek Jain
Board Layout: Bottom View and Door Detail
Presented by Abhishek Jain
Alternative Button Pusher Apparatus
(Optional)
• Uses one motor and one solenoid.
• Is more flexible than stationary design, but more complicated as well.
Principle of Operation:
1.
A small DC motor goes though speed
reduction gearing before turning a shaft.
2.
This shaft is attached to a slotted disk
and a solenoid.
3.
The solenoid is constrained in all but
one direction by the spiral slot which
dictates the solenoids movement.
4.
An optical encoder is used to obtain
movement data. This data is used to
determine position. (Home switch not
shown)
Presented by Abhishek Jain
Alternative Button Pusher Apparatus
(Optional)
• Uses two motors and one solenoid.
• Is the most flexible, but also most complicated design.
Presented by Abhishek Jain
Solenoid Driver Circuit
Design Features:
•Optical Coupling (4N25)
between large inductive
load and MCU to minimize
noise.
•Protective diode across
load.
VA
Presented by Abhishek Jain
Solenoid Driver Simulation and Measured Values
VLOAD
VA
Presented by Abhishek Jain
During testing of the actual circuit the
following values were measured:
VLOAD = 11.54 V
VA = 4.95 V
Iin ~ 300mA
(Actual load is closer to 40 Ohms)
Regulated Voltage Supply
•This circuit has been tested and works properly.
Presented by Mike Charogoff
Basic Display Circuit
• A serial input (active low)
controls the state of the
parallel outputs.
• This circuit has been tested
and works properly. It is used
three times in the project.One
of the three implementations
will use discrete LEDs instead
of the seven segment display
shown.
•The 74LS164 chips will
receive a decoupling capacitor
(not shown).
Presented by Mike Charogoff
Heater/Lamp Circuit
Presented by Mike Charogoff
Tone Reception and Decoding
Cellular Phone
Speaker, Microphone, and Solenoids
(2)
Audio Amp
and Filter
(1)
Solenoid Driver
Voice
MCU
(4)
68HC12
(W/ ADC
on-board)
(3)
Principle of Operation
1. Audible tones generated by the phone are
converted to an electrical signal by the
microphone (transducer).
2. This electrical signal is amplified, filtered,
and fed to the Microcontroller’s internal ADC.
3. The digitized signal is decoded. The
decoding method will most likely involve
calculating the time or number of samples
between peak values.
4. After decoding, the Microcontroller executes
the issued command (i.e. start vehicle, Lock
doors, Unlock doors, …etc.).
Presented by Mike Charogoff
Audio Input Circuit
Presented by Mike Charogoff
Actual “Audio-In” Signal
F = 800 Hz
1.0 V/Div. (Vertical)
F = 2 kHz
500 us/Div (Horizontal)
Presented by Mike Charogoff
Voice Messaging
Principle of Operation:
Cellular Phone
Audio PreAmp,
Filter, and Amp
1.
Power Up: MCU brings ISD25-120 Voice
chip out of Power Down mode (by pulling
PD pin low).
2.
Set Address: An address corresponding
to the message to be played is put on the
address lines.
3.
Select Chip: After meeting certain timing
requirements (tset and tPUD), the chip is
enabled (CE = 0) thus playing the
selected message.
4.
Wait for Message Completion: The
(active-low) End-Of-Message (EOM) pin
is then polled for a logic low signal.
5.
Disable Chip: The chip is then unselected
(CE = 1) before the process is repeated.
Solenoid Driver
Voice
MCU
(W/ ADC
on-board)
Presented by Mike Charogoff
Voice Messaging Circuit
Presented by Mike Charogoff
Microphone Subcircuit
(Only used to record messages)
Presented by Mike Charogoff
Preliminary Message List
MSG #
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Time
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
2
1
1
1
1
Message
0
1
2
3
4
5
6
7
8
9
10
11
12
o-clock
The time is
PM
AM
minutes
past
degrees
Your vehicle's
location
is
are
latitiude
MSG #
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Time
1
1
2
1
1
2
1
1
1
1
1
1
1
4
3
1
1
1
1
1
1
1
3
1
2
Message
longitude
The outside
temperature
farenheight
engine
security system
doors
locked
unlocked
headlights
on
off
set
There has been an auto accident at
The accident was most likely a
front
side
impact
roll-over
moderately
very
severe
security may have been breached
velocity is
miles per hour
MSG #
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Total time
Time
1
1
1
1
1
1
1
2
1
1
1
1
1
3
1
1
2
1
1
2
1
1
Message
heading
west
by
number
entered
confirm
enter
access code
thank you
access
denied
granted
master
Have a nice day
press
to
lock or unlock
start
please
locate vehicle
obtain
state
89 seconds
Presented by Mike Charogoff
Accelerometer
ACH-04-08-05
Used for Car Alarm and Accident Alert
Systems
3-Axis Detection: X-axis, Y-axis, Z-axis
Power Supply: 5V
Sensitivity: Typical 1.80mV/g
Temperature Variation: .28% per C
Surface Mount: Had to buy adapter
Presented by Matt Lasek
Accelerometer Schematic
5 Vcc
ACH-04-08-05
D/S1-Y
D/S2-Y
Accel_Y Signal
(To microprocessor)
Accel_X Signal
(To microprocessor)
R7
180
R6
180
RGND-Y
CTG
CTG
D/S2-Z
SGND
D/S1-Z
D/S1-X
RGND-Z
D/S2-X
CTG
RGND-X
GROUND
R2
Accel_Z Signal
180 (To microprocessor)
Presented by Matt Lasek
Test Results
Drop from 1ft:
Drop from 6in:
Pulses
Pulses



Amplitude: 900mV
Duration: 750us
Sampling Freq: 666Hz



Amplitude: 600mV
Duration: 1ms
Sampling Freq: 500Hz
Conclusion: Microprocessor can detect pulses since it can
sample up to 140kHz
Presented by Matt Lasek
Temperature Sensor
LM34
Used to detect car’s inside temperature
Power Supply: 5V - 30V
Temp Range: -50  F – 300  F
Accuracy:  1 1 2  F over temp range
Conversion Factor: 10.0mV/  F
Presented by Matt Lasek
Temp Sensor Schematic
5 Vcc
LM34
VOUT
GND
VS+
2
Temp Signal
(To microprocessor)
3
1
Presented by Matt Lasek
Test Results
Test to determine if Temp Sensor
responded to heater (lamp)
Recorded


Room Temp: 75.5  F
Lamp heat: 84.0  F (with 5V supply)
Conclusion: Temp Sensor effectively
detects heat given off by lamp.
Presented by Matt Lasek
Microprocessor
Using a 9S12BADGE development
board.
Utilizes a Motorola MC9S12DP256B
16-bit processor (112 pin LQFP ).
Features:




256K Flash, 12K Ram, 4K EEPROM
2 8 channel (10 bit) ADC
89 digital I/O channels, 20 with
interrupt/wakeup
2 SCI, 3 SPI, 8 channel timer
Presented by Blair Harness
Microprocessor
Presented by Blair Harness
Microprocessor – port use
Presented by Blair Harness
Microprocessor - software
Void Update_Display(int display_A, int display_B, int display_C);

This would just update the displays with the bytes provided. We would
use a single "clock" for all three displays (that's why we might do them
all in a single function).
Void Load_MSG(int MSG_NUM);

This is actually alot like the above function, since it mainly modifies a
shift register. It would need to check that the PD pin on the voice chip is
low first (and make it low, then wait for >50ms (if not already low)).
Void Play_MSG(Void);

This would set CE_BAR low on the voice chip (selecting it). The message
would play. The EOM_BAR pin would be polled during this time looking
for a logic (which indicates an End_Of_Message). Then the CE_BAR could
be set high (deselecting the chip). Note: We need >300ns between
setting the address and enabling the chip.
Presented by Blair Harness
Microprocessor - software
INT

GET_TEMP();
Reads ADC channel of temp sensor.
____ GET_POSITION();

Return/store the data obtained from the GPS. Return data format
unknown.
Void DIAL(int SOLENOID_NUMBER, int TIME_DURATION);

Energizes selected solenoid for TIME_DURATION milliseconds.
Void main();

Monitor audio and accelerometer input, in some form of loop. If either is
detected, process, and call appropriate function.
Presented by Blair Harness
GPS Module
Decision TBD on GPS module


Laipac's 12-channel
"ALL-in-View" TF10 GPS module
Tri-M REB 12R7 12 channel GPS module
Presented by Nguyen Le
Parts and Cost
Description
Part Number
Price
Quantity
Total Cost
Motorola Processor (in use)
68HC12
Donated
1
0.00
Processor
PIC 16F87
3.00
1
3.00
Memory Voice Rec/Play IC
ISD25120P
9.58
1
9.58
3 Axis Accelerometer
MSP1004
25.00
1
25.00
Temp Sensor IC
LM34DZ
2.33
1
2.33
Low Power Audio Amp IC
LM386M-1
0.58
1
0.58
OMNI Microphone
359-1011
1.09
1
1.09
Incand Lamp
CM7219
0.49
2
0.98
Capacitors 1uF
399-2155
0.12
15
1.82
Volt Reg. Fix Pos IC
296-12396-1
0.75
3
2.25
NPN Transistors
2N3904
0.17
30
5.14
Serial In/Parallel Out Register IC
DM74LS164N
0.72
4
2.88
Presented by Nguyen Le
Parts and Cost continued
Description
Part Number
Price
Quantity
Total Cost
Solenoids
SOL-52
2.00
4
8.00
GPS
TBD
80.00
1
80.00
Cell Phone
Donated
LEDs
Donated
Bumper Switch
Donated
Door Switch
Donated
Perf Board
Donated
Fan
Donated
Tentative Total Cost
144.97
5 Engineers*25 dollars/hour*40 hours/week*15 weeks=$75,000
At $400/unit we need to sell 290 units before we start to show a profit
Presented by Nguyen Le
Division of Labor
Abhishek Jain: Solenoid mounts and driver
circuit
Matt Lasek: Accelerometer and temperature
sensor interfacing
Nguyen Le: GPS data control and interfacing
Mike Charogoff: Audio Tone Reception and
Decoding
Blair Harness: Microcontroller Programming
Presented by Nguyen Le
Schedule
Milestone 1: Hardware is to be built with partial software interface completed with
partial testing in progress
Milestone 2: Hardware and software to be interfaced, continue testing and
debugging.
Presented by Nguyen Le
Questions?