Sean McCormick
Published © GPL3+

Leap Motion Laser Tanks!

Use the Leap Motion to control tanks armed with Infrared LEDs and Infrared Sensors to do battle.

IntermediateFull instructions provided7,722
Leap Motion Laser Tanks!

Things used in this project

Hardware components

Infrared LED
×1
Infrared Receiver
×1
Arduino UNO & Genuino UNO
Arduino UNO & Genuino UNO
×1
Raspberry Pi 2 Model B
Raspberry Pi 2 Model B
×1
RF24 Module
×1
LED-RGB-Common Cathode
×1
L293D Integrated Circuit motor driver
×1
Breadboard (generic)
Breadboard (generic)
×1
Jumper wires (generic)
Jumper wires (generic)
×1
Battery Holder
×1
AA Batteries
AA Batteries
Rechargable NiMH Batteries
×1
Lego Bricks
×1
Ball Caster Metal - 3/8"
×1
Leap Motion Controller
Leap Motion Controller
×1

Story

Read more

Schematics

Tank Weapon

Using a Infrared LED, the tank shoots "codes" that the other tanks identify as hits.
Tankirled bb

Tank Armor Basic

Using a single Infrared Sensor, the tank is able to detect when infrared signals come from opposing tanks and register them as hits
Tankirsensor1 bb

Tank Armor Advanced

Using 4 infrared sensors, daisy chained together with a simple AND gate integrated circuit (74HCT21), a Tank is able to identify infrared signals from opposing Tank's LED as hits from 360 degrees around it.
Tankquadandir bb

Tank Heads Up Display

Using a RGB LED, the Tank identifies its current status (how many hits it has taken) by changing the color of the LED. Also, the tank changes the color of the LED to Green for each shot it fires.
Tankled bb

Tank Propulsion

Using a L293D integrated circuit, and some simple DC motors, the tank is able to move forward, backward and turn left or right.
Tankmotorsl293d bb

Tank Communications

Using a simple and inexpensive RF24 transciever, the tank is able to communicate and receive commands from the operator.
Tankrf24arduino bb

Communication Command Center

Using a Raspberry Pi2, a simple and inexpensive RF24 transciever, and Node JS, the Operator is able to communicate to each tank via REST API calls.
Tankrf24raspberry bb

Code

Laser Tanks Github

All the custom code files for the Leap Motion Laser Tanks project

Credits

Sean McCormick

Sean McCormick

5 projects • 24 followers
20+ year software engineer. #Learn, #Make, #Help
Contact

Comments