Car Monitoring System Team IPA Kirill Belyayev Amjad Chaudhry Arush Dhawan Aditya Kaundinya Bilal Yousufi Introduction and Development Kit Amjad Chaudhry.

Download Report

Transcript Car Monitoring System Team IPA Kirill Belyayev Amjad Chaudhry Arush Dhawan Aditya Kaundinya Bilal Yousufi Introduction and Development Kit Amjad Chaudhry.

Car Monitoring System
Team IPA
Kirill Belyayev
Amjad Chaudhry
Arush Dhawan
Aditya Kaundinya
Bilal Yousufi
Introduction and
Development Kit
Amjad Chaudhry
In-Car Automation and
Monitoring System
• Sensors are placed throughout a car that
wirelessly send data back to a central
terminal
– Data displayed on LCD
– Zigbee is used to transmit and receive Data
– Visual Warnings will be given if a sensor
detects something has fallen below the
threshold.
Implementation
• We will use Zigbee technology to measure
different components of a car and display the data
on a main LCD screen.
–
–
–
–
–
Tire Pressure
Temperature
Accelerometer
Proximity Sensor
Car Battery Voltage
• If any of the sensors detect a critical level our
system will be used to provide a visual warning to
the driver.
Project Outline
Software
Implementation
Sensor Boards
-A/D Converters
Sensors
Hardware
Design
Zigbee
Communication
Rx
Main Board
Tx
LCD
Main Board
Keypad
Sensor Boards
PCB
Design
Main Board
Sensor Boards
Division of Labor
• Aditya and Amjad will work solely on software issues
– A/D Converter
– Zigbee Communication
• Kirill
– Mainboard Design
– Hardware/Software Implementation
• Will also work with Aditya and Amjad, with software implementation
of hardware (I.e. LCD, Keypad, RS-232, User Interface)
• Arush and Bilal
– Sensors’ schematic and design
– PCB for Main Board and Sensors
System Architecture
Parking Sensors
Tire Pressure
Sensors
Accelerometer
Sensor
Battery
voltage
sensors
Temperature
sensors
Main Terminal
Keypad
Speaker
LCD Screen
Development Kit
•Our development kit came with a programming environment,
CodeWarrior. The kit also came with demo applications to be
tested with our board to introduce the user to programming for
RF applications.
•The board has:
•Two accelerometers, four switches and LEDs, a MC13192
transceiver, printed antenna, serial interface and
MC9s08GT60 low-power MCU with 60KB of flash
memory.
Software
Aditya Kaundinya
Software Overview
Zigbee Communication
• Simple Media Access Controller Functions
•ANSI C based code used for developing RF
applications.
A/D Converter Implementation
• Used to convert continuous signals to digital numbers.
•The digital output can take different arithmetic forms.
(Binary, Hexadecimal, etc.)
Demo Software
• Our development kit came with demo code that
allowed us to test our hardware.
• -Range Finder – Code that adjusted the number of
blinking LED’s respective to the distance between
the two boards.
• -UART Demo – Wireless transmits a user’s
keystrokes to the terminal of another pc using the
Zigbee transceivers.
Example Code (Range Detection)
TRANSMIT STATE case TX_STATE:
/*Load the tx buffer with the ZigBee packet.*/
au8TxDataBuffer[0] = 'Z';
au8TxDataBuffer[1] = 'i';
au8TxDataBuffer[2] = 'g';
au8TxDataBuffer[3] = 'B';
au8TxDataBuffer[4] = 'e';
au8TxDataBuffer[5] = 'e';
sTxPacket.u8DataLength = 6;
if (MCPSDataRequest(&sTxPacket) == SUCCESS)
MLMERXEnableRequest(&sRxPacket,DELAY_COUNT);
RECEIVE STATE case RX_STATE:
MLMERXEnableRequest(&sRxPacket,0);
break;
SMAC Functions
MLMESetMC13192Outp Adjusts the output power
utAdjust
of the transmitter(0-15)
MLMEHibernateRequest Disables Clock Output
MLMEWakeRequest
Brings radio out of low
power mode
MLMERXEnableRequest Places radio in receive
mode
sRxPacket->pu8Data[3]
Reads power value from
third byte of data packet
Block Diagram - Stages of Software
Initialization - Declaration of functions, including header files,SMAC functions
Puts system into different states depending on intervals set
Sets appropriate power mode for different states
Checks received data and sends acknowledgement
System loops
A-D Converter
•Tire pressure sensor gives an analog voltage value.
• The output pin of the sensor is connected to one of the 8 A-D
converter pins on the microcontroller.
•The voltage signal from the sensor is converted to a binary number
using the microcontroller.
•The voltage-pressure relation below is used to convert the digital
value into the corresponding pressure value.
Immediate Software Goals
Goal 1 – by 03/03/2008
•Understand all the SMAC functions by next
Monday.
• Simultaneously work on writing code to control
LED’s using the pushbuttons.
Goal 2 – by 03/15/2008
• Connect tire pressure sensor to the A/D converter on
the development board.
• Write software to output the correct air pressure
from the A/D converter.
Main Board
Kirill Belyayev
Main Board Schematic
U12
13
8
10
11
0.1 uF
1
3
4
5
2
6
0.1 uF
16
C22
0.1 uF
C21
0.1 uF
C20
0.1 uF
T 1OUT
T 2OUT
P6
CONNE CTOR DB 9
RxD
5
9
4
8
3
7
2
6
1
14
7
C1+
C1C2+
C2V+
VV CC
MA X3 23 2
IC1 01
GP IO1
GP IO2
T P 102
T P 103
GP IO1
GP OI2
11
10
9
8
23
24
25
IC1 02
KB0
KB1
KB2
KB3
KB4
KB5
KB6
LCD_RE S
32
33
34
35
36
37
38
39
P T A0 /K B IP0
P T A1 /K B IP1
P T A2 /K B IP2
P T A3 /K B IP3
P T A4 /K B IP4
P T A5 /K B IP5
P T A6 /K B IP6
P T A7 /K B IP7
P T E0 /T xD1
P T E1 /RxD1
P T E2 /S S
P T E3 /MIS O
P T E4 /MOS I
P T E5 /S P S CK
IRQ
9
10
12
13
14
15
T xD
RxD
SS
MIS O
MOSI
S P ICLK
LCD_A 0
LCD_A 1
LCD_A 2
LCD_A 3
LCD_D0
LCD_D1
LCD_D2
LCD_D3
LCD_D4
LCD_D5
LCD_D6
LCD_D7
18
19
20
21
22
23
24
25
26
27
28
29
P T C0 /T xD2
P T C1 /RxD2
P T C2 /S DA
P T C3 /S CL
P T C4
P T C5
P T C6
P T D0 /T P M1CH0
P T D1 /T P M1CH1
P T D3 /T P M2CH0
P T D4 /T P M2CH1
P T B0 /A D0
P T B1 /A D1
P T B2 /A D2
P T B3 /A D3
P T B4 /A D4
P T B5 /A D5
P T B6 /A D6
P T B7 /A D7
GP IO1
GP OI2
A T TNB
RX TX E N
RS TB
SS2
SS3
16
41
A NT1 01
T INJ _M
A T TNB i
RX TX E Ni
RS TB i
P A O_ P
4
5
C10 8
22 0p F
CLK O
15
L1 01
6.8 nH
6
4
2
1
P A O_ M
31
22
5
3
1
C13 0
10 0p F
V DDA
3V 0
2*3 p
6
BDM PORT
SM
32
29
28
21
30
V DDA
V DDL O1
V DDL O2
V DDD
V DDV CO
X T AL 1
GND
X T AL 2
W1 04
E L=58 d eg, Z=120 oh m
11 .5mm
7
A NT1 02
C10 6
6.8 pF
26
X 10 1
30
31
S 10 6
C10 3
10 0n F
C10 2
10 0n F
VSS
V S SA D
W1 03
E L=58 d eg, Z=120 oh m
11 .5mm
V B AT T
V DDINT
C12 9
10 0n F
C13 1
0.5 pF
CLK Oo
3V 0
J1 01
V DD
V DDA D
W1 02
E L=22.5 d eg , Z=12 0oh m
4.5 mm
3
3V 0
V REFH
V REFL
C10 9
10 0n F
W1 01
E L=22.5 d eg , Z=12 0oh m
4.5 mm
T INJ _P
14
13
12
3.3 V
17
40
2
T P 101
44
P T G2 /E X T A L 43
P T G1 /X T A L 42
P T G0 /B K GD/MS
RE SE T
C12 8
0.5 pF
C12 7
18 pF
IRQB o
3V 0
47 0K
1
R10 6
22 0R
Not Mo un te d
CE Bi
MIS Oo
MOSIi
S P ICLK i
20
R10 5
2
3
4
5
6
7
8
C12 6
18 pF
RIN_ M
RIN_ P
19
18
17
16
IRQ
11
GP IO1
GP IO2
GP IO3
GP IO4
GP IO5
GP IO6
GP IO7
C10 4
10 0n F
33
SW5
MC9S 08 GT 6 0
MC131 92
C10 7
22 0p F
27
3.3 V
3.3 V
3.3 V
KB4KB5KB6
3.3 V
16 .000 MHz
C10 5
6.8 pF
R17
5K
R16
5K
R15
5K
R14
5K U14
RESET Switch
3.3 V
28
27
26
25
24
23
22
21
20
19
18
17
16
15
SS3
C24
0.1 uF
3.3 V
R18
5K
S P ICLK
MOSI
MIS O
U18
SS2
MIS O
1
2
3
4
/CS
SO
/WP
GND
3.3 V
V CC
/HOL D
S CK
SI
IS2 5C6 4A
8
7
6
5
S P ICLK
MOSI
KB0
1
KB1
2
KB2
3
KB3
4
KP6
S QW
V cc
NC
/E
NC
/IRQ/FT /OUT
NC
NC
NC
NC
NC
T HS
NC
NC
WDI
NC
/RS T IN1
S CL
/RS T IN2
NC
NC
/RS T
NC
S DI
NC
S DO
V ss
NC
KP5
U19
1
2
3
4
5
6
7
8
9
10
11
12
13
14
KP4
S witch SP S T S MD
7
C19
T 2IN
T 1IN
12
9
6
T xD
R1OUT
R2OUT
5
C18
R1IN
R2IN
KP0
1
2
3
KP1
4
5
6
KP2
7
8
9
KP3
*
0
#
K eyp ad
C23
0.1 uF
T itl e
Mai n T ermi na l S ch ema ti c
M41 T9 4MH
S ize
B
Date:
Doc ume nt Nu mbe r
Mad e by IPA T eam
Mon day, Fe brua ry 2 5, 2 00 8
Rev
1.0
S he et
1
of
1
Microprocessor
IC1 02
MC9S08GT60
Six Different General I/O Ports:
• Port A has keyboard interrupts
• Port B has A/D Converter inputs
• Port C has SCI2 and I2C interfaces
• Port D has Timer/PWM module
• Port E has SCI1 and SPI interfaces
KB0
KB1
KB2
KB3
KB4
KB5
KB6
LCD_RE S
32
33
34
35
36
37
38
39
LCD_A 0
LCD_A 1
LCD_A 2
LCD_A 3
18
19
20
21
LCD_D0
LCD_D1
LCD_D2
LCD_D3
LCD_D4
LCD_D5
LCD_D6
LCD_D7
22
23
24
25
26
27
28
29
P T A0 /K B IP 0
P T A1 /K B IP 1
P T A2 /K B IP 2
P T A3 /K B IP 3
P T A4 /K B IP 4
P T A5 /K B IP 5
P T A6 /K B IP 6
P T A7 /K B IP 7
P T D0 /T P M1CH0
P T D1 /T P M1CH1
P T D3 /T P M2CH0
P T D4 /T P M2CH1
P T B0 /A D0
P T B1 /A D1
P T B2 /A D2
P T B3 /A D3
P T B4 /A D4
P T B5 /A D5
P T B6 /A D6
P T B7 /A D7
P T E0 /T xD1
P T E1 /RxD1
P T E2 /S S
P T E3 /MIS O
P T E4 /MOS I
P T E5 /S P S CK
IRQ
P T C0 /T xD2
P T C1 /RxD2
P T C2 /S DA
P T C3 /S CL
P T C4
P T C5
P T C6
9
10
12
13
14
15
11
2
3
4
5
6
7
8
44
P T G2 /E X T A L 43
P T G1 /X T A L 42
P T G0 /B K GD/MS
RE SE T
1
3.3 V
17
40
V DD
V DDA D
V REFH
V REFL
C10 9
10 0n F
16
41
VSS
V S SA D
MC9S 08 GT 6 0
30
31
IC1 01
RF Data Modem
11
10
9
8
23
24
25
19
18
17
16
MC13192
• SPI pins for on-board communication
• RF input/output pins
• General purpose I/O pins
20
GPIO1
GPIO2
GPIO3
GPIO4
GPIO5
GPIO6
GPIO7
RIN_ P
CEB i
MIS Oo
MOS Ii
S PICLK i
T INJ _P
T INJ _M
14
13
12
15
A TT NB i
RXT X E Ni
RST B i
P AO_ P
32
29
28
21
30
33
2
3
4
5
CLK Oo
P AO_ M
31
22
1
IRQB o
• Interrupt, Reset, Rx/Tx Enable pins
• External clock pins
RIN_ M
V BA T T
V DDINT
SM
V DDA
V DDL O1
V DDL O2
V DDD
V DDV CO
X TA L 1
GND
X TA L 2
MC1 31 92
6
7
26
27
Serial Communication Interface
Max3232 – SCI Driver and Receiver
Keypad
• 12 Keys – 7 pins
• Rows have pull up resistors
and used as outputs
R14
5K U14
KB0
1
KB1
2
KB2
3
KB3
4
7
R15
5K
KP6
R16
5K
KB4KB5KB6
3.3 V
6
R17
5K
3.3 V
KP5
3.3 V
5
3.3 V
KP4
• Columns used as inputs
KP0
1
2
3
KP1
4
5
6
KP2
7
8
9
KP3
*
0
#
K eyp ad
LCD Interface
Two NJU6676 Drivers
3.3 V
• 64x132 pixels each
R13 1
5K
LCD_MCS
• Parallel or Serial
• Internal power supply
circuit (not used)
3.3 V
3.3 V
LCD_RE S
LCD_A 0
LCD_A 1
LCD_A 2
LCD_D0
LCD_D1
LCD_D2
LCD_D3
LCD_D4
LCD_D5
LCD_D6
LCD_D7
3.3 V
R12 5
5K
3.3 V
U26
R13 3
5K
V1
V2
V3
V4
V5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
NC
FR
CL
/DOF
/CS 1
CS 2
/RE S
A0
R/W
E
D0
D1
D2
D3
D4
D5
D6
D7
V DD
VSS
V OUT
C3C1+
C1C2C2+
V1
V2
V3
V4
V5
VR
C86
P /S
NC
NC
NJU66 76 Mas ter
U27
R13 2
5K
LCD_S CS
3.3 V
3.3 V
LCD_RE S
LCD_A 0
LCD_A 1
LCD_A 2
LCD_D0
LCD_D1
LCD_D2
LCD_D3
LCD_D4
LCD_D5
LCD_D6
LCD_D7
3.3 V
R12 6
5K
R13 4
5K
V1
V2
V3
V4
V5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
NC
FR
CL
/DOF
/CS 1
CS 2
/RE S
A0
R/W
E
D0
D1
D2
D3
D4
D5
D6
D7
V DD
VSS
V OUT
C3C1+
C1C2C2+
V1
V2
V3
V4
V5
VR
C86
P /S
NC
NC
NJU66 76 S l ave
Sensor Schematics
Arush Dhawan
Sensor Schematic
• Tire Pressure Chip - MPX4250
– Operates at 5V
• Max Input of MC9S08 is 3.6V
– Attenuator
– Readjust Transfer Function in Software
– Sensor Chips are interchangeable, the only thing that
will need to be adjusted the attenuator and software.
•
•
•
•
Temperature – FM20P5X – 3.3V
X-Y Accelerometer – MMA1260D - 5 V
Z Accelerometer – MMA6261Q 3.3V
Proximity Sensor – Sharp GP2Y0A21YK - 3.3V
Tire Pressure Chip
IC1 04
32
33
34
35
36
37
38
39
KB0
KB1
KB2
KB3
KB4
KB5
KB6
U18
5.1 V
NC
NC
NC
Vs
GND
V ou t
6
5
4
3
2
1
18
19
20
21
R10 9
MP X4 25 0
5k
GP IO1
GP OI2
GP IO1
GP IO2
R11 0
10 k 22
23
24
25
26
27
28
29
P T A0 /K B IP0
P T A1 /K B IP1
P T A2 /K B IP2
P T A3 /K B IP3
P T A4 /K B IP4
P T A5 /K B IP5
P T A6 /K B IP6
P T A7 /K B IP7
P T D0 /T P M1CH0
P T D1 /T P M1CH1
P T D3 /T P M2CH0
P T D4 /T P M2CH1
P T B0 /A D0
P T B1 /A D1
P T B2 /A D2
P T B3 /A D3
P T B4 /A D4
P T B5 /A D5
P T B6 /A D6
P T B7 /A D7
P T E0 /T xD1
P T E1 /RxD1
P T E2 /S S
P T E3 /MIS O
P T E4 /MOS I
P T E5 /S P S CK
IRQ
P T C0 /T xD2
P T C1 /RxD2
P T C2 /S DA
P T C3 /S CL
P T C4
P T C5
P T C6
9
10
12
13
14
15
11
2
3
4
5
6
7
8
44
P T G2 /E X T AL 43
P T G1 /X T A L 42
P T G0 /B K GD/MS
RE SE T
1
3.3 V
17
40
V DD
V DDA D
V REFH
V REFL
C11 7
10 0n F
16
41
VSS
V S SA D
MC9S 08 GT 60
30
31
Temperature Chip
IC1 06
KB0
KB1
KB2
KB3
KB4
KB5
KB6
3.3 V
18
19
20
21
U21
1
2
3
NC
GND
V ou t
V DD
GND
4
5
22
23
24
25
26
27
28
29
FM2 0T
GP IO1
GP OI2
32
33
34
35
36
37
38
39
GP IO1
GP IO2
P T A0 /K B IP0
P T A1 /K B IP1
P T A2 /K B IP2
P T A3 /K B IP3
P T A4 /K B IP4
P T A5 /K B IP5
P T A6 /K B IP6
P T A7 /K B IP7
P T D0 /T P M1CH0
P T D1 /T P M1CH1
P T D3 /T P M2CH0
P T D4 /T P M2CH1
P T B0 /A D0
P T B1 /A D1
P T B2 /A D2
P T B3 /A D3
P T B4 /A D4
P T B5 /A D5
P T B6 /A D6
P T B7 /A D7
P T E0 /T xD1
P T E1 /RxD1
P T E2 /S S
P T E3 /MIS O
P T E4 /MOS I
P T E5 /S P S CK
IRQ
P T C0 /T xD2
P T C1 /RxD2
P T C2 /S DA
P T C3 /S CL
P T C4
P T C5
P T C6
9
10
12
13
14
15
11
2
3
4
5
6
7
8
44
P T G2 /E X T AL 43
P T G1 /X T A L 42
P T G0 /B K GD/MS
RE SE T
1
3.3 V
17
40
V DD
V DDA D
V REFH
V REFL
C12 5
10 0n F
16
41
VSS
V S SA D
MC9S 08 GT 60
30
31
Z Accelerometer Chip
U1
1
2
3
4
5
6
7
8
V ss
V ss
V ss
V ou t
S T AT US
V DD
V ss
ST
NC
NC
NC
NC
NC
NC
NC
NC
16
15
14
13
12
11
10
9
IC1 04
32
33
34
35
36
37
38
39
KB0
KB1
KB2
KB3
KB4
KB5
KB6
X Y ACC
5.1 V
18
19
20
21
R10 9
5k
GP IO1
GP OI2
GP IO1
GP IO2
R11 0
10 k 22
23
24
25
26
27
28
29
P T A0 /K B IP0
P T A1 /K B IP1
P T A2 /K B IP2
P T A3 /K B IP3
P T A4 /K B IP4
P T A5 /K B IP5
P T A6 /K B IP6
P T A7 /K B IP7
P T D0 /T P M1CH0
P T D1 /T P M1CH1
P T D3 /T P M2CH0
P T D4 /T P M2CH1
P T B0 /A D0
P T B1 /A D1
P T B2 /A D2
P T B3 /A D3
P T B4 /A D4
P T B5 /A D5
P T B6 /A D6
P T B7 /A D7
P T E0 /T xD1
P T E1 /RxD1
P T E2 /S S
P T E3 /MIS O
P T E4 /MOS I
P T E5 /S P S CK
IRQ
P T C0 /T xD2
P T C1 /RxD2
P T C2 /S DA
P T C3 /S CL
P T C4
P T C5
P T C6
9
10
12
13
14
15
11
2
3
4
5
6
7
8
44
P T G2 /E X T A L 43
P T G1 /X T A L 42
P T G0 /B K GD/MS
RE SE T
1
3.3 V
17
40
V DD
V DDA D
V REFH
V REFL
C11 7
10 0n F
16
41
VSS
V S SA D
MC9S 08 GT 6 0
30
31
X-Y Accelerometer
IC1 08
C15 8
KB0
KB1
KB2
KB3
KB4
KB5
KB6
3.3 V
.1u F
7
8
NC
X ou t
Y ou t
NC
NC
NC
NC
16
15
14
13
R11 5
1K
NC
NC
NC
ST
6
NC
R11 6
GP IO1
GP OI2
P T A0 /K B IP 0
P T A1 /K B IP 1
P T A2 /K B IP 2
P T A3 /K B IP 3
P T A4 /K B IP 4
P T A5 /K B IP 5
P T A6 /K B IP 6
P T A7 /K B IP 7
C15 9
18F
.1u
P T D0 /T P M1CH0
19
P T D1 /T P M1CH1
20
P T D3 /T P M2CH0
21
P T D4 /T P M2CH1
1K
C16 0
.1u F
9
10
11
12
5
Vss
VDD
NC
NC
4
3
2
1
U22
ZA CC2
32
33
34
35
36
37
38
39
GP IO1
GP IO2
22
23
24
25
26
27
28
29
P T B0 /A D0
P T B1 /A D1
P T B2 /A D2
P T B3 /A D3
P T B4 /A D4
P T B5 /A D5
P T B6 /A D6
P T B7 /A D7
P T E0 /T xD1
P T E1 /RxD1
P T E2 /S S
P T E3 /MIS O
P T E4 /MOS I
P T E5 /S P S CK
IRQ
P T C0 /T xD2
P T C1 /RxD2
P T C2 /S DA
P T C3 /S CL
P T C4
P T C5
P T C6
9
10
12
13
14
15
11
2
3
4
5
6
7
8
44
P T G2 /E X T A L 43
P T G1 /X T A L 42
P T G0 /B K GD/MS
RE SE T
1
3.3 V
17
40
V DD
V DDA D
V REFH
V REFL
C15 7
10 0n F
16
41
VSS
V S SA D
MC9S 08 GT 6 0
30
31
Proximity Sensor
IC1 10
KB0
KB1
KB2
KB3
KB4
KB5
KB6
18
19
20
21
U23
Vo
GND
V cc
P ROX 2
32
33
34
35
36
37
38
39
1
2
3
3.3 V
GP IO1
GP OI2
22
23
24
25
26
27
28
29
GP IO1
GP IO2
P T A0 /K B IP0
P T A1 /K B IP1
P T A2 /K B IP2
P T A3 /K B IP3
P T A4 /K B IP4
P T A5 /K B IP5
P T A6 /K B IP6
P T A7 /K B IP7
P T D0 /T P M1CH0
P T D1 /T P M1CH1
P T D3 /T P M2CH0
P T D4 /T P M2CH1
P T B0 /A D0
P T B1 /A D1
P T B2 /A D2
P T B3 /A D3
P T B4 /A D4
P T B5 /A D5
P T B6 /A D6
P T B7 /A D7
P T E0 /T xD1
P T E1 /RxD1
P T E2 /S S
P T E3 /MIS O
P T E4 /MOS I
P T E5 /S P S CK
IRQ
P T C0 /T xD2
P T C1 /RxD2
P T C2 /S DA
P T C3 /S CL
P T C4
P T C5
P T C6
9
10
12
13
14
15
11
2
3
4
5
6
7
8
44
P T G2 /E X T A L 43
P T G1 /X T A L 42
P T G0 /B K GD/MS
RE SE T
1
3.3 V
17
40
V DD
V DDA D
V REFH
V REFL
C17 4
10 0n F
16
41
VSS
V S SA D
MC9S 08 GT 6 0
30
31
PCB Design and
Logistics
Bilal Yousufi
PCB Design – Revision 1
• Altium Designer
• 1st Revision by March 1st
• R
– 2 Boards
• Mainboard
– Power Source: 12V Battery with DC-DC Buck Converter.
» Components Operate between 3.3V – 12V
• Tire Pressure Board
PCB Design – Revision 2
•
2nd Revision by Milestone 2
– Mainboard
– Tire Pressure, Temperature, 3-axis Accelerometer Board, and more if time permits
• Sensor Boards will be powered by batteries.
–
–
We will try to lower power consumption as much as possible
Test Power Consumption, based on transmission intervals
• Ruggedized Casing
– RF Data Modem
•
3rd Revision by Expo
– More Sensors (Voltage or Fluid Level)
– More Mainboard Functions
• Storage
• Color LCD
•
4 Layer Boards from 4pcb.com
– Routing on Outside
– Inner Layers will be Voltage (3.3V) and Ground
– A couple of Sensors use 5V, we might split the voltage layer, or use a boost
converter.
Long Range RF Modem
•Car – PC Link that can send Data (i.e. Racetrack, Test drive)
•40 Mile Range
•Monitor Sensor Data on Computer
•Will be implemented in the second revision of the design
•RS-232 Link (Already on Mainboard)
•Implementing Software will be the main issue
•We don’t have experience with creating packet structure
Power
• Mainboard
– 3.3V, 5V
– Input of 9V for 1st PCB Revision
– Input of 12V for 2nd PCB Revision (Car Battery)
• Voltage Regulators to Step Down to 3.3V, and 5V
• Boost Converter to 15 V
• Sensor
– 3.3V Power Source
– Converters for Sensor Chips
Power
•Our first PCB Revision will not be wireless and have a 9V Source.
We will be using the power adapters from our development kit.
•We will be using 9V with Voltage Regulators at 5V and 3.3V
•Our second PCB Revision will focus on power conservation, and the
sensor modules will be run by batter
S W1
S P ST
5V
D5
D7
3.3 V
D2
1N4 003
U2
LP 3 869 0DT X -5 .0
1
1
D3
D4
In
5V
3
1
+
1N4 003
1N4 003
C1
1u F
In
Gnd
1N4 003
2
2
1N4 003
U3
LP 3 869 0DT X -3 .3
2
1N4 003
J1
P ower ja ck
2.1 mm
Gnd
D1
C2
10 uF
5V
3
+
C3
10 uF
R1
39 0
D6
GREE N L
LCD Interface
•Proper Operation of LCD, needs 5 discreet voltages
•Voltages Range from 3.3V to –12V
•Logic – 3.3V
•GND – 0 V
•On/Off Voltages for LCD Pixels
•Bias Voltage is -12V (Pixels, Contrast)
C32
0.2 2uF
3.3 V
C28
10 uF
C27
0.1 uF
C31
U28
3
4
07
5
2
V IN
EN
P S _GND
IN
GND
T P S6 37 00
PW_PAD
R12 7
10
R12 9
12 1K
V REF
FB
OUT
SW
COMP
10
09
08
06
1
R12 8
1.2 M
D10
10 pF
R13 0
10 0K
V ee
-12V 150mA
DIODE SCHOTT K Y
C29
4.7 nF
L1 06
10 uH
C30
4 x 4.7u F
3.3 V
Power - LCD Interface
R11 6
4.7 K
3.3 V
4
3.3 V
+
2
-
+
C13
1u F
1
11
3
U23 A
V1
LM3 24
V ee
R11 8
4.7 K
•Adjusts Contrast
3.3 V
4
3.3 V
5
U23 B
+
C14
1u F
7
V2
11
6
+
LM3 24
V ee
R11 9
23 .7K
3.3 V
4
3.3 V
10
U23 C
+
C15
1u F
8
V3
11
9
+
LM3 24
V ee
R12 0
4.7 K
3.3 V
4
3.3 V
12
13
R12 3
1.4 4K
R12 1
4.7 K
R12 4
10 K P OT
+
C16
1u F
V4
LM3 24
V ee
3.3 V
4
3.3 V
13
+
U24 D
+
14
11
12
R12 2
20 .5K
U23 D
14
11
V ee
+
V ee
LM3 24
-7.7 to -11.2 V
Power Circuit for Display
C12
1u F
V5
•On/Off Voltages for Pixels
Updated Timeline
Parts
Qnt
2
4
3
5
2
2
1
3
2
10
100
100
2
35
30
20
3
3
4
1
3
3
3
3
3
3
30
30
30
30
30
30
Description
IC MCU 60K FLASH 20MHZ 44-QFP
RF Data Modem
IC PLD 8CELL 3V 10NS SO20
IC SPI BUS SRL EEPROM 64K 8-SOIC
IC RTC SPI SRAM SER 64X8 28-SOIC
IC SNAPHAT BATT/CRYSTAL 28-SOIC
KEYPAD 12 KEY FRONT PANEL MNT
IC MCU 60K FLASH 20MHZ 44-QFP
MPX4250
Voltage Regulators/Converters
Res
Caps
Speaker
Switches
LEDs
Jacks, connectors
CONN DB9 FEMALE .590" R/A NICKEL
IC DRVR/RCVR MULTCH RS232 16SOIC
LED ARRAY 2X5MM 5-SEG YELLOW
LCD MOD GRAPH 240X64 WHT TRANSFL
LCD Power Supply Components:
IC CONV DC/DC INV MCRPWR SOT23-5
IC OP AMP QUAD LOW POWER 14-SOIC
POT 10K OHM 10MM 347 DEGREE SMD
IC DC/DC INV -15V 10-SON
INDUCTOR 10UH SHIELDED SMD
DIODE SCHOTTKY 30V200MA SSMINI2P
CAP .1UF 25V CERAMIC X7R 0603
CAP CER 10UF 10V X7R 0805
CAP CER 4.7UF 10V X7R 0805
CAP CERM .22UF 16V X7R 0603
CAP CERM 10PF 10% 100V NP0 0603
CAP 4700PF 50V CERAMIC X7R 0603
LCD Connectors:
6 CONN FPC/FFC 36POS .5MM HORZ SMD
1 Development Kit
6 4 Layer PCB
M/N Part #
MC9S08GT60CFBE
MC13192FCR2
ATF16LV8C-10SC
IS25C64A-2GLI
M41T94MH6F
M4T28-BR12SH1
96AB2-102-F
MC9S08GT60CFBE
Vendor Part #
MC9S08GT60CFBE-ND
MC13192FCR2CT-ND
ATF16LV8C-10SC-ND
706-1015-5-ND
497-5372-1-ND
497-3686-5-ND
GH5001-ND
MC9S08GT60CFBE-ND
Vendor's Name Price of 1
On-board reference
Digikey
$0.00 SAMPLED
Digikey
$0.00 SAMPLED
Digikey
$2.69
Digikey
$1.16
Digikey
$5.80
Digikey
$5.81
Digikey
$12.02
Digikey
$10.51
$0.00 SAMPLED
$10.00
$0.10
$0.20
$10.00
$0.50
$1.00
$0.50
Digikey
$3.94
Digikey
$1.50
Digikey
$1.60
Digikey
$51.74
183-009-213R181
MAX3232CDWR
SSA-LXB525YD
73-1262-ND
183-809FE-ND
296-13095-1-ND
67-1203-ND
F-51851GNFJ-SLW-AEN
LT1617ES5#TRMPBF
LT1617ES5#TRMPBFCT-ND Digikey
LM324M/NOPB
EVW-AE4001B14
TPS63700DRCT
CDRH5D18-100NC
MA2SD3100L
C0603C104K3RACTU
GRM21BR71A106KE51L
LMK212BJ475KG-TR
B37931K9224K60
06031A100KAT2A
C0603C472J5RACTU
LM324MNS-ND
P12426CT-ND
296-18729-1-ND
308-1346-1-ND
MA2SD3100LCT-ND
399-1281-1-ND
490-3905-1-ND
587-1442-1-ND
495-1919-1-ND
478-3670-1-ND
399-1088-1-ND
Digikey
Digikey
Digikey
Digikey
Digikey
Digikey
Digikey
Digikey
Digikey
Digikey
Digikey
1.02
1.72
4.16
0.92
0.51
0.118
0.541
0.281
0.042
0.198
0.033
FH12A-36S-0.5SH
HFK36CT-ND
Digikey
2.45
300
66
4pcb.com
4.14
Questions?