laser shoot-out game

31
Laser Shoot-Out Game By Steven Noto and Laura Miller Advisor Steven Gutschlag May 2, 2000 Senior Project Final Presentation

Upload: aizza

Post on 05-Jan-2016

21 views

Category:

Documents


0 download

DESCRIPTION

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. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Laser Shoot-Out Game

Laser Shoot-Out Game

By Steven Noto and Laura Miller

Advisor Steven Gutschlag

May 2, 2000

Senior Project Final Presentation

Page 2: Laser Shoot-Out Game

Presentation Outline

Introduction, Background System Description and Completed

Hardware Software Functions and Completed

Software Results Questions

Page 3: Laser Shoot-Out Game

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

Page 4: Laser Shoot-Out Game

Project Background

Other groups that have done the project– Two groups, in 1997 and 1998– Made progress on weapon hardware and

software

Page 5: Laser Shoot-Out Game

Chris Rockhold’s 1988 Patent

ElectronicShootout Game 1988

Page 6: Laser Shoot-Out Game

System Block DiagramCentral

Controller

Display A

Weapon A

RF Link

CoaxialCable

Display B

Weapon B

RF Link

CoaxialCable

Page 7: Laser Shoot-Out Game

Central Controller

CoaxialCable

Power

Reset

Microcontroller

SerialCommunication

Unit

User Interface(buttons)

To Displays

Page 8: Laser Shoot-Out Game

Display

RF Link

CoaxialCable

Power

Ammo CountWin/Lose

Speaker

Begin Game

System Ready

Reset

SerialCommunication

Unit

User Interface(LED'S and

LCD)

SoundController

User Interface(buttons)

RF Receiver

MicrocontrollerGame Reset

Display ID

To Central Controller

From Weapon

Page 9: Laser Shoot-Out Game

WeaponRF Link

BatteryVoltage

LaserTransmitter

LaserReceiver

HammerTrigger

Low PowerLED

Weapon ID

Reset

Power On LEDUser Interface(LED'S and

LCD)

User Interface(buttons)

Microcontroller

RF Transmitter

LaserTransmitter

Laser Receiver

To Display

To Reflective Target

From Reflective Target

Page 10: Laser Shoot-Out Game

Laser Transmitter and Receiver

Microcontroller

50 kHz TTL

Oscillator

Laser

ReflectiveTarget

Photo Diode

Amplifier Current toVoltage Converter

ComparatorOn/Off KeyingDetector

Page 11: Laser Shoot-Out Game

Amplifier and OOK Output I

Output ofAmplifier

Output of On/Off KeyingCircuit

Page 12: Laser Shoot-Out Game

Amplifier and OOK Output II

Output ofAmplifier

Output of On/Off KeyingCircuit

Page 13: Laser Shoot-Out Game

Microcontroller and OOK Output

Output ofMicrocontroller

Output of On/Off KeyingCircuit

Page 14: Laser Shoot-Out Game

Hardware Progress

Completed Weapon Hardware– Laser receiver

Current to voltage converter Amplifier Comparator On/Off Keying

– Laser Transmitter AND gate Function generator

Page 15: Laser Shoot-Out Game

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!

Page 16: Laser Shoot-Out Game

How the Game is PlayedDisplay 1

Central Controller

BANG

WINNER!

Display 2

LOSER

Dr. Huggins Dr. Ahn

Page 17: Laser Shoot-Out Game

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

Page 18: Laser Shoot-Out Game

Software Progress

First step:– Learning the Keil PK51 Package

Second step:– Using the MMT-52 microcontroller board

Third step:– Writing the software

Page 19: Laser Shoot-Out Game

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

Page 20: Laser Shoot-Out Game

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!

Page 21: Laser Shoot-Out Game

dScope

Page 22: Laser Shoot-Out Game

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

Page 23: Laser Shoot-Out Game

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

Page 24: Laser Shoot-Out Game

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

Page 25: Laser Shoot-Out Game

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”

Page 26: Laser Shoot-Out Game

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

Page 27: Laser Shoot-Out Game

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

Page 28: Laser Shoot-Out Game

Questions?

ElectronicShootout Game

Page 29: Laser Shoot-Out Game

Current to Voltage Converter

LM318

+

-Vcc

Vcc

Out toAmplifier

Page 30: Laser Shoot-Out Game

Amplifier Stage

LM318

+

-

LM318

+

-Vcc

Vcc

Vcc/2

Vcc/2

In from Current toVoltage Converter

Out toComparator

Page 31: Laser Shoot-Out Game

Comparator Stage

LM318

+

-Vcc

Vcc

Vcc

In FromAmplifier