critical design review team: half n’ half

41
Critical Design Review Team: Half n’ Half Jasmine Jihyun Kim, Claire Lawson, Jason Myer, Gabriel Seitz, Kevin Sternberg, Julie Yamashita

Upload: olisa

Post on 23-Feb-2016

18 views

Category:

Documents


0 download

DESCRIPTION

Critical Design Review Team: Half n’ Half. Jasmine Jihyun Kim, Claire Lawson, Jason Myer, Gabriel Seitz, Kevin Sternberg, Julie Yamashita. CDR Outline. Project Overview ZigBee Subassembly RF Subassembly Prototype Budget Division of Labor Schedule. Project Overview. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Critical Design Review Team: Half n’ Half

Critical Design Review

Team: Half n’ HalfJasmine Jihyun Kim, Claire Lawson, Jason Myer, Gabriel Seitz, Kevin Sternberg, Julie Yamashita

Page 2: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

CDR Outline• Project Overview

• ZigBee Subassembly

• RF Subassembly

• Prototype

• Budget

• Division of Labor

• Schedule

1

Page 3: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

Project Overview• Our goal is to create a wireless system that tracks in

real-time the location and ranking of cyclists in a bike race and displays this to the spectators and each rider.

2Photo Credit: http://randy4u.blogspot.com/2007_07_01_archive.html

Page 4: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

System Block Diagram

3

Page 5: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

ZigBee BeeStackBeestack

Software that’s placed into all target boardsBeeStack architecture allows for:

Networking Components (Mesh Network)Platform Components (Hardware)

4

Page 6: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

BeeStack Protocol: IEEE 802.15.4Compliant with IEEE 802.15.4 standardIEEE 802.15.4 standard defines :

Physical Layer (PHY)Medium Access Control Layer (MAC)

5

Page 7: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

BeeStack: ZigBee Alliance Protocol

ZigBee Alliance adds the NWK, APS, AF, ZDO, ZDP layers

Allows us to set the foundation for a mesh networkAllows us to utilize the mesh network with our

custom application Network creationNetwork configurationData packet routingHandles requests and responsesSends acknowledgements

6

Page 8: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

Mesh NetworkMesh topology provides AODV (Ad hoc) routing

protocolSelf-forming (when conditions change)Self-healing (when nodes are lost)

Multihop routing capability, thus can locate multiple mobile nodes

Via Freescale MC13224v (discussed later)

7

Page 9: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

Mesh Network Bike contact time is longMesh network is capable of handling these times

8

Contact Distance

Time in Seconds (25mph, 40kph)

Time in Seconds (75mph, 120kph)

1m 0.09 0.03100m 90 30

Peloton Size (Number of Bikers)

Time per biker for 1m at 40kph in Seconds

Time per biker for 1m at 120kph in Seconds

Time per biker for 100m at 40kph in Seconds

Time per biker for 100m at 120kph in Seconds

3 0.03 0.01 30 1010 0.009 0.003 9 325 0.0036 0.0012 3.6 1.250 0.0018 0.0006 1.8 0.6

100 0.0009 0.0003 0.9 0.3

Page 10: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

ZigBee Mobile Node Will either beacon or receive data from Static Node the biker’s

rank to display onto LCD Rank position from Mobile Node to a Shift Register will use SPI

MC13224V has external SPI modules with 4 pins in SPI port (SPI_SCK, SPI_MOSI, SPI_MISO, SPI_SS)

Shift Register Serial to parallel-out since LCD is a parallel-out device 74HC595

9

Page 11: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR 10

Page 12: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

ZigBee RouterRoutes data between static nodes to coordinatorWill either relay data to the Coordinator Will relay ranking back to the Mobile Node

11

Page 13: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR 12

Page 14: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

ZigBee Coordinator Facilitates communication between mesh network and main server

Will determine and store cyclists’ location

How it works: Starts the mesh network Selects PAN ID for network

Can add and remove other nodes from network

Input: Receives raw RSSI data from mesh network via IEEE 802.15.4 transceiver

Outputs: Position data via UART

13

Page 15: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR 14

Page 16: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

System Block Diagram

15

Page 17: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

Comm: MSP430 to Laptop

16

Page 18: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

MSP430-F449Frequency – 8MHzFlash – 60KBSRAM – 2048BGPIO – 48 LCD Segments - 160

17

Page 19: Critical Design Review Team: Half n’ Half

MSP SchematicsMain board

P3.0 CSNP3.1 MOSIP3.2 MISOP3.3 CLKP1.6 CE

04/22/2023Half n' Half CDR 18

Page 20: Critical Design Review Team: Half n’ Half

MSP SchematicsInputs

04/22/2023Half n' Half CDR 19

Page 21: Critical Design Review Team: Half n’ Half

MSP SchematicsOutputs

04/22/2023Half n' Half CDR 20

Page 22: Critical Design Review Team: Half n’ Half

NRF24L01NRF24L01

Low cost single-chip 2.4GHz RF transceiver ICWorldwide license-free 2.4GHz ISM band operation1Mbps and 2Mbps on-air data-rateUltra low power consumptionOn-air compatible with all Nordic nRF24L Series in

1 and 2Mbps mode On-air compatible with Nordic nRF24E and nRF240

Series in 1Mbps mode

04/22/2023Half n' Half CDR 21

Page 23: Critical Design Review Team: Half n’ Half

RF Communication

04/22/2023Half n' Half CDR 22

IC

MiRF-v2

Page 24: Critical Design Review Team: Half n’ Half

NRF24LR SchematicsMOD-NRF24LR

P1 CEP2 CSNP3 SCKP4 MISOP5 MOSI

04/22/2023Half n' Half CDR 23

Page 25: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

UART CommunicationReceives and Transmits data between MSP430

and Coordinator/LaptopReceives position info from CoordinatorReceives bike info from Laptop

24

Page 26: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

UART Software Flow Chart

Ready Bit?

Transmit DataReceive Data

Send Ready Bit

NoYes

Initialize UART

25

Page 27: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

SPI CommunicationReceives and Transmits data between MSP430

and RF chipData can be received from several transmissions

26

Page 28: Critical Design Review Team: Half n’ Half

Half n' Half CDR

SPI Software Flow Chart

Ready Status?

Receive and Store Data

Transmit Data

Send Ready Status No

Yes

Initialize SPI

Data Read?

Send Status and Clear Register

Yes

No

Clear Register

Received?

No

Yes

04/22/2023 27

Page 29: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

Proof of Concept

28

Page 30: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

Hardware: Digi - XBee S2 • Series 2 are made for Mesh Networks• Objective: Use 3 XBee devices to read RSSI

values• 1 Coordinator and 2 Router nodes

29

Page 31: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR 30

Prototype Results

• RSSI Testing: Range -30dBm to -100dBm

• RSSI (approx) = 1/R2

• Results: As a Router increased distance from the coordinator, the RSSI value dropped

http://www.sensorsmag.com/networking-communications/asset-tracking/asset-tracking-industrial-settings%E2%80%94a-review-wireless-technol-1500

Page 32: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

XBee Downfall

• RSSI is not accurate enough to provide reliable position calculation

• XBee S2 are meant for Sensor Mesh Networks, not tracking

31

Page 33: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

Hardware: Freescale MC13224v• Can be used for ZigBee mesh networking• IEEE 802.15.4 standard compliant on-chip

transceiver/modem• Low Power• Low Cost• High Reliability• No external RF components required• μController: 32-bit ARM7TDMI-S CPU @ 26

MHz• SPI/I2C/UART 32

Page 34: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

Useful Pin Assignments

33

Pin # Pin Name Type Description Functionality9 TDO Digital I/O JTAG Test Data Output / GPIO49 JTAG debug port serial data output.10 TDI Digital I/O JTAG Test Data Input / GPIO48 JTAG debug port serial data input.11 TCK Digital I/O JTAG Test Clock Input / GPIO47 JTAG debug port clock input.12 TMS Digital I/O JTAG Test Mode Select Input / GPIO46 JTAG debug port test mode select

input.13/17 UART2/1_RTS Digital I/O UART2/1 Request to Send input /

GPIO21/17UART RTS control input

14/18 UART2/1_CTS Digital I/O UART2/1 Clear to Send output / GPIO20/16

UART CTS control output

15/19 UART2/1_RX Digital I/O UART2/1 RX data input / GPIO19/15 UART receive data input.16/20 UART2/1_TX Digital I/O UART2/1 TX data output / GPIO18/14 UART transmit data output56/57 ANT_1/2 Digital I/O Control output for external RF

component / GPIO42/43Programmable control pin.

45 VBATT Power Input

High side supply voltage to buck regulator switching MOSFET and IO buffers

Connect to battery.

Page 35: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

Hardware: Redwire Econotag• Freescale MC13234v• PCB Inverted-F Antenna• USB-A connector• Powered from USB or Battery• No Additional Hardware

34

Page 36: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

BudgetItem Name/Description Unit Price Quantity Total Amount

RedWire Econotag (Sample + Shipping) $64.75 4 $259.00

Redwire Econotag (Remainder + Shipping) $51.70 10 $517.00

Digi Xbee S2 (SparkFun) $28.75 3 $86.25

MSP430 Chip $10.00 2 $20.00

PCB Design ($33 per board + $50 Tileing) $83.00 1 $83.00

Node Stand (PVC) 1" x 5' $5.00 40 $200.00

LCD Display 20x4 5Volt (Bike) $15.00 3 $45.00

Lightweight Battery LS14500 AA 3.6V $6.00 20 $120.00

2.4GHz Duck Antenna RP-SMA WRL-00558 $11.00 2 $22.00

Workstation Processor/Display $200.00 1 $200.00

Olimex MSP430 Display Board $42.46 2 $84.92

Antenna for Olimex MSP430 Display Board $11.95 2 $23.90

Bike Module Shift Register (74HC595) from SparkFun $1.50 1 $1.50

RF Chip $4.00 2 $8.00

      $1,670.57

35

Page 37: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

Division of Labor

36

Jasmine Claire Jason Gabe Kevin Julie

Bike Module Rx-Tx System

P S P

Bike Module Algorithm

S S P P

Checkpoint System Rx-Tx System

P P S S

Checkpoint Server Algorithm

P S S P

Main Server Rx-Tx System

S P P P

Main Server Algorithm

P P S

Display Systems P

PCB Board Layout P

Page 38: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

Schedule

37

Page 39: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

MilestonesMilestone #3:

ZigBee: Mesh Network Setup and TriangulationRF: Coordinator MSP to Spectator Display

Milestone #4: ZigBee: Track multiple mobile nodesRF: Placement calculations

DEMO!Record bike race and have a video in roomSet up system out side, show audience on time

intervals

38

Page 40: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

Questions?•

39Photo Credit: http://fpafinancialplanningblog.files.wordpress.com/2011/11/question.jpg

Page 41: Critical Design Review Team: Half n’ Half

04/22/2023Half n' Half CDR

Sources• https://www.sparkfun.com/products/10415

• http://www.digi.com/support/productdetail?pid=3352

• https://www.sparkfun.com/products/8687

• http://ftp1.digi.com/support/documentation/90000976_G.pdfhttp://www.freescale.com/files/rf_if/doc/data_sheet/MC1322x.pdf

• http://www.redwirellc.com/store/node/1

• http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MC13224V

• http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=BEEKIT_WIRELESS_CONNECTIVITY_TOOLKIT

• http://www.cs.unibo.it/bononi/SRW2011/SRW2011_6.pdf

http://cache.freescale.com/files/rf_if/doc/ref_manual/BSSRM.pdf

http://www.freescale.com/files/microcontrollers/doc/brochure/PositionLocationMonitoring.pdf

http://www.circuitsathome.com/mcu/interfacing-lcd-via-spi

40