3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Arduino controlled Bluetooth-bot

Arduino controlled Bluetooth-bot
«
  • bluetooth-bot_floor_big.JPG
  • blue.JPG
  • blue2.JPG
  • 09358-01_i_ma.jpg
  • bluetooth_dongles.JPG
This instructable will show you how to convert an old toy R/C car from the thrift-store ($1.50) into a bluetooth controlled robot. To make the conversion, you will need an Arduino (any type), an L298N dual 2-amp motor-controller (or similar), and a bluetooth serial adapter from Sparkfun.com.

We will first remove all existing circuitry from the old toy and prepare it for its new brains. Then we will install the Arduino, motor-controller, and bluetooth adapter onto the top of the frame and wire everything up. Lastly, there are a few steps to complete on your computer to pair it with the bluetooth adapter on the robot. The building process is simple and straightforward, using hot-glue to secure each circuit board - which is easily removable later if desired.

To control this bot, I have assigned several keys on the keyboard to carry out various movements from the robot’s motors. By opening a terminal after pairing the Bluetooth-bot to your computer, you can send serial commands by pressing the “i” (forward), “j” (left), “k” (reverse), and “l” (right) keys to command the bot in any direction.

Here is a short video of the bluetooth-bot in action:



All parts can be purchased at Sparkfun.com, and the motor-controller can either be purchased as a shield (Ardu-moto shield), or built from scratch using the provided PCB layout files. You can download any of the files needed for this project (code and PCB files) from here:

https://sites.google.com/site/arduinorobotics/arduino-robotics/free_project

Tools needed:
  • wire stripper/snips
  • soldering iron
  • small screwdriver
  • hot-glue gun

Parts list:

This project was left over from my new book titled “Arduino Robotics” from Apress publishing. I decided to add it online for anyone to build. If you like this and want to see more Arduino based projects like it (including the Lawnbot400, ridable Seg-bot, GPS guided robo-boat, and many more), check out the book webpage:

Arduino Robtics


You can also check out some other projects that I have posted online at my website.


 
Remove these adsRemove these ads by Signing Up
 

Step 1Toy brain surgery

Toy brain surgery
«
  • blue_friends.JPG
  • tanks.JPG
  • bluetooth-bot_batteries.JPG
  • l298_sch.png
  • L298N_board.png
The PCB that came installed in the toy tank/car base had a small crystal for use with a AM radio transmitter and a few transistors to make a small H-bridge circuit for each motor. We will replace the old circuitry with an Arduino, a Bluetooth serial adapter, and an L298n dual motor-controller IC. The Arduino is reprogrammable, so you can obtain a variety of different behaviors with your bot, though I have only set up basic movement commands (fwd, rev, left, right).

First, strip the R/C car you got from the thrift-store, of all its electronic guts. This includes the motor-controller, R/C crystal, and any other PCB's installed. We will only need two wires to each motor and a set of wires to the battery compartment. The code for this project is intended for use with a "tank-steer" type robot, utilizing one motor on each side of the robot, like a tank. With bi-directional control of each motor, we can turn the robot in a circle without moving forward or reverse (called a "zero-turn radius"). This type of control is extremely effective, especially at slower speeds.

Note: You do not have to have find a toy vehicle with tank tracks, there are many R/C toys at the thrift-store that have wheels, but utilize tank steering - just make sure your vehicle has a drive motor installed on each side. I was able to find several "tracked" tank-steering vehicles at my local thrift-store, with regular visits and a few months time.


Once you remove the old electronic circuits from the toy, we will need a place to mount the Arduino board, the motor-controller PCB, and the small Bluetooth adapter (we will use the battery compartment built in to the toy). If you use an Ardumoto shield for the Arduino, you will only need a place to mount the Arduino. I used a hot-glue gun to add a small blob of glue to the top of the toy base - then mount the Arduino. Using low-temp glue will keep the Arduino securely attached, but also allow you to remove it later without damage if desired.

I designed a small PCB that uses an L298N dual motor driver IC to control (2) DC motors in either direction and with full speed control. The PCB files were created using the freeware version of Eagle CAD and can be used to build your own motor-controller. If you would not like to build your own PCB, you can buy the Ardumoto motor-controller from Sparkfun.com which uses a surface mount version of the same L298N IC (control pin reassignment may be required in the code).

Download the Eagle files for the L298N motor-controller and code for this project here:
https://sites.google.com/site/arduinorobotics/arduino-robotics/free_project


« Previous StepDownload PDFView All StepsNext Step »
26 comments
May 21, 2012. 11:26 PMR. Butch says:
I am new to all this Arduino business and I have no idea what you are really talking about. Is t possible to do this kind of thing, but putting the programming on a Macintosh MacBook. If it is, please tell me!
May 15, 2012. 4:44 PMniceguy960 says:
Hi,

I am kind of new to the robot-building-scene, but I really want to give it a try. So I want to apologize in advance for the dumb question.

But I still have one thing that I don't understand and I was hoping someone could help me out here.

Wouldn't you have to have a (java) program running on your pc in order to send the commands to the bot? or in other words, how does your pc send the info to your bluetooth transmitter?

thanks to anyone willing to help!!
Apr 30, 2012. 8:40 AMDirtyMex says:
would this work the same if it were a "walking" instead of a "driving" bot?
Apr 26, 2012. 5:48 AMmanikantak136 says:
can you please tell me whare to connect bluetooth mate gold.if i am using Sparkfun Ardumoto shield.please tell me
Feb 21, 2012. 12:23 PMDavid97 says:
Hi there, I am trying to build a rc tank with the lawnbots cade, What are the en1 and en2 connections for?
Feb 11, 2012. 8:36 PMdude44389 says:
im having trouble getting my bluetooth bot to work can please send a more detailed list of instructions so i can get mine to work I used a(n) arduino uno, bluetooth mate silver and a motor shield please respond soon
Jan 28, 2012. 6:05 PMDavid97 says:
Is that the linus line bot in tthe pics?
Jan 25, 2012. 12:19 PMnick003 says:
where do you get the tracks from
Dec 31, 2011. 2:34 AMakinich says:
hey is it possible to do this with a ps3 controller without the computer at all?
thanks in advance
akinich
Oct 15, 2011. 2:35 AMfjohn says:
hey wat u said i perfetly coorect we cannot connect the dongle to the arduino...but we can make a usb host shield do u have any idea to make and the atmega8u2 i thought that can act as a host!!!???
Oct 12, 2011. 8:43 AMfjohn says:
hey thanks anyway!!!
but i bought one of that cheap usb dongles already !i thought that i can hack to use with my arduino but it works with usb well some people say that the chip has serial connection somewhere but it is hard coz wen i looked up the website they say the chip does not exist i checked a lot of times but no use!!
so could please find a website or a way to hack those things so that i can use it with my arduino but i cannot afford to buy one usb host shield and i got an arduino uno which has a atmega8u2 which can act as a usb host but i donno how to do it as (im 13, and i dont know wat to do not femiliar with these) so i want help anyone????????????????????
Oct 12, 2011. 3:31 AMfjohn says:
hey u said that in the pic those cheap bluetooth dongle will work so how will i interferce that dongle with the arduino???any help??
Sep 11, 2011. 9:06 PMPhiltho says:
Do you happen to remember the name of this RC toy? The tracked chassis looks fantastic. It is exactly what I've been looking for to mate to an Arduino set up.

Jun 2, 2011. 6:17 PMMACKattacksnipe says:
joy stick lol and camera = RCXD
Jul 3, 2011. 1:56 PMChowmix12 says:
What is it with everyone calling a remotely controlled vehicle and RCXD?! this is just half of what the RCXD is. IT DOES NOT EXPLODE!!! RCXD = Remotely Controlled Explosive Device.
Jul 27, 2011. 8:47 AMMACKattacksnipe says:
RCNXD = remote controled NON exploding device
Jul 4, 2011. 3:06 AMshootermatic says:
Excellent post!

I've been building a bluetooth controlled tank and been having lots of problems with my bluetooth connection dropping out (using processing and OSC)

I'm using an ebay purchased bluetooth module (hong kong special) maybe thats my problem?

Anyway i might give your method a go looks very intuitive. thanks!

checkout my work in progress: http://www.taphill.com/taphill-tank
Jun 25, 2011. 8:45 AMDominion-Network says:
I have a question, how do I change the keyboard controls from what you've set them to a W.A.S.D. (W = Up, A = Left, S = Down, D = Right) configuration?
Jun 19, 2011. 12:01 PMalexandr m says:
forgive please
help please what all this in Windows
Jun 2, 2011. 1:20 PMnolan5683 says:
is the a way to control it with an android phone instead of the pda? is there an app?
Apr 30, 2011. 10:55 AMvishalapr says:
Will this USB transceiver work :
http://cgi.ebay.com/Bluetooth-Transceiver-Module-RS232-TTL-backplane-/390291743909?pt=LH_DefaultDomain_2&hash=item5adf3364a5
(My computer does have a bluetooth receiver 300 meters range)

Awaiting your reply...
This is a really cool instructable
I would love to make this...and I guess i will...
Apr 7, 2011. 4:35 PMeverywhere says:
Nice instructable, made made one lik this except controled by Xbee and a Spektrum DX5e & robot receiver and base was completely from scratch

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
86
Followers
4
Author:johndavid400
I have always been one to take things apart to figure out how they work, so most of what I own has been dismantled. If it can't be taken apart or hacked, i'd rather not have it. And I like to do thing...
more »