team members: ruichen zhao xhoua lor jen-yuan hsiao john marion

43
Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

Upload: ethan-webb

Post on 20-Jan-2016

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

Team Members:

Ruichen ZhaoXhoua LorJen-Yuan HsiaoJohn Marion

Page 2: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion
Page 3: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion
Page 4: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

100pF

C32

100pF

C3312

Y0

100n

C14

100nC13

3.3V

GND

3.3V

GND

GND

1 2Y1

1 2Y2

100pF

C4

100pF

C5

GND

0

R30

na

R32

na

R31

0

R33

3.3V 3.3V

GND GND

GND

10uF

C37

47k

R433.3V

47nC36

S4RESET

P6.4/A4 1P6.5/A5

2P6.6/A6

3P6.7/A7 4

P7.4/A12 5P7.5/A13

6P7.6/A14

7P7.7/A15

8

P5.0/VREF+/VeREF+9P5.1/VREF-/VeREF-10

AVcc11

AVss12

P7.0/XIN13

P7.1/XOUT 14

DVss115

DVcc116

P1.0/TA0CLK/ACLK17

P1.1/TA0.018

P1.2/TA0.119

P1.3/TA0.220

P1.4/TA0.321

P1.5/TA0.422

P1.6/SMCLK23

P1.724

P2.0/TA1CLK/MCLK25

P2.1/TA1.026

P2.2/TA1.127

P2.3/TA1.228

P2.4//RTCCLK29

P2.530

P2.6/ACLK31

P2.732

P3.033

P3.134

P3.235

P3.336

DVss337

DVcc338

P3.439

P3.540

P3.641

P3.742

P4.0/TB0.043

P4.1/TB0.144

P4.2/TB0.245

P4.3/TB0.346

P4.4/TB0.447

P4.5/TB0.548

P4.6/TB0.649

P4.7/TB0CLK50

P5.4/UCB1SOMI/UCB1SCL51

P5.5/UCB1CLK/UCA1STE52

P5.6/UCA1TXD/UCA1SIMO52P5.7/UCA1RXD/UCA1SOMI54

P7.255

P7.356

P8.057P8.158

P8.259

P8.360P8.461

Vcore62

DVss263

DVcc264

P8.565

P8.666P8.767

P9.068P9.169

P9.270

P9.372

P9.4 72P9.5

73P9.6

74P9.7 75

P10.076

P10.1 77P10.2

78P10.3

79P10.4 80P10.5

81P10.6

82P10.7

83

P11.084

P11.185P11.286

DVcc487

DVss488

P5.2/XT2IN89

P5.3/XT2OUT90

TEST90

PJ.0/TDO92

PJ.1/TDI/TCLK93

PJ.2/TMS94

PJ.3/TCK95

RST96

P6.0/A197

P6.1/A1 98P6.2/A2

99P6.3/A3

100

MSP430F5xxx

IR

LED1

330

R13

Trigger

BTN

Reload

BTN

Up

BTN

Down

BTN

Left

BTN

Right

BTN

Key

BTN

GND

Trigger

Reload

Up

Down

Left

Right

Key

TriggerReloadUpDownLeftRightKey

GPS TXGPS RX

0.1uF

C20

0.1uF

C21

0.1uF

C22

0.1uF

C23

0.1uF

C24

0.1uF

C25

0.1uF

C26

P2.0P2.1P2.2P2.3P2.4P2.5P2.6P2.7

P3.0P3.1P3.2P3.3P3.4P3.5P3.6P3.7

GND

11B

22B

33B

44B

55B

66B

77B

88B

99B

10COM

118C

12 7C13

6C14

5C15

4C163C

172C

181C

U1

ULN2803

11B

22B

33B

44B

55B

66B

77B

88B

99B

10COM118C

127C

136C145C

154C

163C

17 2C18

1CU2

ULN2803

P2.0P2.1P2.2P2.3P2.4P2.5P2.6P2.7

P3.0P3.1P3.2P3.3P3.4P3.5P3.6P3.7

GND

GND

455 KHz56 KHz40 K HzGreen HRed HBlue HGreen FRed F

Blue FGreen BRed BBlue BSensor HSensor FSensor B

12345678910

11121314

JTAG

TEST

Vcore

P1.0P1.1P1.2P1.3P1.4P1.5

P1.7

RST

P4.0P4.1P4.2P4.3P4.4P4.5P4.6P4.7 P5.5

P5.4

P6.7

P7.2P7.3P7.4P7.5P7.6P7.7

P8.0P8.1P8.2P8.3P8.4P8.5P8.6P8.7

P9.0P9.1P9.2P9.3P9.4P9.5P9.6P9.7

P10.0P10.1P10.2P10.3P10.4P10.5P10.6P10.7

1234

GPS Port3.3VGPS RXGPS TXGND

12345678910111213141516

Sensor Port

455 KHz56 KHz40 K Hz

Green B

Green HRed H

3.3V

Blue HGreen FRed FBlue F

Red BBlue BSensor HSensor FSensor B

TESTVcore

P1.0P1.1P1.2P1.3P1.4P1.5P1.7

P4.0P4.1P4.2P4.3P4.4P4.5P4.6P4.7

P5.4P5.5P6.7P7.2P7.3P7.4P7.5P7.6P7.7

ACLKMCLKSMCLK

SMCLKMCLKACLK

GND3.3V5V

12345678

LCD Port

P8.3

P8.7P8.6P8.5P8.4

P8.2P8.1P8.0

12345678

RF Port3.3V

GND

P9.3P9.1P9.2P9.0

P9.4P9.5

P9.6P9.7

P10.0

P10.2P10.1

P10.3P10.4P10.5P10.6P10.7

123456789101112131415161718

Miscellaneous Port B

123456789101112131415161718192021222324

Miscellaneous Port A

Page 5: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

Free, recycled from MilesTag taggers.

Four pin control. Reset and

Enable Pins.

Page 6: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

SD2

VIN3

SS11

VCC1

SYNC5

RMAP9

RT8

AGND10

PGND13

COMP6

FB7

OUT12

IS16

PRE19

SW18

BST20

PGND14

VIN4

IS15

SW17

U1

LM25576MH

22.0uFCin

0.001uF

Cramp

0.470uF

Cbyp

0.01uFCss

0.004uF

Ccomp

0.001uF

Ccomp2

GND

GNDGND

GND

26.1K

Rcomp

0.022uF

Cboot

D122uH

L1

45.3K

Rt

GND

1.69K

Rfb2

1K

Rfb1

GND

330uFCout

12

Power Socket

GND

3.3V

Page 7: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

Global Positioning System MN5010HS SiRF Binary Protocol Standalone chip that streams 32bit XYZ

positional data.

Page 8: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

GPS Chip

I/OPorts

Page 9: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

0.1uFC4

GND

VCC

10uF

C3

VCC

GND

D1LED0

VCC

330

R6

Q1MMBT2222

GND

33nF

C1

V5Antenna 2SMD3VCC

GND

10k

R7

10k

R8

10k

R1

10k

R2

Q2BSS138

1.8V

GND

1.8V

1.8V

D2

BAS16

ONOFF 22

ANT 30

OPT1 13

OPT2 14

NMR 23

GN

D22

GN

D44

GN

D1111

GN

D2424

GN

D2727

GN

D2929

GN

D3131

BATT33

RX-I7

TX-08

1PPS9

VIO12

NAV20

U4MN5010HS

RXRX_I

TX-OTX

ONOFFNMR1PPS

VCCRX-ITX-OGND

RXTX1PPS1.8VNAV

ONOFF

OPT1OPT2NMR

OPT1 OPT2

1234

COMM

JP1

123

BRKT

JP2

Page 10: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

GPS Micro-MiniFrom Sparkfun.Note have chip as well for second revision

based on sparkfun model.○ Prebuilt version is more expensive.

Connector PortsConnect and disconnect from main board.

○ Plug and Play (kind of). Antenna

Page 11: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

Radio Frequency Communication. The radio front end uses GFSK

modulation. The channel occupies a bandwidth of

less than 1MHz at 250kbps The ANT1 and ANT2 output pins

provide a balanced RF output to the antenna Zo = 15Ω+j88Ω

Page 12: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

RF transceiver

I/OPorts

Page 13: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion
Page 14: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

CE1

CSN2

SCK3

MOSI4

MISO5

IRQ6

VDD17

VSS18

XC29

XC110

VDD_PA 11

ANT112

ANT2 13

VSS214

VDD2 15

IREF16

VSS3 17

VDD318

DVDD 19

VSS420

U1

NRF24L01

IN1

GND2

EN3

OUT 4

BP 5

U2

MIC5205

12345678

JP1

2.2u

C10

10n

C9

1n

C8

VCC

GNDGND

GND

GND

12

Q1 100pF

C2

100pF

C11M

R1

GND

2.2nC3

4.7pC4

2.7n

L2

10mHL1

3.9n

L3

GND GND

1.5p

C5

Y1

Antenna

1.0pC6

GND

22k

R2

33nC7

GND

Page 15: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion
Page 16: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion
Page 17: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

Frequency: 2.4-2.5 GHz

Gain: 3.2 dBi Impedance:

50ohm VSWR < 1.9 Polarization:

Vertical Radiation:

Omni

Page 18: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

Transceiver nRF24L01+ Module with Chip Antenna.From Sparkfun.

Connector PortsConnect and disconnect from main board.

○ Plug and Play (kind of). Resistors/Capacitors/Inductors

Biasing and Impedance Matching. Antenna

Chip antenna does not work well in use.

Page 19: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

PWM Infrared light Encodes a bit stream of data Added 455kHz communication

Page 20: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

I/OPort

I/OPort

56kHzReceiver

38kHzReceiver

455kHzReceiver

Page 21: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

Using PWM (Pulse Width Modulation) We output a fc=40, 56 or 455 kHz square wave of

the IR light wave(950 nm = 316THz). 24 periods of 1/fc for a zero, 48 periods for a 1 and

a 96 periods for a header. Each pulse is separated by 24 periods of off time.

From Vishay Documentation

Page 22: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

0 1 104 2 10

4 3 104 4 10

42

1

0

1

22

2

Xc t( )

.0004.00005 t

This is an example of a what is actually propagated through the air.

5 periods of pulsed IR.

Page 23: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

TSOP sensor has built in demodulator.All we see at the processor is a PWM signal

that represents a bit stream.Inverted signal

From Vishay Documentation

Page 24: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

Example Signal from MilesTag website. We are using this scheme scaled to our carrier frequencies. At 455kHz we can fit in over ten times the data in the same

time.

Page 25: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

Here is an example of what we generateBinary 01

○ Transmitted

○ Received

0 1

0 1

Page 26: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

From Vishay Documentation

Page 27: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

From Vishay Documentation

Page 28: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

From Vishay Documentation

Page 29: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion
Page 30: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

Isolates Microcontroller from sensors. For Tricolor LEDs and Sensors. 8 Darlington Pairs Per Package. 500mA per Darlington Pair.

Plenty of leeway Sensors max rating 200mA.

LEDs max on a pair would be 80mA.

Page 31: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

From TI Documentation

Page 32: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

Single internal Circuit With on/off modeled + Driven System model

Q1

BJT_NPN_VIRTUAL

Q2

BJT_NPN_VIRTUAL

R1

2.7k

R2

7.2k

R3

3k D1

DIODE_VIRTUAL

D2

DIODE_VIRTUAL

D3

DIODE_VIRTUAL

2

3

VCC

3.3V

J1

Key = Space

VCC

6

0

R710

VCC

3.3V

LED1

VCC

4

1

Page 33: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

1K

R1

1K

R2

1K

R3

OUT1

GN

D2

Vs3

U0TSOP7000

OUT1

GN

D2

Vs3

U1TSOP34856Jumper

Jumper

Jumper

Jumper

Jumper

Jumper

Jumper

Jumper

Jumper

Jumper

Jumper

Jumper

Jumper

Jumper

Jumper

VCC

OUT1

GN

D2

Vs3

U2TSOP34838Jumper

Jumper

Jumper

D?

LED1

D?

LED1

D?

LED1

455kHz

56kHz

38kHz

12345678910111213141516

Sensor Port2

455 KHz56 KHz40 K Hz

Green B

Green HRed H

VCC

Blue HGreen FRed FBlue F

Red BBlue BSensor HSensor FSensor B

123456789

10111213141516

Sensor Port1

455 KHz56 KHz40 K Hz

Green B

Green HRed H

VCC

Blue HGreen FRed FBlue F

Red BBlue BSensor HSensor FSensor B

Sensor H

Sensor H

Sensor H

Sensor F

Sensor B

Sensor F

Sensor B

Sensor F

Sensor B

Green H

Green F

Green B

Red H

Red F

Red B

Blue H

Blue F

Blue B

4.7uF

C0Cap

4.7uF

C1Cap

4.7uF

C2Cap

47

R1

Res1

47

R2

Res1

47

R3

Res1

VCC

Page 34: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

9 Selection bits for color of each sensor area.Red Green Blue (Any Combo!)Head, Front and Back can light differently.

○ Select with switches or Jumpers. 3 selection bits for selection of which TSOP

to use.455kHz/56kHz/38kHz.

3 inputs from sensors.Head, Front or Back.

○ Select with switches or JumpersSensors for each section in parallel.

Page 35: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

TSOPs38kHz, 56kHz and 455kHz sensors. 1 each.

Tri-Color LEDCommon Anode (changed to work with

Driver). Decoupling Capacitor

Stabilize Power to TSOP. Resistors

Current limiting for Sensors and LEDs. Ports

1 in, 1 out in parallel.

Page 36: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

TSAL6100Highly directional IR LED

TSAL driver MOSFET (optional but likely) Muzzle Flash

Standard white LED. Resistors

Current limiting for the LED. Cable

Run to main board

Page 37: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

Display (LCD) 8X2 Char. LCD or one available from lab

○ Serial Interface○ Need driver circuit.

Sound Peizo Buzzer ISD Sound Chip

Controls (Keypad/Buttons) Directional Buttons. Trigger Reload Key switch

Team color selecting LEDs Tell a player which sensors are active Tell players which team a player is aligned with. Other game specific options.

Page 38: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

Working GPS communication Sensors communicate correctly with

microcontroller Microcontroller interrupts correctly Revision 1 of PCB completed and integrated

Page 39: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

Final revision of PCB is complete Working RF link All basic functionalities complete Working on documentation Possibly working on audio feedback

If time allows

Page 40: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

Two working prototypesCommunicate with each otherHas a game play function set up

Completed documentationUser ManualTechnical Manual

Page 41: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

Part Quantity Notes PRICE TotalTSOP7000 20 455kHz $1.80 $36.00

TSOP34838 20 38kHz $1.20 $24.00TSOP34856 20 56kHz $1.20 $24.00Tricolor LEDS 23 Common Anode $1.59 $36.57MSP430 2 Samples $0.00 $0.00LCD 2 Recycled $0.00 $0.00Power Reg. Chip 2 Samples $0.00 $0.00RF Modules 2 Nordic $19.95 $39.90GPS module Prebuilt 1 Whole Module $89.95 $89.95GPS Chip 1 Chip for our module/design $39.95 $39.95TSAL6100 2 Recycled $0.00 $0.00Flash Diode 2 Recycled $0.00 $0.00ULN2803 2 2 from Sparkfun $1.95 $3.90ULN2803 2 from mouser (cheaper if we go smd) $1.35 $2.70FR-4 1 Large sheet multiple sensors $10.00 $10.00Paper for Etching 1 Might Have some $10.00 $10.00Etchant 1 John Has TOO MUCH $0.00 $0.00PCB 3 1 GPS and 2 main boards $35.00 $105.00

TOTAL $421.97

Page 42: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion

John: ProtocolsDocumentationSensor boards

○ Design & Etching

Jen-Yuan:SchematicsBoard LayoutGPS

TJ: RF interface Hardware construction

o Solderingo Wiring

Richard: Coding Protocol Practicality

Page 43: Team Members: Ruichen Zhao Xhoua Lor Jen-Yuan Hsiao John Marion