Author Topic: xbee and send / recive  (Read 3108 times)

0 Members and 1 Guest are viewing this topic.

Offline saghiTopic starter

  • Beginner
  • *
  • Posts: 1
  • Helpful? 0
xbee and send / recive
« on: April 13, 2012, 09:31:13 AM »
hello
i need to have two way communication with my robot , so i need two xbee module .
my question is :
does xbee  two way communication , if yes , which model can ?
if not how can i send and receive (rx - tx) with my robot ?

im using a Portable PC <> xbee <>............(AIR)...........<>xbee <> microcontroller
thank you

Offline joe61

  • Supreme Robot
  • *****
  • Posts: 417
  • Helpful? 16
Re: xbee and send / recive
« Reply #1 on: April 13, 2012, 10:14:10 AM »
You might want to familiarize yourself with the protocol: http://www.digi.com/technology/rf-articles/wireless-zigbee

Also, google "zigbee" and you can find lots of other information about it. It's a big topic.

Joe

Offline KurtEck

  • Robot Overlord
  • ****
  • Posts: 217
  • Helpful? 12
Re: xbee and send / recive
« Reply #2 on: April 14, 2012, 07:45:27 AM »
It is difficult to give any specific information here as there are no details, like what type of Micro-controller you are using or the like.

But for bi-directional communications you have a couple of different options:

1) XBee - like you mentioned.  I use this to control my robots.  There are tutorials on how to do this up on the web.  If I am not mistaken there may be one on this site.  Likewise there is one up on Trossen and I am pretty sure there is one up on sparkfun as well.

It is easy to start to experiment.  Probably the easiest is to buy a simple starter kit like: http://www.trossenrobotics.com/p/Xbee-Communication-Starter-Kit.aspx

Note: these are probably Sparkfun XBee holders.  On many robots they work fine, but I have had issues with the "XBee Explorer Regulated" on some 5V systems and have had better luck with the one from Parallax, such as: http://www.parallax.com/Store/Accessories/CommunicationRF/tabid/161/CategoryID/36/List/0/SortField/0/catpageindex/2/Level/a/ProductID/691/Default.aspx as it has a true 3.3 to 5V signal converter in both directions.

But which ever way you start, you can start simply.  That is once you have the two XBees paired (The DL of one equal to the MY of the other....).  Then on your PC, you can simply send text to the created serial port and it will arrive at the other side and likwise on the robot.  Later if you decide you need to, you can get more advanced in get into what is called packet mode, but my advice is start simple.  Also look for whatever libraries that may be available on your controller...

2) BlueTooth - Your portable may already have this and then you can use something like: http://www.sparkfun.com/products/10268 to connect to your Micro-controller.

3) Wifi - There are several boards/shields out there.  But they are a lot more expensive and lots more work.  But you get a lot more throughput as well as flexibility.

Good Luck.
Kurt

Offline Gertlex

  • Supreme Robot
  • *****
  • Posts: 763
  • Helpful? 24
  • Nuclear Engineer ยท Roboticist
    • Index of Oddities
Re: xbee and send / recive
« Reply #3 on: April 14, 2012, 08:05:52 AM »
Yes, Xbees will do what you want.  I think all of the models can do such.  The most straight-forward option is the Series 1 xbees.  Xbees also come in a Pro flavor, which has a greater transmitting strength (and of course draws more power), but you're unlikely to need this.  I've also used the Series 2 xbees (now called ZB series), which use Zigbee, giving them other features (mesh networks), but they can function just like Series 1, which is what I do with them.

You'll also need to plug these into something, ideally.  You can make your own, but you probably have better uses of your time.  I recommend this board for connecting to computer via USB because it has a reset button which is useful for debugging.  At the other end, I've not had problems with either of the boards that I connect to my robot; this one is the smaller and cheaper.

I'm saying a lot of the same things as Kurt :)... A decent tutorial that I know of can be found here.  They're pretty foolproof though; I learned to use mine along with the X-Ctu program partly by trial and error.

Side note, KurtEck noted bluetooth... I've found personally and from others' experience that if you're using Windows, bluetooth serial is one-way, not two-way (you choose which).  Supposedly there's a way around this
« Last Edit: April 14, 2012, 08:13:11 AM by Gertlex »
I

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: xbee and send / recive
« Reply #4 on: April 20, 2012, 01:44:51 AM »
Another option would be my Axon Mote:
http://www.societyofrobots.com/axon_mote/

It's a microcontroller with a built in Zigbee transmitter and USB adapter.

 


Get Your Ad Here

data_list