XBee Adapter Kit questions

Breakout boards, sensors, Drawdio, Game of Life, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

XBee Adapter Kit questions

Postby grooove » Mon Nov 24, 2008 11:43 pm

sorry if this is not the right place to post XBee Adapter Kit questions..

I purchased 2 XBee PRO modules, and now I am thinking in getting 2 XBee Adapter Kits

Does the adapter work with the Pro version?

Do I need to get the USB FTDI cable ? What is this cable for?

Is there any european reseller?


sorry if this is a stupid question :oops:
grooove
 
Posts: 23
Joined: Tue Jul 29, 2008 7:39 pm

Re: XBee Adapter Kit questions

Postby adafruit » Tue Nov 25, 2008 2:33 am

the adapter works with pro and not-pro xbees. you'll have to look around european electronics stores for xbees since i dont know off hand the names of distributors
the FTDI cable allows you to talk to the xbee direct from your computer.
User avatar
adafruit
 
Posts: 10554
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: XBee Adapter Kit questions

Postby grooove » Tue Nov 25, 2008 3:43 am

thnx :]
grooove
 
Posts: 23
Joined: Tue Jul 29, 2008 7:39 pm

Re: XBee Adapter Kit questions

Postby grooove » Wed Dec 17, 2008 1:26 pm

the adaptors are working in plenitude :D

is it possible if you (or someone) can help me with a handshake example?

Arduino # 1 has two potenciometers

Arduino # 1 sends value of the potenciometer 1

Arduino # 2 recieves value of the potenciometer 1

Arduino # 2 sends OK to Arduino # 1

Arduino # 1 recieves OK from Arduino # 2

Arduino # 1 sends value of potenciometer 2

Arduino # 2 recieves value of potenciometer 2

Arduino # 2 sends OK to Arduino # 1

Arduino # 1 sends value of potenciometer 1

and so on ...

Is this the right way?
I can conceive this pseudo code, but can´t translate it to real programming..
If someone can help me I would really appreciate.
grooove
 
Posts: 23
Joined: Tue Jul 29, 2008 7:39 pm

Re: XBee Adapter Kit questions

Postby grooove » Fri Dec 19, 2008 12:36 am

after doing research on how to read 'byte' values and convert them to 'int', I came up to this solution. :)

sender arduino:

Code: Select all
int analogValue2, analogValue5;
int val2, val5;

void setup()
{
  // start serial port at 9600 bps:
  Serial.begin(9600);
}

void loop()
{
  // read analog input
  analogValue2 = analogRead(5);
  analogValue5 = analogRead(2);

  val2 = map(analogValue2, 0, 1023, 253, 0); //254 and 255 for SYNC
  val5 = map(analogValue5, 0, 1023, 253, 0);

  Serial.print(254, BYTE);  //SYNC char
  Serial.print(val2, BYTE);
  Serial.print(255, BYTE);  //SYNC char
  Serial.print(val5, BYTE);

  // pause for 100 milliseconds:
  delay(100);      //
}





reciever arduino:

Code: Select all
#include <AFSoftSerial.h>
AFSoftSerial mySerial =  AFSoftSerial(3, 2);

byte incomingByte;
byte sensor1, sensor2;

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void setup() {
  Serial.begin(9600);         // connect to the serial port
  Serial.println("Goodnight moon!");

  // set the data rate for the SoftwareSerial port
  mySerial.begin(9600);
  mySerial.println("Hello, world?");

}

// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
void loop() {
   
   if (mySerial.available()) {
      incomingByte = mySerial.read();

      Serial.println(int(incomingByte));

      if ((int(incomingByte) == 254)) {
        sensor1 = mySerial.read();
        Serial.print("Sensor 1 = ");
        Serial.println(int(sensor1));       
      }

      if ((int(incomingByte) == 255)) {
        sensor2 = mySerial.read();
        Serial.print("Sensor 2 = ");
        Serial.println(int(sensor2));             
      }
   
   }

}
grooove
 
Posts: 23
Joined: Tue Jul 29, 2008 7:39 pm

Re: XBee Adapter Kit questions

Postby rchmc » Tue Jan 06, 2009 9:45 pm

Hello!

I have a quick question about the Xbee Adapter Kit: Can I use the FTDI Basic Breakout board from sparkfun to talk to the Xbee Adapter kit here? I'm sorry if the answer is obvious! (As I'm sure it will be once I've started playing with this stuff some) Thanks!

Here is the the FTDI Basic Breakout link: http://www.sparkfun.com/commerce/produc ... ts_id=8772

rchmc
rchmc
 
Posts: 3
Joined: Tue Jan 06, 2009 9:39 pm

Re: XBee Adapter Kit questions

Postby adafruit » Tue Jan 06, 2009 10:00 pm

im pretty sure it doesn't work, despite the description saying its "ftdi cable compatible" its doesnt have the same pinout, I wish they'd fix it :(
User avatar
adafruit
 
Posts: 10554
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: XBee Adapter Kit questions

Postby rchmc » Tue Jan 06, 2009 11:18 pm

Thanks! I thought something was fishy. I'm guessing the RTS and DTR pins are quite different... Would it work if I connected the DTR pin on the Sparkfun FTDI Basic Breakout to the DTR pin on the Xbee Adapter Kit? (Please see my attached picture for the work-around idea I have). Thanks again for the advice. I'm sorry for my ignorance at this point as to what RTS and DTR in this interface :/

rchmc
Attachments
sparkfunFTDI_problem.JPG
sparkfunFTDI_problem.JPG (145.83 KiB) Viewed 3838 times
rchmc
 
Posts: 3
Joined: Tue Jan 06, 2009 9:39 pm

Re: XBee Adapter Kit questions

Postby adafruit » Wed Jan 07, 2009 1:27 pm

it -should- but there is no way for me to verify, sorry
User avatar
adafruit
 
Posts: 10554
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc

Re: XBee Adapter Kit questions

Postby 33Warlord » Wed Jan 07, 2009 8:13 pm

I have the Sparkfun "FTDI" break-out boards that you mentioned, and some of these Xbee adapters on order (they should be here by the weekend).

Once I get everything, I will test out your workaround circuit and post my findings here.
33Warlord
 
Posts: 22
Joined: Fri Oct 31, 2008 12:12 am

Re: XBee Adapter Kit questions

Postby rchmc » Thu Jan 08, 2009 9:25 am

Cool, thanks! Good luck.
rchmc
 
Posts: 3
Joined: Tue Jan 06, 2009 9:39 pm

Re: XBee Adapter Kit questions

Postby 33Warlord » Mon Jan 12, 2009 4:21 pm

rchmc wrote:Thanks! I thought something was fishy. I'm guessing the RTS and DTR pins are quite different... Would it work if I connected the DTR pin on the Sparkfun FTDI Basic Breakout to the DTR pin on the Xbee Adapter Kit? (Please see my attached picture for the work-around idea I have). Thanks again for the advice. I'm sorry for my ignorance at this point as to what RTS and DTR in this interface :/

rchmc


OK, I have the Adafruit Xbee adapters, a real FTDI cable, and sparkfun's FTDI basic breakout.

I ran a few simple tests using both devices, and got the same results with both! I was able to connect to the Xbee module using X-CTU program via ALL connection methods (even the SF Module which has DTR instead of CTS, and 3.3 instead of 5V). While connected I was able to read & update the Xbee firmware as well as send receive data to another Xbee device wirelessly.

Obviously these tests weren't enough to point out the fact that the interface's CTS line wasn't connected properly to the Xbee, or else it shouldn't have worked.

Does anyone know what type of test I should run to determine if re-routing the SparkFun Modules's DTR to the XBee DTR will work? (as pictured in the 2nd scenario in "rchmc"'s picture above.)
33Warlord
 
Posts: 22
Joined: Fri Oct 31, 2008 12:12 am

Re: XBee Adapter Kit questions

Postby adafruit » Mon Jan 12, 2009 5:11 pm

ok excellent! good to know it works!
User avatar
adafruit
 
Posts: 10554
Joined: Thu Apr 06, 2006 3:21 pm
Location: nyc


Return to Other Adafruit products

Who is online

Users browsing this forum: No registered users and 6 guests

Stuff to buy from the Adafruit store and links to product documentation!


New Products [113]

Raspberry Pi[82]
 
FLORA[24]
 
Bunnie Studios[9]
 
FPGA[1]
 
mbed[12]
Arduino[60]
 
NETduino[14]
 
BeagleBone[23]
 
Android[6]
 
XBee[10]
More Dev Boards[30]


 
BoArduino[8]
 
SpokePOV[4]
 
TV-B-Gone[4]
 
MiniPOV[3]
 
SIM reader[3]
 
Microtouch[5]
 
Clocks & Watches[18]
 
Drawdio[4]
 
Brain Machine[1]
 
Game of Life[2]
 
MintyBoost[2]
More DIY Kits[16]


 
MaKey MaKey[3]
 
Tweet-a-Watt[5]
 
Young Engineers[39]
 
Discover Electronics[2]
 
Snap Circuits[4]
 
littleBits[3]
 
Project packs[9]


 
Breakout Boards[35]
LCDs & Displays[49]
Components & Parts[70]
Batteries & Power[54]
EL Wire/Tape/Panel[52]
LEDs[112]
 
Wireless[16]
Cables[66]
 
Lasers[6]
Sensors/Parts[147]
 
Enclosures/Cases[11]
 
Solar[11]
 
RFID / NFC[13]
Prototyping[70]
 
iDevices[13]
Tools[71]
 
Wearables[41]
 
CNC[37]
 
Robotics[29]
 
3D printing[1]
 
Materials[25]


 
Stickers[41]
 
Skill badges[55]
 
Books[26]
 
Circuit Playground[7]
 
Gift Certificates[4]