Introduction: Smartphone Controlled Arduino Tank Using Annikken Andee

Hi guys, I am Robin, one of the developers of Annikken Andee. Just a few weeks back we were invited to be a part of Arduino Day Singapore 2014. On the day of the event, we showcased a missile-firing lego-crushing smartphone controlled Tank built using our Annikken Andee.

It was a big hit with our audience and many of them have enquired on the making of the Tank. We wanted to share our Tank making knowledge with the Instructables community. So to get you in the seat of a POTENTIAL TANK COMMANDER, I am going to give a step by step guide on creating the Andee Battle Tank, or ABT in short.


Please like our Facebook page and view Video Highlights of ABT and Arduino Day Singapore 2014!


Step 1: What Do You Need?

Our ABT is built using the following parts. You can source from them from Amazon, Pololu, Aliexpress etc.
1 x Arduino Uno
1 x Pololu Zumo Robot
1 x Annikken Andee
1 x WLToys V959-19 Missile Launcher (Amazon) (Aliexpress)
1 x Smartphone (Android 4.0 and above)
(note: if you are using iOS, you will need to the get Annikken Andee for iOS)

You might/will also need to the followings to get the job done
2.54mm Row Male Pin header
2.54mm Row Female Pin header
thin insulated wire
Insulated Tape
Double sided Tape / Blu-tack / Something Sticky
Some Soldering and Desoldering work
4 x AA Batteries

Step 2: Assemble the Zumo Chassis

The base of the ABT is built using Pololu Zumo Tank kit. It is designed for Arduino Uno/Leonardo and, therefore, fits Annikken Andee perfectly well. What I like best is that the entire set up (Zumo Shield, Andee and Arduino) can be powered by 4 x AA batteries found below the chassis. This means that I do not need to mount an external battery pack to power the ABT.

In this guide I will not be mentioning much about the assembly of the Zumo Chassis as user Qtechknow has already made a comprehensive guide on Zumo Tank Assembly. You can also visit Pololu Official page for the documentation.
Just don't arm the metal plate that comes with the Zumo Kit; ABT uses speed as its defence, not armor =)

Female header for The Turret
After the Assembly, solder the 2.54 mm Female Pin Header to the pin 2 and ground hole on the Zumo Shield. We will be using Pin 2 of the Arduino to fire the missile.

Step 3: "Hack" Annikken Andee

Coincidentally, Zumo Shield and Annikken Andee both uses Pin 8 to communicate with Arduino! (Great minds think alike?)
This poses a problem for Arduino as he is unable to differentiate the source of the communication (Andee or Zumo?).
To get around this problem, we are going to do a little hack

Modify Annikken Andee

Wait, what is Annikken Andee?
Annikken Andee is a bluetooth shield that allows for easy communication between your smart phone and your Arduino. As it comes with the Andee Arduino library and the free downloadable Andee App for your smart phone, you do not need to develop the app. You can create the UI all via your Arduino codes.

There are currently a few versions of Annikken Andee

1) Classic Annikken Andee - Green Board, uses Standard Size SD Card
2) Annikken Andee 2015 - Green Board, uses micro-SD Card
3) Annikken Andee for iOS - Blue Board, uses micro-SD Card


----------------------------------------------------------------------------------

Instruction for Classic Annikken Andee

What we are doing here is to reroute the communication from pin 8 to 4. You can also try pin 1,2,3,5,6,7 if you want. But because I like pin 4, I am going to use pin 4.

Step 1) Desolder R30
R30 is a 0 Ohm resistor that you can find on the underside of Annikken Andee. Taking it out severs the connection between the leg of pin 8 and Annikken Andee.

Step 2) Connect Annikken Andee to Pin 4.
Using a piece of short wire, short-circuit the copper base which previously house the 0 Ohm resistor of R30 to the leg of pin 4. This way the communication between Andee to Arduino will be done via pin 4, and not pin 8. Check out the picture above for reference.

Step 3) call Andee.begin(4) instead of Andee.begin() in the sketch


----------------------------------------------------------------------------------

Instruction for Annikken Andee 2015
We are going to use pin 5 to communicate.

Step 1) Remove the Jumper residing on S8 and place it on S5

Step 2) call Andee.begin(5) instead of Andee.begin() in the Sketch (NOTE: Need to edit the sketch)


----------------------------------------------------------------------------------

Instruction for Annikken Andee for IOS
We are going to use pin 5 to communicate.

Step 1) Sever the link of Digital Pin 8 to Andee MCU
Use a penknife and carefully cut the link between the two plates at D8.

Step 2) Connect Annikken Andee to Pin 5
Solder the two plates onto D5.

Step 3) call Andee.begin(5) instead of Andee.begin() in the Sketch (NOTE: Need to edit the sketch)

Step 4: Turret (Missile Launcher)

WLToy's V959-19 missile turret is a rare find indeed. It was meant for their quadcopter to shoot projectiles at unsuspecting target. It can hold up to 6 missiles at any time and its missiles travel at up to 100 km/h. A direct hit from the missile can instantly decimate a T34 at its strongest point.

With lack of online documentation of this fearsome weapon, the following is my understanding based on trial and error.
The Yellow and White wires is connected to the DC motor behind the turret. As the motor rotates, it will trigger the mechanism to release a missile.The Red and Black wires will short-circuit every time the missile's release mechanism is triggered. However for simplicity sake, we are not using this 2 wires for the project.

The missile launcher's wires originally uses 1.25mm pitch header, which obviously doesn't fit the 2.54mm Pin header Arduino uses. Therefore, we need to carefully cut the 1.25mm header connected to the yellow and white wires and replace it with 1x2 2.54mm male pin headers. Just remember to insulate the exposed copper and solder with insulated tape!

What to do with the Red and Black Wires?
Since we are not using the red and black wire pair, tuck these 2 wires somewhere below the turret. We might still need them in another project. Who knows? =P

Step 5: Putting Together the Tank (がったい!)

ABT is effectively made up of 4 components. The Zumo tank, Annikken Andee, Arduino Uno/Leonardo and the turret.
With the individual components done, let us put them together!

Step 1) Mount the Annikken Andee directly onto the Zumo Shield.
Step 2) Mount the Arduino Uno/Leonardo on Annikken Andee
Step 3) Stick the Turret on top of Arduino Uno. (Use Doublesided tape/Blu-Tack)
Step 4) Connect the yellow/white pin (turret) to the Zumo Shield (pin 2 and Gnd)


There! You are done with the hardware portion of the project! Now let us move on to the software

Step 6: Final Piece to the Puzzle...

To control the tank with your smart phone, you will need an App on your phone first.
Fortunately, Annikken Andee comes with a free app that you can download from the Google Play store or Apple store for iOS.

Then, download the ABT arduino sourcecode and upload to the Arduino. Feel Free to modify / edit / be crazy with this Arduino Program!

Use the Annikken Andee App and connect to the ABT. I am sure you'll have loads of fun with ABT in your hands!

Learn more about Annikken Andee at
http://www.annikken.com/

Where can I download the latest library and firmware?
http://www.annikken.com/getstarted/

Does it work with Apple Iphone/iPad/iTouch?
Yes! But you will need to use Annikken Andee for iOS. check it out here

(After-Thought)
As you can see, we are currently using the slider UI to control the tank movement. Personally I think it will be more instinctive to have a Game Controller UI instead. After all we are controlling an AWESOME COMBAT TANK THAT SHOOTS REAL PROJECTILE!
I will make sure this happens =)

Look out for more upcoming projects on Facebook, Twitter and YouTube.

Comments

author
adamthegeneral made it! (author)2017-01-03

Hey, I made this a while ago, but here's a pic of the tank. BTW awesome project.

IMG_0205.JPG
author
Annikken (author)adamthegeneral2017-01-03

Hello Adam,

The tank looks awesome! We are glad that you enjoyed the process of making the Andee Battle tank!

Look out for more projects in the future!

author
adamthegeneral (author)2016-04-01

Hello my name is Adam and I'm 13 y.o.,

I built this a couple days ago and I have a problem:

When I try to connect the Andee to my iphone, I just get a swirling circle in the top right corner. I tried re-uploading the arduino code, still nothing. Do you know what is going on?

j

author
Annikken (author)adamthegeneral2016-04-03

Hi Adam,

Thanks for giving the tank a shot!
from your description, i know your iPhone has successfully connected to the Annikken Andee. And that's half the battle Won.
There are a few things that I need from you to better solve your trouble.
1) Which Annikken Andee are you using? (Andee U? Andee for iOS? Andee for Android 2015?)
2) Have you gone through 'Step 3 (Hack the Annikken Andee)' in the tutorial?
3) If you can, send me the source code that you are using for the Tank. You can contact me at robin@annikken.com

author
adamthegeneral (author)Annikken2016-04-04

Thanks for responding,

1) I'm using the Andee U, I got that for Christmas with a starter kit

2) Yes I have, I took the shorter pin out of S8 and put it in S5

3) OK, I'll do that right away

Thanks again,

Adam

author
Annikken made it! (author)adamthegeneral2016-04-04

Hi Adam,

Thank you for the information.
in the source code, change the "ArduinoCommunicationPin = 4" to " ... = 5"

You should see:
const int ArduinoCommunicationPin = 5;

Hopefully this should solve your problem =)
I have also fixed the Instruction in the guide.
Thank you for pointing this out!
Let me know if you have any other questions

Screen Shot 2016-04-05 at 9.49.57 am.png
author
adamthegeneral (author)Annikken2016-04-05

Yes that worked. Thanks for your help. :D

I will post pics. later.

Adam

author
Annikken (author)2015-05-10

Hi Pratyadi,

At the moment, the easiest way to control the launcher is via the DC motor. The missile are basically spring loaded. You will feel/hear a soft "click" sound when you push the missile into the barrel. The function of the DC motor is just to trigger the mechanism to release the latch holding the missile in place.

the Launcher uses a simple DC motor, therefore polarity doesn't matter here.
Yes you can simply set the digital pin to HIGH on the yellow wire and the white wire to ground to fire the missile.

author
pratyadi (author)2015-05-08

Is there a way to manually control the launcher without the DC motor?

How were the yellow and white wires connected to DC motor?

Is it possitive for yellow and ground for white? Can we just trigger it by setting the digital pin High on the yellow wire?

author
Mr AbAk (author)2015-02-27

Awesome Ible......

author
zootalaws (author)2014-11-10

So you can't upload your sketch through bluetooth?

author
Ai.Chill.Iu.Sacher (author)2014-10-10

Hey man! Awesome instructable! I didn't make the tank, just wanted to know how to wire this missile launcher, after long researches I found this, finally! So thank you very much :D
Just a little question: is there any way to slow down the firing? If I connect the yellow/white wires to 3.3V and a button, as soon as I shortly press the button it fires at least 3 missiles...that motor is so fast =/

author

Hi,
thank you for your kind words!
As this missile launcher works by simply rotating the motor, of hand i can think of these few methods.

1) tap the button instead of pressing. hopefully this will reduce the contact time and

2) add a resistor. hopefully the reduced voltage can slow the motor down

3) use an arduino. the button press will send an interrupt to the arduino. in the interrupt, create a short pulse (~50ms) to fire the missile.
http://arduino.cc/en/Reference/attachInterrupt

author

I want to use it on a quadcopter remotely controlled, I'll try the second solution, thanks a lot! :D

author
Annikken (author)2014-05-25

@zhangzy: thanks! Yup, Andee is a great solution for tinkerers like yourself to integrate smartphone with hardware projects. I am certain that you will like it. The missile? i manage to get it from aliexpress at US$8 (free shipping). Wait what? you manage to get the missile launcher set at US$2? *ouch* >.< ORZ

@Enjoying Electronics: Really?! what a coincidence! Time to update your wallpaper with this new one :P
PS: the hack on the 9g servo is pretty interesting, will try it out =)

@jueljp: BEST TANK EVERRR!!

author
zhangzy (author)2014-05-23

Nice Job! I've always wanted to control my arduino via smartphones, but have difficulty learning the programming. Annikken Andee seems to be a nice solution to my problem. Love your humor about the missile~ BTW, how much did you get the missile? it's surprisingly cheap in China, only 2 dollars.

author
HavocRC (author)2014-05-22

DUDE that epic picture (without the tank :) is my desktop background!!! How funny!

Anyways this is awesome! Very neat!

author
jueljp (author)2014-05-22

best tank eveerrrr

About This Instructable

24,799views

222favorites

License:

More by Annikken:Give a New Life to Your RC Toy CarAndee Sentry Gun with Annikken AndeeAnnikken Andee MP3 Player - Play your music on Arduino via Smart phone
Add instructable to: