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
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
Inside robot kit body The above picture shows 8 photodetectors and 1 laser inside the robot body
Bluetooth Application 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
Wiring Setup
Bluetooth
MBED Pins | Bluetooth Module |
---|---|
GND | CTS, GND |
Vout (3.3V) | Vin |
P10 | TXO |
P9 | RXI |
H Bridge
MBED Pins | H-Bridge | External 5V Power Supply | Motors |
---|---|---|---|
GND | GND | GND | |
Vout | VCC, STDBY | ||
VMOT | + 5V Power Supply | ||
P22 | PWMA | ||
P23 | PWMB | ||
P6 | Ain1 | ||
P5 | Ain2 | ||
P7 | Bin1 | ||
P8 | Bin2 | ||
AO1, BO1 | + | ||
AO2, BO2 | - |
Speaker
MBED Pin | 2N3904 Transistor | Speaker |
---|---|---|
P18 | Base | |
GND | Emitter | |
Vout | + Terminal | |
Collector | - Terminal |
Photodetector
MBED Pin | Photodetector Lead |
---|---|
Vout (3.3 V) | Long Photodetector Lead |
P28 | Short Photodetector Lead |
Laser
MBED Pin | Laser |
---|---|
P20 | + |
GND | - |
SD card Reader
MBED Pin | SD Card Module |
---|---|
D0 | P12 |
GND | GND |
SCK | P13 |
Vout(3.3V) | Vcc |
DI | P11 |
CS | P14 |
LEDs
MBED Pin | LEDs (Place 100 ohm resistor between LED and MBED) |
---|---|
P24 | LED1 long lead |
P25 | LED2 long lead |
P26 | LED3 long lead |
GND | LED 1,2,3 short lead |
Power Barrel
MBED Pin | Barrel |
---|---|
Vin/Vmot | 5V Lead (pin in the back) |
GND | Other 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.