270 likes | 388 Views
Laser Tag System. Chris Mikolajeski Greg Matsura Neil Krzyske. ECE 4982 – Winter 2010 Department of Electrical and Computer Engineering University of Michigan - Dearborn Advisors: Professor Miller Professor Natarajan. Project Description. Laser Tag System
E N D
Laser Tag System Chris MikolajeskiGreg MatsuraNeil Krzyske ECE 4982 – Winter 2010 Department of Electrical and Computer Engineering University of Michigan - Dearborn Advisors: Professor Miller Professor Natarajan
Project Description • Laser Tag System • Consists of a Laser Gun, Vest and Server. • Score is automatically kept on a game server that is wirelessly updated. • The vest/gun will be battery powered. • Two vests and guns will be designed, allowing for two players. The system will be expandable up to 4 teams of 16 players.
Design Requirements • IR transmit and receive • Minimum range of 100ft • Wireless game updates • Distance over 100ft • Battery powered for up to 5 hours. • Minimum of 4 different teams • Vibration and sound feedback.
Responsibilities • Chris • IR transmission • Game feedback • Greg • Wireless Server and Communication • Computer Interface • Neil • Vest/Server integration • IR Optics • Batteries
Gun and Vest design • Transmit and receive an infrared signal between vests • Communicate with game server • Display one of 4 team colors • Display game status • Provide game feedback • Monitor battery voltage • Decided to use a dsPIC30F3011 processor • Programmed using MikroC for dsPic
Infrared Wireless • Transmit unique player ID • 64 possible players • Differentiate between sensors for scoring • Uses manchester encoding with parity bit • Dedicated processor for • Receiving • Error checking • Transmit valid data to core processor • Vishay TSAL 6100 high power IR LED • TSOP 4830 IR receiver/demodulator
Game Status and Feedback • 2x16 LCD • Game time remaining • Player Name • Tags • LEDs • Red, Green, Blue, and Yellow indicate team • White indicates tagged • Vibration motor • Physical response to being tagged • Sound • Audible responses for start game, end game, shots and tags
Server Communication • Communicate via Xbee wireless link • Receive commands from game server • Game configuration • Start/ End game • Transmits in-game data • Tags -- location and opposing player • Eliminated • Battery status
Full System Block Diagram Team Color LEDs I2C Port Expanders 2x16 LCD Hit LEDs PIC16F690 dsPIC30F3011 IR Sensors UART 1 UART 2 Xbee Wireless UART 1 PIC16F690 Sound Playback Vibration Motor IR Modulation IR LED
Wireless and Vest Integration • Integrating 3.3V 5V signal leveling • SN7404 Inverting HEX buffers • Optics considerations • Batteries
+ 5 V From Xbee To PIC + 5 V + 3.3 V + 3.3 V From PIC To Xbee SN7404 + 5 V + 3.3 V Wireless and Vest Integration SN7404
Infrared Optics • Two main ways to focus IR
Passed IR Absorbed IR Original Half-Angle of LED Transmitted Angle IR LED Barrel Infrared Optics • Decided on Angle Limiting Barrel • Cheaper, interested more in Indoor use • More customizable • Smaller and more compact to design around • How it works
θ 11.875 in. 12 in. 0.25 in. 24 in. X in. 1200 in. Infrared Optics • Design of barrel length • Design for 2ft spread at 100ft • Barrel Length = X in. , Barrel ID = 0.25 in. • Θ = tan-1(11.875/1200) = 0.567° • X = 0.125/(tan(0.567°)) = 12.63 in.
Final Battery • Decide on using NiMH • Better Energy Density • No Memory Effect • Environmentally friendly • Final Battery Pack Specs • System drawsXmA max currently • Need pack with minimum 5*X mAh rating for 5+ hrs of operation. • XmAh common battery pack type • 5-6cells per pack since need 5V or more to power • Weigh approximately 0.3 pounds
Zigbee Wireless The Zigbee (802.15.4) protocol. • Low Power • UART Xbee Module • 3.3v power supply. • 250kbs RF data rate. • 50ma current requirement.
Wireless Configuration • Latest firmware Version 10CE. • Coordinator – End Device network. • Configuration using X-CTU software. • Max range up to 300ft.
Game Server Software Design • Visual Express Studio IDE. • Microsoft .Net 2.0 Framework to access COM Ports. • Serial access and UI were designed using C# language Visual C# Studio • Able to create User Interface • Easy access to COM ports
Software Design Server Program • Multi-Threaded application. • Adjustable Baud rate, hand shaking serial port options. • Efficient score keeping. • Player options: Lives, Game Time, Shots Per Second, etc. • Easy-To-Use buttons, drop down boxes.
Test Results • IR transmission was achieved in florescent lighting at a distance over 100 feet. • Xbee wireless transmission at 100 feet, full signal strength. Error check and auto resend. • Game Server receives game data, keeps score. • Implemented feedback features in actual laser tag gun.
Conclusion Requirements Met • IR transmission/reception • Xbee Wireless transmission. • Game Server score keeping. • Successful framework. • Practiced design and implementation process. Future Work • Continued development, debugging. • Additional software features.
Acknowledgements Advisors • Professor Miller. • Professor Natarajan. Additional thanks • The UMD electronics shop.