MBED Robot Laser Tag

Arthur Bui, Suyash Matoli, Andres Monterrosas, Samir Vedantham (All members are in section A)

Overview

The objective of this project is to create a game between two players simulating a "laser tag" game. In order to do this, we utilized the Adafruit robot kits. They each have a pair of wheels, and we used smaller proto-boards to give better balance to the robots. We wish to control the robots using bluetooth capability via a smartphone. Using laser-pointers and photo-detectors, we can shoot and keep score. In this game, each robot has a total of three lives. The first robot to loose three lives looses the game. We have also added LEDs and sound effects to enhance the user experience while playing this laser tag simulation.

Demo Video

Pictures

Laser Pointing

Please notice the laser point at the left of the picture /media/uploads/suyash95/pic1.jpg

Note: Unlike real-life Laser Tag, we are using an actual laser instead of IR emitters. Hence, our laser 'shoots' a red dot which can be seen on the wall.

Close-up of protoboard /media/uploads/suyash95/pic2.jpg

Inside robot kit body /media/uploads/suyash95/detectors.jpg The above picture shows 8 photodetectors and 1 laser inside the robot body

Bluetooth Application /media/uploads/suyash95/screenshot_20160430-152238-1-.png The above picture shows the bluetooth application that was used to control the robot. Buttons 1, 2, 3, and 4 were unused for this project.

Supplies

Two of each of the following:

  • mbeds
  • barrel adapter
  • lasers
  • Adafruit Bluefruit LE UART Friend Bluetooth Chip
    • Bundled Mobile App
  • sd cards & readers
  • speakers
  • robot bodies
  • H-bridges
  • 2N3904 BJTs (for speakers)
  • battery holders (4 AA)
  • Smartphone

Needed several of the following

  • 4 motors
  • 4 wheels
  • 6 Green LEDs
  • 8 batteries
  • 8 100-Ohm resistors
  • 16 photodetectors

Other Supplies

  • Wires
  • Solder/Soldering Iron
  • Duct Tape
  • Cardboard
  • X-acto knife

Block Diagram

/media/uploads/suyash95/blockdiagramfinal.png

Wiring Setup

Bluetooth

MBED PinsBluetooth Module
GNDCTS, GND
Vout (3.3V)Vin
P10TXO
P9RXI

H Bridge

MBED PinsH-BridgeExternal 5V Power SupplyMotors
GNDGNDGND
VoutVCC, STDBY
VMOT+ 5V Power Supply
P22PWMA
P23PWMB
P6Ain1
P5Ain2
P7Bin1
P8Bin2
AO1, BO1+
AO2, BO2-

Speaker

MBED Pin2N3904 TransistorSpeaker
P18Base
GNDEmitter
Vout+ Terminal
Collector- Terminal

Photodetector

MBED PinPhotodetector Lead
Vout (3.3 V)Long Photodetector Lead
P28Short Photodetector Lead

Laser

MBED PinLaser
P20+
GND-

SD card Reader

MBED PinSD Card Module
D0P12
GNDGND
SCKP13
Vout(3.3V)Vcc
DIP11
CSP14

LEDs

MBED PinLEDs (Place 100 ohm resistor between LED and MBED)
P24LED1 long lead
P25LED2 long lead
P26LED3 long lead
GNDLED 1,2,3 short lead

Power Barrel

MBED PinBarrel
Vin/Vmot5V Lead (pin in the back)
GNDOther two leads on barrel adapter

Batteries

Four AA batteries are installed in the battery holder. The barrel of the battery holder is attached to the barrel adapter on the protoboard.

Source Code

Import programECE4180FinalProjectRobotLaserTag

ECE 4180 Laser Tag


Please log in to post comments.