PowerPoint 97

Download Report

Transcript PowerPoint 97

Laser Shoot-Out Game
By Steven Noto and Laura Miller
Advisor Steven Gutschlag
May 2, 2000
Senior Project Final Presentation
Presentation Outline
 Introduction,
Background
 System Description and Completed
Hardware
 Software Functions and Completed
Software
 Results
 Questions
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
System Block Diagram
Coaxial
Cable
Central
Controller
Coaxial
Cable
Display A
Display B
RF Link
RF Link
Weapon A
Weapon B
Central Controller
Microcontroller
To Displays
Coaxial
Cable
Serial
Communication
Unit
Power
Reset
User Interface
(buttons)
Display
To Central Controller
Coaxial
Cable
Power
Reset
Game Reset
Display ID
RF Link
From Weapon
Serial
Communication
Unit
User Interface
(LED'S and
LCD)
System Ready
Ammo Count
Win/Lose
Begin Game
Sound
Controller
Speaker
User Interface
(buttons)
Microcontroller
RF Receiver
Weapon
RF Link
RF Transmitter
User Interface
(LED'S and
LCD)
Reset
Trigger
Hammer
Weapon ID
Battery
Voltage
From Reflective Target
Laser
Receiver
To Display
Power On LED
Low Power
LED
User Interface
(buttons)
Microcontroller
Laser Receiver
To Reflective Target
Laser
Transmitter
Laser
Transmitter
Laser Transmitter and Receiver
50 kHz TTL
Reflective
Target
Oscillator
Laser
Microcontroller
Photo
Diode
On/Off
Keying
Detector
Comparator
Amplifier
Current to
Voltage
Converter
Output of
On/Off Keying
Circuit
Amplifier and OOK Output I
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!
Dr. Huggins
LOSER
Central Controller
Dr. Ahn
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 featuresA big step up from RChipSim!
dScope
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
Current to Voltage Converter
Vcc
Vcc
+
LM318
-
Out to
Amplifier
Amplifier Stage
In from Current to
Voltage Converter
-
Vcc/2
+
LM318
+
Vcc
LM318
Vcc/2
Vcc
Out to
Comparator
Comparator Stage
Vcc
Vcc
Vcc
+
LM318
In From
Amplifier