loading

I build this tank to learn how to programme, how motors, servos, bluetooth and arduino works and i build one with making researchs from internet. Now i decided to make my own instructables, for people who needs to help about build an arduino tank.

Here is the video: Arduino + Bluetooth controlled Tank


Basicly system works like;

Bluetooth sends data from phone(with ArduinoRC application, numbers or characters can be send as data to hc06 )to arduino and arduino starts servo and motors for the data.

Step 1: Things You Need

  • 1x arduino uno r3

  • 1x arduino uno motor driver shield

  • 2x 180 rotation micro servos
  • 1x Tamiya tank tracks
  • 1x Tamiya universal plate set
  • 1xTamiya twin motor gear box X1
  • 1x PowerBank (mine is 10400mAh it can change)
  • 1x HC 06 bluetooth module about 2.5 cm circuit board spacer( you can find it from old circuits or pc)
  • Some wire
  • More than 2 male and female header pin connector
  • Soldering iron
  • Hot glue gun ,hot silicone gun (same thing)
  • Soldering wire
  • Circuit board
  • usb cable
  • android phone
  • straw

Step 2: After You Build Your Tanks Body

after you build the tamiya set solder some wires on your motors. and screw your arduino into the spacers as shown.

plug your motor driver correctly into your arduino and solder two female head pin connector to pin 0(rx) and 1 (tx).

make the motor connections to the motor driver

Step 3: Tanks Barrel

with some hot silicone glue two servos as shown in photos. connect the servos to the motor shield.

ground servo goes to SER1

up and down servo goes to SER2

Step 4: Battery

Cut two small piece of circuirt board for your powerbank and glue it to the battery. as shown

Cut your usb cable and solder it to the motor shields 5v and ground. MAKE SURE YOU ARE SOLDERING CORRECTLY. (vcc to vcc ground to ground)

Step 5: Bluetooth Connection

Cut your Male and female header pin connectors male side and solder it to the 5v and ground to the motor shield.

for me green is VCC red is GND

  • NOTE: WHILE YOU UPLOADING THE CODE MAKE SURE THAT YOUR BLUETOOTH IS NOT CONNECTED ARDUINO ANYWAY.

Connect;

  • arduino's rx to hc 06's tx
  • arduino's tx to hc 06's rx

Step 6: Glue the PowerBank

Put some hot glue on the circuit boards and glue it to the arduino. Test your arduino with plugging the usb to the powerbank(make sure your powerbank is open or charged).

Also if you want you can glue another circuit board for your bluetooth module its too easy and more beautiful

Step 7: Uploading the Code

Download the code and upload it to your arduino.

  • Small notes:

sayac means counter in Turkish

durum is status

Servo sagsol;
Servo yukari;

these are also;

Servo rightleft;

Servo up;

  • CODE HAS A PROBLEM ABOUT THE BARREL IF YOU SOLVE IT PLEASE WRITE IT TO THE COMMENTS!!!

for example;

<p>if(durum == '5'){<br>         
while(durum == '5'){

sayac++;
if(sayac>180)
{
sagsol.write(180);
}
if(sayac<0)
{
sagsol.write(0);
}
delay(50);

sagsol.write(sayac);
break;

}
}</p>
  • It keeps counting while you press another button in your phone and int gets bigger,

can we limit the integer if we can please write it to the comments.

limit like 0 to 180.

Step 8: Adding the Straw As Barrel

Cut the straw before the twisted part and put it into the servo

Step 9: Using the Android

Download the ArduinoRC app in google play https://play.google.com/store/apps/details?id=eu.j...

power your tank

open the application

press process

press HC 06 device

wait...

when arduino is connected to phone bluetooth module stops blinking

open controller mode

make your settings these are mine settings. it can change if you connected wrong motor cables to the motor shield but changing the numbers or code you can get the true one.

Step 10: You Are Ready to Go

As i know hc06 works between 3.6-6 v and yes i just hooked it up
<p>the bluetooth hc06 module works on 3.3 V and the arduino uno on 5.5V you seem to hooked it straight witthout adding any type of resistors right? </p>
<p>Cool. Attach a cell phone with video chat to the front of it and you have a remote tele-presence robot.</p>

About This Instructable

4,045views

69favorites

License:

Bio: Maker, archer.
More by Kaganaltas:DIY Harry Potter Theme Wand Arduino + Bluetooth controlled Tank  
Add instructable to: