This project uses an Arduino to control a tank through a web page. The tank is driven from a control panel on a web page, that is communicated to over a WiFly. The tank uses a Parallax Ping to avoid obstacles, a servo for aiming the turret and a Tamiya tank platform for locomotion.
Why did I make this you ask? Because like everyone else I wanted to make a tank that fired lasers.
Remove these ads by
Signing UpStep 1: Parts
-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:
-Arduno
-TSL230R : http://www.sparkfun.com/products/8940
-Sparkfun TriColor LED :http://www.sparkfun.com/products/10111
















































Visit Our Store »
Go Pro Today »




What does the 1750 mAh battery connect to?
thanks,
high school sophomore
Thanks.
Thanks.
Go job In the tank!
Hi Joe, maybe if you can help with one last item. I get an compiling error message below from Servo.h
In file included from TankBot_apr07a.cpp:27: C:\Users\Ron\Downloads\arduino-1.0-windows\arduino-1.0\libraries\Servo/Servo.h:99: error: expected ',' or ';' before 'typedef' C:\Users\Ron\Downloads\arduino-1.0-windows\arduino-1.0\libraries\Servo/Servo.h:102: error: expected constructor, destructor, or type conversion before ';' token C:\Users\Ron\Downloads\arduino-1.0-windows\arduino-1.0\libraries\Servo/Servo.h:105: error: 'ServoPin_t' does not name a type
Servo.h code looks like this:
typedef struct {
uint8_t nbr :6 ; // a pin number from 0 to 63
uint8_t isActive :1 ; // true if this channel is enabled, pin not pulsed if false
} ServoPin_t ;
typedef struct {
ServoPin_t Pin;
unsigned int ticks;
} servo_t;
This is the standard servo.h file and have not seen this before. Any thoughts? Thanks, Ron
-Joe
Let me know how it goes! I just uploaded a new version of the web code and arduino code.
-Joe
On the xampp box can you tail the log file:
i.e. tail -f /var/log/httpd/error_log
Then attempt to browse the page from your ipad/laptop
Then attempt to browse the page from the xampp box (where it works already right?)
Let me know what it says.
-Joe
Not sure about tail -f var/log stuff or where to go....I have disable all the security not sure if thats the problem. It seems I need to provide privelages in the admin section to the ipad or another computer, but not sure...
Thanks!
http://www.sparkfun.com/products/321
-Joe
-Joe