Pages: [1] 2   Go Down
Author Topic: Remote control Arduino Tank  (Read 2196 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi everyone!  I am trying to make a xBee Arduino tank.  There is plenty of code online that will work for me, but the problem is that I don't know how to connect the xBee to Arduino.  I found some code here:http://www.projectallusion.com/1/post/2009/11/iphone-controlled-solar-powered-arduino-tank.html  that I can adapt, but of corse they don't tell you how they connect the xBee.  Also the project I just linked to uses a xBee, but I was planning on using a xBee pro for added range http://www.sparkfun.com/products/8742.  

Thanks in advance,
sviv

Ps. I was planning on having two xBees, one for my computer and one for the tank.  I would then be
able to send serial commands from the computer to Arduino.

Clarification: The tank is remote controlled.  I plan on using the xBee radieos to send serial commands to the robot that will in turn tell the Ardumoto shield (motor controller) to move in the right direction.
« Last Edit: July 29, 2011, 09:10:41 am by sviv » Logged

ottawa, canada
Offline Offline
God Member
*****
Karma: 5
Posts: 989
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Do you mean literally how to connect the xbee hardware? Do you have the xbee adapters?
Logged

ottawa, canada
Offline Offline
God Member
*****
Karma: 5
Posts: 989
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The first pic in this thread shows the xbee with adapter on top of a carbot that steers like a tank - maybe this will help.

Hardware wise the xbee just wants poer and ground then its tx goes to arduino rx and vice versa.

Tell me if i'm nOt understanding your question and i'll try again.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for your quick answer,
I do not have the xBee yet because I did not want to buy it till I knew it would work.  The Rx and Tx make sense, but I am not sure if it will work with the code on the page I linked to.  Do you see any clues in the code as to how the xBee is hooked up?  I have no experience with xBee and I just want to make sure it will work with that code.

Also, the xBee that I want http://www.sparkfun.com/products/8742 has many pins.  Which one is Tx, Rx, etc.

Thanks,
sviv
« Last Edit: July 28, 2011, 01:59:58 pm by sviv » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The first pic in this thread shows the xbee with adapter on top of a carbot that steers like a tank.

Thanks, I think this solved my problem!  If I have other problems I will continue to post to this thred.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok every one,
Thanks for your help, but after calculating the price of an xBee system (2 xBees, xBee explorer, USB xBee explorer) I found that it will cost over $100 for the xBee system alone!  I can get a 6 channel fm transmitter and receiver on eBay for about $30 http://cgi.ebay.com/6CH-72Mhz-RC-FM-Heli-Airplane-Fly-Transmitter-Receiver-/250853466218?pt=Radio_Control_Parts_Accessories&hash=item3a6808206a#ht_2855wt_983.  I know there are some rc people on this form that can help me with hardware and code.  I just want to control a tank drive system (2 motors, one for each tred) with the rc controller. How would I wire up the rc receiver to the Arduino?  How would I code it to work with the Ardumoto motor controller shield (http://www.robotshop.com/sfe-ardumoto-motor-shield-arduino.html?utm_source=google&utm_medium=base&utm_campaign=jos)?
« Last Edit: July 29, 2011, 09:08:15 am by sviv » Logged

ottawa, canada
Offline Offline
God Member
*****
Karma: 5
Posts: 989
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

granted the xbees are expensive.  i don't know how practical it would be to use the rc stuff to drive arduino.
Logged

0
Offline Offline
Tesla Member
***
Karma: 114
Posts: 8919
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You may want to consider connecting the arduino to the rc transmitter instead of the receiver.
Logged

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

Corryton, TN, USA
Offline Offline
Newbie
*
Karma: 0
Posts: 17
Arduino Rocks!
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm an RC guy, admit though not very experienced with Arduino.
IMHO, I would just buy a tank, but if you are looking for a project, then this may work.  xBees, hardware wise are very easy to connect.  I have not personally used them, but they are very easy to physically connect.  Code wise, IDK anything about it.  I too wanted to build an RC car, although the Arduino would control taillights/headlighs/speedometer.  It just costs too much.  It is easier to just buy a name brand one and mod it from there.  Or, but a cheap one and arduino it.
Just my $0.2...
Logged

--Corrytonapple----
Typed while running Debian on Recycled Electrons

0
Offline Offline
Tesla Member
***
Karma: 114
Posts: 8919
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You might consider skipping the xbee/rc route and make some type of routerbot setup similar to below.

http://www.lynxmotion.net/viewtopic.php?f=20&t=6343
Logged

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

Topsham, Vermont USA
Offline Offline
Edison Member
*
Karma: 23
Posts: 1759
... in The Woods In Vermont
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, I've been surprised at the cost of XBee also.  Just seems out of whack with $25 Arduinos...

I have put up a How-To for the Nordic Semiconductor nRF24L01 series. These were designed for very low-cost 2.4 GHz applications and now there are added versions with 100 mW power amplifiers and low-noise receiver preamplifiers for range up to 1000 Meters.  Starting at $4.75 for chip and antenna on a breakout board, I think they can't be beat.

There is a very good RF24 Library for these from ManiacBug, who says, "The Nordic nRF24L01, built into a small module and sold by mdfly.com for $6.50 (and YourDuino.com for $4.75) is an excellent solution. It’s cheap, fast (2 Mbps), easy, reliable, and low-power. It entirely implements the Data Link Layer in hardware, handling addressing, collisions, and retry, saving us lots of work on the software side. Zigbee has the brand recognition, but this little guy puts it to shame."

The How-To is here: http://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo

Regards, Terry King
...In The Woods In Vermont
terry@yourduino.com

DISCLAIMER: Mentioned stuff from my own shop...
Logged

Regards, Terry King terry@yourduino.com  - Check great prices, devices and Arduino-related boards at http://YourDuino.com
HOW-TO: http://ArduinoInfo.Info

Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks for the answers!
I will look into zoomkat's idea.  My only question is what are you doing for motor control?  Are your servos wired up directly to the Arduino? 

Ps. I found this really small and cheap router that I might use! http://www.superbiiz.com/detail.php?p=CNET-QR980&c=fr&pid=335bf7c486fc3ab4be430c921ac2d6f2b9a8104ae948b5430d640f85c50615dd

Thanks,
sviv
Logged

ottawa, canada
Offline Offline
God Member
*****
Karma: 5
Posts: 989
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi, I've been surprised at the cost of XBee also.  Just seems out of whack with $25 Arduinos...

I have put up a How-To for the Nordic Semiconductor nRF24L01 series. These were designed for very low-cost 2.4 GHz applications and now there are added versions with 100 mW power amplifiers and low-noise receiver preamplifiers for range up to 1000 Meters.  Starting at $4.75 for chip and antenna on a breakout board, I think they can't be beat.

There is a very good RF24 Library for these from ManiacBug, who says, "The Nordic nRF24L01, built into a small module and sold by mdfly.com for $6.50 (and YourDuino.com for $4.75) is an excellent solution. It’s cheap, fast (2 Mbps), easy, reliable, and low-power. It entirely implements the Data Link Layer in hardware, handling addressing, collisions, and retry, saving us lots of work on the software side. Zigbee has the brand recognition, but this little guy puts it to shame."

The How-To is here: http://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo

Regards, Terry King
...In The Woods In Vermont
terry@yourduino.com

DISCLAIMER: Mentioned stuff from my own shop...
so are these one way terry?  separate receiver and transmitter modules?
Logged

Topsham, Vermont USA
Offline Offline
Edison Member
*
Karma: 23
Posts: 1759
... in The Woods In Vermont
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi Bill,

Hey, Ottawa is my favorite weekend trip from my permanent home in Topsham, Vermont.

Won't be skating there this Winterlude  smiley-mad

These are two-way transceivers. Look at the datasheet on the link on the How-To:http://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo
mmm..

http://www.nordicsemi.com/eng/content/download/2726/34069/file/nRF24L01P_Product_Specification_1_0.pdf
Logged

Regards, Terry King terry@yourduino.com  - Check great prices, devices and Arduino-related boards at http://YourDuino.com
HOW-TO: http://ArduinoInfo.Info

Offline Offline
Newbie
*
Karma: 0
Posts: 24
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hey!

 
Quote
Thanks for the answers!
I will look into zoomkat's idea.  My only question is what are you doing for motor control?  Are your servos wired up directly to the Arduino?

I think, is not good to connect your servos directly to Arduino, because of current. You can demage your Arduino board. You need to make H-bridge.


Be good, have fun!

Andrej Z.


Logged

Pages: [1] 2   Go Up
Jump to: