Introduction: ROVER Bot - the Arduino Bluetooth Controlled Tank

Picture of ROVER Bot - the Arduino Bluetooth Controlled Tank

Arduino Bluetooth ROVER Robot

The Arduino ROVERBot. This post aims to present you the construction steps of a ROVER using the Arduino and a bluetooth module. To control the ROVER it was used a Android phone as RC (radio control) interface. The Android application used is the "Arduino Bluetooth RC Controller" which is available on the "Play Store". This application provides a way of control by directional buttons or via digital positioning (accelerometer) of the cell phone itself that is being used as a control device.

This is the link to the application control:

https://play.google.com/store/apps/details?id=braulio.calle.bluetoothRCcontroller&hl=pt_BR

This project is based on the "DIY Phone Controlled FPV Rover (Fast & Agile)" by ASCAS.
I would Like to thank ASCAS by this great project. So Thank you!

https://www.instructables.com/id/RoverBot-1/

Step 1: What Will You Need to Build This Project?

Picture of What Will You Need to Build This Project?

MATERIAL:

1 x Tamiya Twin Motor Gear Box - KIT;

1 x Tamiya Tank Chassis - KIT;

1 x Arduino UNO R3 or MEGA;

1 x Bluetooth Module HC-05 or compatible;

1 x Adafruit DC-Motor-Shield;

1 x Battery 11.7 V / 3500 mAh;

For more information about the controller Adafruit motor shield, visit the website below, where you can also get the library used in the project.

https://learn.adafruit.com/adafruit-motor-shield/overview

MOUNTING:

Watch the video below to know exactly how to assemble the Tamiya Gear BOX KIT.

https://www.youtube.com/watch?v=DawU7QyR_RA

Step 2: Electronics Interconnections

Picture of Electronics Interconnections

INTERCONNECTIONS

After the "Tamiya Geat Box" and "Tank Chassis" have being mounted, you can begin to start the electronics interconnection.
The diagram shows how the connections should be made. In a short description we have:

1 - Plug the Adafruit Motor Shield on Arduino;

2 - Connect the Bluetooth module: -

RX bluetooth module pin connected to the Arduino TX pin (pin 0);

TX Bluetooth module pin connected to the Arduino RX pin (pin 1);

Bluetooth GND pin connected to Arduino GND pin;

Bluetooth VCC pin connected to Arduino +5V pin;

3 - Connect the right DC-Motor to the Motor Shield (motor-1);

4 - Connect the left DC-Motor to the Motor Shield (motor-3);

Here it is worth a note:

The rotation direction should be tested. If reversed, you should revert the DC-motor wires in order to revert the rotation direction.

5 - Connect the Li-ion battery (ground and positive wire) to GND and M+ pins of Motor Shield;

Another Note: The Motor shield junper (PWR) must be closed (in this way the Arduino will be powered by the battery and also the DC-Motors.

Step 3: The Code and Library

Picture of The Code and Library

CODE

Get all files on GitHub:

https://github.com/Arduinobymyself/ArduinoRoverBot.git

The Arduino should be programmed without the bluetooth module pins (TX / RX) connected to Arduino pins 0 and 1. This would prevent the Arduino to receive the compiled data from the IDE.

If you have any problems with the files mentioned, request via email to:

arduinobymyself@gmail.com

Step 4: How It Works?

Picture of How It Works?

Overall Operation

First, power on the the Arduino ROVERBot. The bluetooth module will start blinking the red LED (indicating that it is not connected to any computer or bluetooth MASTER control);

Open the Application Control on your Android phone, initially it will be disconnected what will be indicated by a red flashing warning; When opened the application, it will asks whether you want to activate the bluetooth device or not (if it is not already enabled); answer yes; Goes to the application options menu, select the "connect" option; The available devices will appear for connection (usually the Arduino bluetooth module is called "LINVOR"), select this device. The green LED should be lit on the Arduino bluetooth module and it will appears a green indication on the application.

Ready! now the cell phone and ROVERBot are connected via bluetooth and the ROVERBot is ready to be used.

Use the arrow keys to move in the different directions allowed.

You can also use the cell phone accelerometer to control the ROVERBot (by moving the cell phone in different directions).

Now! you must just have fun with this great Rover (strong, fast and robust).

Step 5: Video and Photos

Picture of Video and Photos

Video and Photos

You could see the Rover's performance in this video: http://youtu.be/9B4_5goUybU

Comments

JoaoP143 (author)2017-04-27

Hi.

When i compile the file appear a error :

In function 'void loop()':

error: 'check' was not declared in this scope

exit status 1

'check' was not declared in this scope

Please help me, i starter doing this project about 3 month (school, work, i didn´t have time) and, now i get the last pieces and the code didn´t work

Someone can help me???
Thy :)

mp 15-22 (author)2017-03-24

hi i emailed for the complete code. I'm building a similar project. my email is dlted34@aol.com

Christian PaulJ (author)2017-03-06

i'm doing this for my project, and have followed everything every connection, but i cant get the robot to move

AmineK5 (author)2016-06-21

porfavor give code. thanks

matkiller@gmail.com

RajatB13 (author)2016-05-20

pls give code.

rajatburmankp@gmail.com

SunixDev (author)2016-05-16

Good, Thank you for the code , it helped me for mine with a l9110 h-bride , was just having to modify the code to work with it , it was easy :)

KK30 (author)2016-05-06

how to connect bluetooth after connecting motor shield on arduino.

ŞerefG (author)2016-02-25

Hi I just made it but it doesn't respond to my commands on application I'm using hc-05 bluetooth module please help thanks

samern (author)2016-02-06

Is there a way to make use of the remaining 2 motor connections with the same application? It seems that it can only handle 2 motors and no more. The idea is to put a pan/tilt camera on the rover and run the pan tilt mechanism off the same shield.

BIGDOG1971 (author)samern2016-02-17

Hi Samern,Yes I think it is possible to do it. You can run up to 4 motors on the shield.
I cannot do it for you but you must to change the code for your purposes.

Good look on your project

samern (author)BIGDOG19712016-02-17

The Arduino code is not the issue, it's the control application. However, if I can map buttons to send certain letters, I can set the Arduino to respond to those letters easily enough. I am also able to run a pair of TinySine motor controller boards and pair my phone with both using 2 apps and so control both pairs of motors independently. Thanks for the info.

rkowitz (author)2015-12-03

Will the same code work with a L298n controller

Arbot (author)2015-11-06

will there be any difference if I use a r3 official motor shield.If so can you give me circuit details and code

sbalala (author)2015-04-03

would

this work with HC-06?

aranC made it! (author)2014-12-08

I make it!

I have currently got the robot (aka "wall-e") only to make a pre-programed circles on my floor!

I Found your tutorial tremendously helpful, the code was well noted and easy to read, i love well written code. I am planing buying the Bluetooth module you mentioned And I will later installing It on my "wall-e".

This is first robot i have ever made, making it the hardest electronics project that i have ever undertook. Thanks for the Tutorial you build the exact project that i wanted to build.Making my build just that much easier.

IshanP (author)2014-11-16
BIGDOG1971 (author)IshanP2014-11-23

Hi, Not any difference in the code. You could use the same code.

IshanP (author)2014-11-16

and i am using the same geared motors but i want to make it without tamiya bcoz i will have to order it online coz it not available in india

BIGDOG1971 (author)2014-11-16

Sorry
the wrong link and phot
I used tamiya gearbox kit

http://www.ebay.com/itm/Tamiya-70097-Twin-Motor-Gearbox-Set-For-RC-DIY-Construction-Robotics-Model-Kit-/181213434721?pt=AU_Toys_Hobbies_Radio_Controlled_Vehicles&hash=item2a31299361


mschwarz11 (author)2014-11-16

What motor did you use?

BIGDOG1971 (author)mschwarz112014-11-16

I used a standard DC-Motor for 3-6 Volts with gear_box
I bought on ebay:
http://www.ebay.com/itm/Arduino-Smart-Car-Robot-Plastic-Tire-Wheel-with-DC-3-6v-Gear-Motor-for-Robot-/321546784195?pt=LH_DefaultDomain_0&hash=item4addae8dc3

mschwarz11 (author)2014-11-16

What motor did you use?

ibenkos (author)2014-10-27

Really smart idea!!! Good job, thanks for shearing :)

BIGDOG1971 (author)ibenkos2014-10-27

Thanks a lot.

Cheers!

MsSweetSatisfaction (author)2014-10-26

Awesome little robot, I love his wheel design it looks very sturdy. Thanks for sharing!

Hi Ms SweetSatisfaction,

Thanks a lot.

Feel free to send me comments, questions or problems.

Best Regards


Marcelo Moraes
arduinobymyself.blogspot.com.br
arduinobymyself@gmail.com
Skype: marcelo.moraes

EricS1 (author)2014-10-26

great ! i like it very much. think my kids would love that kind of machine, driving it through phone system. i like the look of the engine, thanks for sharing.

About This Instructable

28,227views

85favorites

License:

Bio: I am 43 years old and I live in Brazil. I am a Telecommunication / Electronics Engineer. Sixteen years acting in the industry of "Telecommunication and ... More »
More by BIGDOG1971:Arduino Propeller Message Display (POV)ARDUINO By Myself Mini-CNC (Plotter)ROVER Bot - The Arduino Bluetooth Controlled Tank
Add instructable to: