Laser Shoot-Out Game

Post on 05-Jan-2016

21 views 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 of Laser Shoot-Out Game

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

ElectronicShootout Game 1988

System Block DiagramCentral

Controller

Display A

Weapon A

RF Link

CoaxialCable

Display B

Weapon B

RF Link

CoaxialCable

Central Controller

CoaxialCable

Power

Reset

Microcontroller

SerialCommunication

Unit

User Interface(buttons)

To Displays

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

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

Laser Transmitter and Receiver

Microcontroller

50 kHz TTL

Oscillator

Laser

ReflectiveTarget

Photo Diode

Amplifier Current toVoltage Converter

ComparatorOn/Off KeyingDetector

Amplifier and OOK Output I

Output ofAmplifier

Output of On/Off KeyingCircuit

Amplifier and OOK Output II

Output ofAmplifier

Output of On/Off KeyingCircuit

Microcontroller and OOK Output

Output ofMicrocontroller

Output of On/Off KeyingCircuit

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 PlayedDisplay 1

Central Controller

BANG

WINNER!

Display 2

LOSER

Dr. Huggins 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 features-

A 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?

ElectronicShootout Game

Current to Voltage Converter

LM318

+

-Vcc

Vcc

Out toAmplifier

Amplifier Stage

LM318

+

-

LM318

+

-Vcc

Vcc

Vcc/2

Vcc/2

In from Current toVoltage Converter

Out toComparator

Comparator Stage

LM318

+

-Vcc

Vcc

Vcc

In FromAmplifier