410 likes | 563 Views
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.
E N D
Critical Design ReviewTeam: 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 Half 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. Half n' Half CDR Photo Credit: http://randy4u.blogspot.com/2007_07_01_archive.html
System Block Diagram Half n' Half CDR
ZigBeeBeeStack • Beestack • Software that’s placed into all target boards • BeeStack architecture allows for: • Networking Components (Mesh Network) • Platform Components (Hardware) Half n' Half CDR
BeeStack Protocol: IEEE 802.15.4 • Compliant with IEEE 802.15.4 standard • IEEE 802.15.4 standard defines : • Physical Layer (PHY) • Medium Access Control Layer (MAC) Half 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 network • Allows us to utilize the mesh network with our custom application • Network creation • Network configuration • Data packet routing • Handles requests and responses • Sends acknowledgements Half n' Half CDR
Mesh Network • Mesh topology provides AODV (Ad hoc) routing protocol • Self-forming (when conditions change) • Self-healing (when nodes are lost) • Multihop routing capability, thus can locate multiple mobile nodes • Via Freescale MC13224v (discussed later) Half n' Half CDR
Mesh Network • Bike contact time is long • Mesh network is capable of handling these times Half 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 Half n' Half CDR
ZigBee Router • Routes data between static nodes to coordinator • Will either relay data to the Coordinator • Will relay ranking back to the Mobile Node Half 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 Half n' Half CDR
System Block Diagram Half n' Half CDR
Comm: MSP430 to Laptop Half n' Half CDR
MSP430-F449 • Frequency – 8MHz • Flash – 60KB • SRAM – 2048B • GPIO – 48 • LCD Segments - 160 Half n' Half CDR
MSP Schematics • Main board • P3.0 CSN • P3.1 MOSI • P3.2 MISO • P3.3 CLK • P1.6 CE Half n' Half CDR
MSP Schematics • Inputs Half n' Half CDR
MSP Schematics • Outputs Half n' Half CDR
NRF24L01 • NRF24L01 • Low cost single-chip 2.4GHz RF transceiver IC • Worldwide license-free 2.4GHz ISM band operation • 1Mbps and 2Mbps on-air data-rate • Ultra low power consumption • On-air compatible with all Nordic nRF24L Series in 1 and 2Mbps mode • On-air compatible with Nordic nRF24E and nRF240 Series in 1Mbps mode Half n' Half CDR
RF Communication MiRF-v2 IC Half n' Half CDR
NRF24LR Schematics • MOD-NRF24LR • P1 CE • P2 CSN • P3 SCK • P4 MISO • P5 MOSI Half n' Half CDR
UART Communication • Receives and Transmits data between MSP430 and Coordinator/Laptop • Receives position info from Coordinator • Receives bike info from Laptop Half n' Half CDR
UART Software Flow Chart Initialize UART Ready Bit? Yes No Send Ready Bit Receive Data Transmit Data Half n' Half CDR
SPI Communication • Receives and Transmits data between MSP430 and RF chip • Data can be received from several transmissions Half n' Half CDR
SPI Software Flow Chart Initialize SPI Yes Ready Status? No Send Ready Status Receive and Store Data No Transmit Data Data Read? Received? No Yes Clear Register Yes Send Status and Clear Register Half n' Half CDR
Proof of Concept Half 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 Half n' Half CDR
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 Half n' Half CDR http://www.sensorsmag.com/networking-communications/asset-tracking/asset-tracking-industrial-settings%E2%80%94a-review-wireless-technol-1500
XBee Downfall • RSSI is not accurate enough to provide reliable position calculation • XBee S2 are meant for Sensor Mesh Networks, not tracking Half 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 Half n' Half CDR
Useful Pin Assignments Half n' Half CDR
Hardware: Redwire Econotag • Freescale MC13234v • PCB Inverted-F Antenna • USB-A connector • Powered from USB or Battery • No Additional Hardware Half n' Half CDR
Budget Half n' Half CDR
Division of Labor Half n' Half CDR
Schedule Half n' Half CDR
Milestones • Milestone #3: • ZigBee: Mesh Network Setup and Triangulation • RF: Coordinator MSP to Spectator Display • Milestone #4: • ZigBee: Track multiple mobile nodes • RF: Placement calculations • DEMO! • Record bike race and have a video in room • Set up system out side, show audience on time intervals Half n' Half CDR
Questions? Half n' Half CDR Photo Credit: http://fpafinancialplanningblog.files.wordpress.com/2011/11/question.jpg
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 Half n' Half CDR