310 likes | 450 Views
Laser Shoot-Out Game. By Steven Noto and Laura Miller Advisor Steven Gutschlag May 2, 2000. Senior Project Final Presentation. Introduction, Background System Description and Completed Hardware Software Functions and Completed Software Results Questions. Presentation Outline.
E N D
Laser Shoot-Out Game By Steven Noto and Laura Miller Advisor Steven Gutschlag May 2, 2000 Senior Project Final Presentation
Introduction, Background System Description and Completed Hardware Software Functions and Completed Software Results Questions Presentation Outline
Project Introduction • Laser "shootout" game • Based on fabled “Old West” gunfights • Two players with handheld weapons face off • Wait for "Draw!" signal and start shooting • First to score a hit within 6 shots wins
Project Background • Other groups that have done the project • Two groups, in 1997 and 1998 • Made progress on weapon hardware and software
Chris Rockhold’s 1988 Patent Electronic Shootout Game 1988
Laser Transmitter and Receiver 50 kHz TTL Oscillator Reflective Target Microcontroller Laser Photo Diode On/Off Keying Detector Current to Voltage Converter Comparator Amplifier
Amplifier and OOK Output I Output of On/Off Keying Circuit Output of Amplifier
Amplifier and OOK Output II Output of On/Off Keying Circuit Output of Amplifier
Microcontroller and OOK Output Output of Microcontroller Output of On/Off Keying Circuit
Hardware Progress • Completed Weapon Hardware • Laser receiver • Current to voltage converter • Amplifier • Comparator • On/Off Keying • Laser Transmitter • AND gate • Function generator
Functional Description • Sample game walkthrough: • A “referee” starts the game at the central controller • Both players press “ready” buttons on their weapons • Display boards show a countdown • After the “Draw!” signal, the first player to score a hit within 6 shots wins!
How the Game is Played Display 1 Display 2 BANG WINNER! LOSER Dr. Huggins Dr. Ahn Central Controller
Project Software Overview • Central Controller: • Must control game and watch for victory conditions • Display Boards: • Must display ammo count and win/loss • Weapons: • Must transmit laser signal, receive the reflection, and determine if a hit was made
Software Progress • First step: • Learning the Keil PK51 Package • Second step: • Using the MMT-52 microcontroller board • Third step: • Writing the software
Keil Software I • First step: Keil PK51 Package • uVision Compiler/Assembler • Assembly and C code • Projects and single file programs • Debugging support • Tutorial and sample programs • Good documentation, so-so help files
Keil Software II • Keil PK51 Package, continued • dScope Simulator/Monitor Interface • Simulates 805X and runs with Mon51 • Good debug interface • Many new features- A big step up from RChipSim!
Testing Evaluation Board • Second step: MMT Microcontroller • MMT-52 Evaluation Board • 80C52 microprocessor • Mon51 monitor • 82C55 input/output chip • 7-bit DIP switch • MMT-EXP Expansion Board • A/D, D/A, LCD, serial ports • Not used in this project
Comparison: EMAC vs. MMT • EMAC 80C535 • Built-in LCD and keypad • Limited access to ports • More interrupts and timers available • MMT-52 • LCD and keypad available as expansions • 82C55 provides easy data I/O • Can be programmed solely in C
Writing the Software • Third step: Let’s write some software! • Test programs: • 82C55 for input/output • DIP switches for weapon ID input • Push-buttons for trigger, etc • Interrupts for weapon-to-display communication
Weapon Software • Weapon software: • Used the MMT-52 board • Written in C code • Laser interface routine • Shift data out serially • Wait for data in • User interface • “Wireless link”
Display Software • Display software: • EMAC board, for built-in LCD • C code with some assembly functions • Interrupt routine for communication from the weapon • Running Keil with two microcontrollers • Mon51 driver copied and renamed • Both COM ports used
Results • Completed the hardware and software for the weapon and display board • Learned that LM318’s used as amplifiers can easily become oscillators • Learned the Keil PK51 package • Built a foundation for using the MMT 8052 board in future projects
Questions? Electronic Shootout Game