Instructables

Arduino controlled Bluetooth-bot

Picture of Arduino controlled Bluetooth-bot
blue.JPG
blue2.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
fswan2 months ago

hey mate

was wondering, is this usable on windows at all??I have all the components but I'm not sure how to control it

love the project

eagerly awaiting your reply :)

443893 months ago
Can you use the arduino motor shield? Instead of the L293D
robotteen9 months ago
will this work with the arduino app for like apple or android devices
us24109810 months ago
Yeah does the same code work for L293D? please answer.
us24109810 months ago
Yeah does the same code work for L293D? please answer.
speak2sainow11 months ago
sir does the same code works for the L293D motor driver Ic ??
ksharma1012 months ago
sorry for the late reply,
tthe manner in which you are controlling the bot, the same manner i want to apply.. as long as the user presses i,j,k,l.. the bot should perform the same action.
the user must not press enter to feed the instructions for directions.
ksharma101 year ago
hye
will this program also work over using xbee??
also how to give continuous input for direction control without pressing enter.. pls help.. need it for project.
thnx
johndavid400 (author)  ksharma101 year ago
sure it will work over xbee, just without the pairing process used with the bluetooth... xbee is actually far easier to set up and has a far better range, but is more expensive to buy 2 xbee radios than one bluetooth adapter and a bluetooth module.

what method of control are you going for? I assume you would like to press forward once and let it go forward until you press another button?
Is there a way to use a PS3 controller (bluetooth) to control the robot? It would make it a lot easier to control the robot using a hand held controller rather than a keyboard. Please let me know.
adagio151 year ago
Hiya!
Can it work with Windows, You said that the video will explain connecting it to your PC, But it only shows using Ubuntu...
Nolan5683 asked an interesting question... Is it possible?

Thanx!
something11 year ago
How did you make the motors run as long as you pressed the button. And what terminal did you use.
can you give me the componets list for the motor controller i can't find the list anywhere,even in the arduino robotics book please
R. Butch1 year ago
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!
niceguy9601 year ago
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!!
DirtyMex1 year ago
would this work the same if it were a "walking" instead of a "driving" bot?
can you please tell me whare to connect bluetooth mate gold.if i am using Sparkfun Ardumoto shield.please tell me
David972 years ago
Hi there, I am trying to build a rc tank with the lawnbots cade, What are the en1 and en2 connections for?
dude443892 years ago
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
David972 years ago
Is that the linus line bot in tthe pics?
nick0032 years ago
where do you get the tracks from
akinich2 years ago
hey is it possible to do this with a ps3 controller without the computer at all?
thanks in advance
akinich
francisroan2 years ago
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!!!???
francisroan2 years ago
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????????????????????
johndavid400 (author)  francisroan2 years ago
when you say cheap usb dongle... do you mean the type that plugs into your computer via USB? If so, there is no way to connect to your arduino unless you have another bluetooth adapter for the first one to talk to.

One bluetooth dongle will do you no good here. As with any wireless radio connection, you need both a transmitter and a receiver to make a connection... If you cannot afford a bluetooth receiver, maybe you should try to use a less-expensive wireless connection, like Infrared.

You can use an old TV remote to send IR signals to an IR receiver (found in an old TV, VCR, or about $4 from Radio Shack), to decode the signals from the tv remote on your Arduino, then make a different movement for each button. I will post some code for this soon.
francisroan2 years ago
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??
johndavid400 (author)  francisroan2 years ago
You must use a bluetooth serial adapter (like the Bluetooth Mate Gold or similar) to act as a wireless serial link - this will connect to pins 0 and 1 of the Arduino (the rx and tx pins). You would need to connect the rx pin of Arduino (pin 0) to the tx pin of the bluetooth adapter - and the tx pin of the Arduino to the rx pin of the adapter. Then power the bluetooth adapter using the +5v and GND from the Arduino. Total, you will need 4 jumper wires to make the connections.

The cheap bluetooth dongle that you speak of, is used to plug into the computer to act as the other end of the serial link. It will send and receive bluetooth signals from the Bluetooth adapter (connected to the Arduino), just like a cell phone or hands-free headset would.

The Bluetooth Mate Gold is a bit on the pricey side, but any bluetooth serial adapter (that has rx and tx pins) should work.... some people have found units on Ebay for under $20.
Philtho2 years ago
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.

joy stick lol and camera = RCXD
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.
RCNXD = remote controled NON exploding device
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
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?
johndavid400 (author)  Dominion-Network2 years ago
check out this page:
http://www.cdrummond.qc.ca/cegep/informat/Professeurs/Alain/files/ascii.htm

You need to change the values of i,j,k, and l, in the arduino code to 119 for w, 97 for a, 115 for s, and 100 for d.

cheers,
jd
alexandr m2 years ago
forgive please
help please what all this in Windows
nolan56832 years ago
is the a way to control it with an android phone instead of the pda? is there an app?
vishalapr2 years ago
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...
johndavid400 (author)  vishalapr2 years ago
looks nice, should work just fine. Remember to connect the bluetooth module TX to Arduino RX and vice versa.
everywhere3 years ago
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

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!