Laser Tag System

Team Name: Laser Tag

Team Members: Daniel Dakev, Omar Ahmed

Description

These are instructions for building a fully featured laser tag system that can be used for games with up to 10 people at the same time. The project describes how to connect all the components on two guns and program them, and how to program the server running on a Raspberry Pi. Up to 10 guns can be added following the examples below.

/media/uploads/ddakev/img_20190422_121701.jpg

Parts List

Wiring

Xbee (Raspberry Pi)

/media/uploads/ddakev/connection_diagram_bb_thumb.jpg

/media/uploads/ddakev/img_20190422_121401.jpg

Xbee (mbed)

MbedXbee
VoutVCC
p14DOUT
p13DIN
p15RST
GNDGND

uLCD

MbeduLCD HeaderuLCD Cable
VU5V5V
GndGndGnd
TX=p9RXTX
RX=p10TXRX
p11ResetReset

Accelerometer

MbedMMA8452
Vout3.3V
p6SDA
p7SCL
GndGnd

Note: there aren't enough inputs on the mbed to fit all the serial and I2C devices, so the accelerometer is placed on digital pins and I2C behavior is simulated in software

IR Transmitter

MbedIR Transmitter
VUVCC
p21CTL
TX=p28GND

IR Receiver

MbedIR Receiver
VUVCC
RX=p27OUT
GNDGND

USB Breakout

Note: The USB Mini-B breakout is used only to provide power to the board using an external powerpack.

MbedUSB Breakout
Vin, VUVCC
GNDGND

Speaker

/media/uploads/ddakev/speaker.png

Vibration Motor

/media/uploads/ddakev/vibration_motor1.png

Green LED

Connect a 300 Ohm resistor in series and connect from p22 to GND.

Red LED

Connect a 300 Ohm resistor in series and connect from p23 to GND.

Pushbutton

Connect from p12 to GND.

Setting up Xbees

To set up the Xbees to communicate with each other, each Xbee has to be configured first. This can be done on the raspberry pi using minicom. One of the Xbees that will be connected to the raspberry pi needs to be configured as coordinator and the other Xbees that are connected to the Mbeds are configured as routers.

Coordinator setup

+++
ATRE
ATMY 0
ATDL FFFF
ATCH 11

Router setup

+++
ATRE
ATMY FFFE
ATDL 0
ATCH 11

Code

Mbed guns

Import programlaser-tag

Laser tag guns code https://os.mbed.com/users/ddakev/notebook/laser-tag-system/

Raspberry Pi

Github repository

/media/uploads/ddakev/img_20190422_132854.jpg


Please log in to post comments.