Car Monitoring System Team IPA: Kirill Belyayev Amjad Chaudhry Arush Dhawan Aditya Kaundinya Bilal Yousufi
Car Monitoring System Team IPA: Kirill Belyayev Amjad Chaudhry Arush Dhawan Aditya Kaundinya Bilal Yousufi
Car Monitoring System Team IPA: Kirill Belyayev Amjad Chaudhry Arush Dhawan Aditya Kaundinya Bilal Yousufi
Kirill Belyayev Amjad Chaudhry Arush Dhawan Aditya Kaundinya Bilal Yousufi
Amjad Chaudhry
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 Hardware Design PCB Design
Sensor Boards
Zigbee Communication
Main Board
Main Board
Sensor Boards
Main Board
Sensor Boards
-A/D Converters
Sensors
Rx
Tx
LCD
Keypad
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)
System Architecture
Parking Sensors Accelerometer Sensor Tire Pressure Sensors
Main Terminal
Temperature sensors
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 LEDs respective to the distance between the two boards. -UART Demo Wireless transmits a users keystrokes to the terminal of another pc using the Zigbee transceivers.
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
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.
Main Board
Kirill Belyayev
P6 CO NN ECTOR DB9
0.1 uF
IC 101 GP IO1 GP OI2 GP IO1 GP IO2 TP 102 TP 103 11 10 9 8 23 24 25 19 18 17 16 20 R1 05 3V 0 GP IO1 GP IO2 GP IO3 GP IO4 GP IO5 GP IO6 GP IO7 CE Bi MI SOo MO SIi SP ICL Ki TIN J_P IR QBo TIN J_M 14 13 12 ATTNB i RXTXE Ni RS TBi 4 RI N_M 1
C1 26 18 pF
IC 102 KB 0 KB 1 KB 2 KB 3 KB 4 KB 5 KB 6 LC D_R ES 32 33 34 35 36 37 38 39 PTA0/K BIP 0 PTA1/K BIP 1 PTA2/K BIP 2 PTA3/K BIP 3 PTA4/K BIP 4 PTA5/K BIP 5 PTA6/K BIP 6 PTA7/K BIP 7 PTE0/TxD1 PTE1/R xD 1 PTE2/S S PTE3/MISO PTE4/MOS I PTE5/S PSC K IR Q 9 10 12 13 14 15 11 Tx D Rx D
SS MI SO MO SI SP ICL K IR Q
18 19 20 21
PTC0/ TxD2 PTC1/ RxD 2 PTC2/ SDA PTC3/ SCL PTC4 PTC5 PTC6
2 3 4 5 6 7 8
GP IO1 GP OI2
47 0K
SS 2 SS 3 CL KO
PA O_P
22 23 24 25 26 27 28 29
15
CL KOo PA O_M 6 W 103 EL =58 deg , Z=120o hm 11 .5m m SM VD DA VD DLO 1 VD DLO 2 VD DD VD DV CO 7 AN T10 2 C1 06 6.8 pF XTAL1 26 X1 01 W 104 EL =58 deg , Z=120o hm 11 .5m m
17 40
VD D VD DA D VR EFH VR EFL 30 31
3V 0
BDM PORT
C1 09 10 0nF
16 41
C1 03 10 0nF
C1 04 10 0nF 33
GN D MC 131 92
XTAL2
C1 07 22 0pF
3.3 V
3.3 V R1 7 5K
3.3 V R1 6 5K
3.3 V R1 5 5K
KB 4 KB 5 KB 6
R1 4 5K U1 4 1 2 3 4
6 KP 5
2 5 8 0 1 4 7 *
KP 4
3.3 V C2 4 0.1 uF
RESET Switch
KB 0 KB 1 3.3 V R1 8 5K U1 8 SS 2 MI SO 1 2 3 4 /C S SO /W P GN D VC C /H OLD SC K SI 8 7 6 5 3.3 V C2 3 0.1 uF Tit le Ma in Termi nal S che mat ic Size B Da te: Do cum ent Num ber Ma de b y IP A Team Mo nda y , F ebru ary 25, 2008 Sh eet KB 2 KB 3
KP 0 KP 1 KP 2 KP 3
SP ICL K MO SI MI SO
Ke y pa d
SP ICL K MO SI
IS 25C 64A
KP 6
3 6 9 # Re v 1.0 1
of
Microprocessor
IC 102 KB 0 KB 1 KB 2 KB 3 KB 4 KB 5 KB 6 LC D_R ES 32 33 34 35 36 37 38 39 PTA0/ KBIP 0 PTA1/ KBIP 1 PTA2/ KBIP 2 PTA3/ KBIP 3 PTA4/ KBIP 4 PTA5/ KBIP 5 PTA6/ KBIP 6 PTA7/ KBIP 7 PTE0/ TxD 1 PTE1/ RxD 1 PTE2/ SS PTE3/ MISO PTE4/ MOS I PTE5/ SPS CK IR Q 9 10 12 13 14 15 11
MC9S08GT60 Six Different General I/O Ports: Port A has keyboard interrupts Port B has A/D Converter inputs
18 19 20 21
PTC0/ TxD 2 PTC1/ RxD 2 PTC2/ SDA PTC3/ SCL PTC4 PTC5 PTC6
2 3 4 5 6 7 8
22 23 24 25 26 27 28 29
PTB0/ AD0 PTB1/ AD1 PTB2/ AD2 PTB3/ AD3 PTB4/ AD4 PTB5/ AD5 PTB6/ AD6 PTB7/ AD7
RE SE T
17 40
VD D VD DA D VR EF H VR EF L 30 31
C1 09 10 0nF
16 41
IC 101
RF Data Modem
MC13192
SPI pins for on-board communication RF input/output pins
11 10 9 8 23 24 25 19 18 17 16 20
GP IO1 GP IO2 GP IO3 GP IO4 GP IO5 GP IO6 GP IO7 CE Bi MI SOo MO SIi SP ICL Ki
RI N_M
RI N_P
14 13 12
PA O_P
15
CL KOo PA O_M 6
31 22 32 29 28 21 30
XTAL1
26
33
GN D MC 131 92
XTAL2
27
Keypad
12 Keys 7 pins
Rows have pull up resistors and used as outputs Columns used as inputs
3.3 V 3.3 V R1 7 5K 3.3 V R1 6 5K 3.3 V R1 5 5K KB 4 KB 5 KB 6
R1 4 5K U1 4 1 2 3 4
6 KP 5
2 5 8 0 1 4 7 *
KP 4
KB 0 KB 1 KB 2 KB 3
KP 0 KP 1 KP 2 KP 3
Ke y pa d
KP 6
3 6 9 #
LCD Interface
Two NJU6676 Drivers
3.3 V U2 6 R1 31 5K LC D_MCS 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 /D OF /C S1 CS 2 /R ES A0 R/ W E D0 D1 D2 D3 D4 D5 D6 D7 VD D VS S VO UT C3 C1 + C1 C2 C2 + V1 V2 V3 V4 V5 VR C8 6 P/ S NC NC NJ U66 76 Mast er 3.3 V R1 32 5K LC D_S CS LC D_R ES LC D_A 0 LC D_A 1 LC D_A 2 LC D_D 0 LC D_D 1 LC D_D 2 LC D_D 3 LC D_D 4 LC D_D 5 LC D_D 6 3.3 V LC D_D 7 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 U2 7 NC FR CL /D OF /C S1 CS 2 /R ES A0 R/ W E D0 D1 D2 D3 D4 D5 D6 D7 VD D VS S VO UT C3 C1 + C1 C2 C2 + V1 V2 V3 V4 V5 VR C8 6 P/ S NC NC NJ U66 76 S lav e
LC D_R ES LC D_A 0 LC D_A 1 LC D_A 2 LC D_D 0 LC D_D 1 LC D_D 2 LC D_D 3 LC D_D 4 LC D_D 5 LC D_D 6 3.3 V LC D_D 7
3.3 V R1 33 5K
V1 V2 V3 V4 V5
3.3 V R1 26 5K
3.3 V R1 34 5K
V1 V2 V3 V4 V5
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
18 19 20 21
2 3 4 5 6 7 8
GP IO1 GP OI2
GP IO1 GP IO2
30 31
Temperature Chip
IC 106 KB 0 KB 1 KB 2 KB 3 KB 4 KB 5 KB 6 3.3 V 32 33 34 35 36 37 38 39 PTA0/K BIP 0 PTA1/K BIP 1 PTA2/K BIP 2 PTA3/K BIP 3 PTA4/K BIP 4 PTA5/K BIP 5 PTA6/K BIP 6 PTA7/K BIP 7 PTE0/TxD1 PTE1/R xD 1 PTE2/S S PTE3/MISO PTE4/MOS I PTE5/S PS CK IR Q 9 10 12 13 14 15 11
U2 1 1 2 3 NC GN D Vo ut FM20T VD D GN D 4 5
18 19 20 21
PTC0/ TxD 2 PTC1/ RxD 2 PTC2/ SDA PTC3/ SCL PTC4 PTC5 PTC6
2 3 4 5 6 7 8
GP IO1 GP OI2
GP IO1 GP IO2
22 23 24 25 26 27 28 29
30 31
Z Accelerometer Chip
U1 1 2 3 4 5 6 7 8 Vs s Vs s Vs s Vo ut STATU S VD D Vs s ST XY ACC 5.1 V NC NC NC NC NC NC NC NC 16 15 14 13 12 11 10 9 IC 104 KB 0 KB 1 KB 2 KB 3 KB 4 KB 5 KB 6 32 33 34 35 36 37 38 39 PTA0/K BIP 0 PTA1/K BIP 1 PTA2/K BIP 2 PTA3/K BIP 3 PTA4/K BIP 4 PTA5/K BIP 5 PTA6/K BIP 6 PTA7/K BIP 7 PTE0/TxD1 PTE1/R xD 1 PTE2/S S PTE3/MISO PTE4/MOS I PTE5/S PS CK IR Q 9 10 12 13 14 15 11
18 19 20 21 R1 09 5k R1 10 10 k 22 23 24 25 26 27 28 29
PTC0/ TxD 2 PTC1/ RxD 2 PTC2/ SDA PTC3/ SCL PTC4 PTC5 PTC6
2 3 4 5 6 7 8
GP IO1 GP OI2
GP IO1 GP IO2
30 31
X-Y Accelerometer
IC 108 KB 0 KB 1 KB 2 KB 3 KB 4 KB 5 KB 6 32 33 34 35 36 37 38 39 PTA0/K BIP 0 PTA1/K BIP 1 PTA2/K BIP 2 PTA3/K BIP 3 PTA4/K BIP 4 PTA5/K BIP 5 PTA6/K BIP 6 PTA7/K BIP 7 PTE0/TxD1 PTE1/R xD 1 PTE2/S S PTE3/MISO PTE4/MOS I PTE5/S PSC K IR Q 9 10 12 13 14 15 11 C1 58 3.3 V .1u F
U2 2 ZA CC2 NC Xo ut Y o ut NC 16 15 14 13
4 3 2 1
R1 16 R1 15 1K 1K C1 60 .1u F
NC NC NC NC
6 7 8
NC NC NC ST
Vss VDD NC NC
PTC0/TxD2 PTC1/R xD 2 PTC2/S DA PTC3/S CL PTC4 PTC5 PTC6 PTG2/E XTA L PTG1/XTAL PTG0/B KG D/MS
2 3 4 5 6 7 8 44 43 42
GP IO1 GP OI2
GP IO1 GP IO2
22 23 24 25 26 27 28 29
9 10 11 12
30 31
Proximity Sensor
IC 110 KB 0 KB 1 KB 2 KB 3 KB 4 KB 5 KB 6 32 33 34 35 36 37 38 39 PTA0/K BIP 0 PTA1/K BIP 1 PTA2/K BIP 2 PTA3/K BIP 3 PTA4/K BIP 4 PTA5/K BIP 5 PTA6/K BIP 6 PTA7/K BIP 7 PTE0/TxD1 PTE1/R xD 1 PTE2/S S PTE3/MISO PTE4/MOS I PTE5/S PS CK IR Q 9 10 12 13 14 15 11
U2 3 Vo GN D Vc c PR OX2 1 2 3
18 19 20 21
PTC0/ TxD 2 PTC1/ RxD 2 PTC2/ SDA PTC3/ SCL PTC4 PTC5 PTC6 PTG2/ EXTA L PTG1/ XTAL PTG0/ BKG D/MS
2 3 4 5 6 7 8 44 43 42
3.3 V
GP IO1 GP OI2
GP IO1 GP IO2
22 23 24 25 26 27 28 29
30 31
Bilal Yousufi
Ruggedized Casing
RF Data Modem
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 dont 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
SW 1 SP ST D5 D1 1 1N 400 3 J1 Po wer jack 2.1 mm D3 1N 400 3 1N 400 3 1 D4 1N 400 3 C1 1u F D2 1N 400 3 U2 LP 386 90D TX-5 .0 5V D7 3.3 V 1N 400 3 U3 LP 386 90D TX-3 .3 In
Gn d
In
5V
Gn d
5V
3 + C3 10 uF R1 39 0
C2 10 uF
D6 GR EE 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)
C3 2 0.2 2uF R1 27 10 3.3 V C2 7 0.1 uF U2 8 3 4 07 5 2 VI N EN PS _GN D IN GN D TP S63 700 VR EF FB OU T SW CO MP 10 09 08 06 1 C2 9 4.7 nF L1 06 10 uH R1 28 1.2 M D1 0 DI ODE SC HO TTKY C3 0 4 x 4.7 uF 10 pF R1 30 10 0K Ve e R1 29 12 1K C3 1
PW_PA D
-12V 150mA
C2 8 10 uF
3 2
+ -
11
LM324
R1 18 4.7 K
Ve e
3.3 V 3.3 V U2 3B + 7 C1 4 1u F V2
5 6
+ -
11
LM324
R1 19 23 .7K
Ve e 3.3 V 3.3 V U2 3C + 8 C1 5 1u F V3
10 9
+ -
11
LM324
R1 20 4.7 K
Ve e 3.3 V 3.3 V U2 3D + 14 C1 6 1u F V4
+ -
11
LM324
Ve e
3.3 V
U2 4D + 14
12 13 R1 22 20 .5K
+ -
-7.7 to -11.2 V
C1 2 1u F V5
11
LM324
Ve e
Updated Timeline
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
Parts
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
183-009-213R181 MAX3232CDWR SSA-LXB525YD 73-1262-ND LT1617ES5#TRMPBF LM324M/NOPB EVW-AE4001B14 TPS63700DRCT CDRH5D18-100NC MA2SD3100L C0603C104K3RACTU GRM21BR71A106KE51L LMK212BJ475KG-TR B37931K9224K60 06031A100KAT2A C0603C472J5RACTU FH12A-36S-0.5SH
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 4.14 1.02 1.72 4.16 0.92 0.51 0.118 0.541 0.281 0.042 0.198 0.033 2.45 300 66
LT1617ES5#TRMPBFCT-ND Digikey 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 HFK36CT-ND Digikey Digikey Digikey Digikey Digikey Digikey Digikey Digikey Digikey Digikey Digikey Digikey 4pcb.com
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
Questions?