Summary of TankWars: A Physical Video Game using Arduino
TankWars is a web-based game where an iPad controls a real robot tank to fire lasers at a target robot. Both the tank and target use Arduino boards with WiFly modules, while a PHP page manages commands and status updates. The system features improved object detection with front and rear sensors and uses RC car power solutions for sustained operation.
Parts used in TankWars:
- Tamiya Dual Motor Gearbox
- Tamiya Tank Treads
- Universal Mounting Platform
- Arduino Uno
- Arduino Motor Shield
- Sparkfun ProtoScrew Shield
- Laser Pointer
- Parallax Ping Sensor
- Mini Servo
- Nuts, Bolts, Standoffs, Plexiglass
- Dynamite Prophet Sport II Charger
- Dynamite 7.2v Battery
- WiFly RN-XV Module
- XBee Breakout
- Xbee Shield
- Solar Panel
- Toy Robot
- Sparkfun TriColor LED
This instructable will show the game TankWars, a web based game played on an iPad that drives a real robot tank to fire lasers at a robot. When you hit the robot target, the game is updated.
The tank and the target are Arduino’s equipped with RN-XV WiFly modules, the iPad is using a PHP page to send commands to the tank and read the status of the target.

Robots, tanks and lasers, what more do you need?
This is an improved version of my last instructable, which was a much more basic version. Check that out here: http://www.instructables.com/id/Tankbot-Internet-Controlled-Tank-Robot/
Step 1: Parts
For the tank you will need:
-Tamiya Dual Motor Gearbox: http://www.sparkfun.com/products/319
-Tamiya Tank Treads: http://www.sparkfun.com/products/321
-Universal Mounting Platform: http://www.sparkfun.com/products/10016
-Arduino Uno
-Arduino Motor Shield
-Sparkfun ProtoScrew Shield: http://www.sparkfun.com/products/9729
-Laser Pointer
-Parallax Ping: www.parallax.com/tabid/768/ProductID/92/Default.aspx
-Mini Servo: http://www.hitecrcd.com/products/analog/micro-mini/hs-55.html
-Nuts, Bolts, Standoffs, Plexiglass
-Dynamite Prophet Sport II : http://www.dynamiterc.com/Products/Default.aspx?ProdID=DYN4063
-Dynamite 7.2v Battery: http://www.dynamiterc.com/Products/Default.aspx?ProdID=DYN1466
-WiFly RN-XV : http://www.sparkfun.com/products/10822
-XBee Breakout: http://www.sparkfun.com/products/8276
For the target you will need:
-Arduino
-WiFly RN-XV : http://www.sparkfun.com/products/10822
-XBee Shield : http://www.sparkfun.com/products/9976
-Solar Panel: http://www.radioshack.com/product/index.jsp?productId=12609998
-Toy Robot
-Sparkfun TriColor LED :http://www.sparkfun.com/products/10111
Step 2: Tank Build
One of the failings of version 1 of the tankbot was that it was missing an object sensor in the rear. This version has Parallax Ping sensors front and rear.
You will need to assemble the following:
-Gear Box
-Tank Treads
-Universal Platform.
I used nuts and bolts to create a platform above this for the Arduino, Servo and PING.
I copied the dimensions of the Universal Plate set for the plexi glass second platform.
The laser pointer can be attached to the servo horn.

But what was really tricky for me, the Arduino Motor Shield uses up a ton of pins, but you cannot see it quickly as it is wired internally. I found it helpful to just quick sketch it out.
Step 3: Tank Power
The tank motors require a lot of power and I did not want to wear down AA batteries or 9v’s that quickly. The RC car community has spent a good bit of time figuring out small power. So I picked up a Dynamite 7.2v 1750mah battery and Dynamite Sport II charger.
Then used a plug to connect to the motorshield’s screw terminal.
-Tamiya Dual Motor Gearbox: http
-Tamiya Tank Treads
-Universal Mounting Platform
-Arduino Uno
-Arduino Motor Shield
For the target you will need:
-Arduino
-WiFly RN-XV
-XBee Shield
-Solar Panel
productId=12609998
-Toy Robot
-Sparkfun TriColor LED
For more detail: TankWars: A Physical Video Game using Arduino
-
What is TankWars?
It is a web-based game played on an iPad that drives a real robot tank to fire lasers at a robot target. -
How does the game update when the target is hit?
The game updates by using a PHP page to send commands to the tank and read the status of the target via WiFly modules. -
What sensors are used in the tank build?
This version uses Parallax Ping sensors located both front and rear to detect objects. -
How is the laser pointer attached to the tank?
The laser pointer is attached directly to the servo horn. -
Why was a Dynamite battery chosen for the project?
A Dynamite 7.2v battery was chosen because AA or 9v batteries would wear down too quickly for the tank motors. -
What components make up the target robot?
The target consists of an Arduino, WiFly RN-XV, XBee Shield, Solar Panel, Toy Robot, and Sparkfun TriColor LED. -
Can this project be controlled via a web browser?
Yes, the game is web-based and utilizes a PHP page to manage communication between the iPad and the robots.
