loading

Smartphone controlled Arduino tank using Annikken Andee

Featured

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!


 
Remove these adsRemove these ads by Signing Up

Step 1: What do you need?

Picture of What do you need?
20140411_094848.jpg

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

Picture of Assemble the Zumo Chassis
tank.jpg
20140410_160540.jpg

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

Picture of
20140410_164125.jpg
IMG_0288.jpg
IMG_0286.jpg
IMG_0287.jpg

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) There is no step 2


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

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 4: Turret (Missile Launcher)

Picture of Turret (Missile Launcher)
IMG_4289.JPG

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...

Picture of Final Piece to the Puzzle...
Screenshot_2014-04-11-09-54-29 2.png
Screenshot_2014-04-11-09-52-48.png
Screenshot_2014-04-11-09-55-24.png
20140411_105915.jpg

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.

Annikken (author) 2 months ago

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.

pratyadi2 months ago

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?

Mr AbAk5 months ago
Awesome Ible......
zootalaws8 months ago

So you can't upload your sketch through bluetooth?

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 =/

Annikken (author)  Ai.Chill.Iu.Sacher9 months ago
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
I want to use it on a quadcopter remotely controlled, I'll try the second solution, thanks a lot! :D
Annikken (author) 1 year ago

@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!!

zhangzy1 year ago

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.

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

Anyways this is awesome! Very neat!

jueljp1 year ago

best tank eveerrrr