Go Down

Topic: Arduino Uno, Xbee Chip, Xbee Arduino Shield Pair (Read 5 times) previous topic - next topic

dhunt

That shield has a 3.3V regulator on it. Maybe try hooking the shield up to 5V instead of 3.3V?  Probably reaching here, but since you're manually connecting it to the arduino instead of using headers it could be a factor.

surfer007


PaulS

Quote
can I use this?

Sure.

You can use the shields you had, if you simply connected them correctly.

surfer007


how do i connect these shield properly?
I ordered the headers from sparkfun, but they could take weeks.
is there wiring schematic for the shield to connect to the uno?


surfer007


PaulS

Quote
how do i connect these shield properly?

With the XBee side of the shield up, there is only one way the shield will for on the Arduino. The holes where the pins will go need to be connected to the pin locations on the Arduino IN THE SAME ORDER.

PaulS

Quote
should the baudrate be 9600 or 57600 ?

Or 19200, or 38400, or whatever your application needs.

surfer007


First of all thanks for putting up with all my newbie questions. I definitely appreciate it! THANK YOU ALL, mainly Paul!  ;)

secondly the headers came early! Just soldered it to the shield.

surfer007


the coordinator xbee when connected to x-ctu, I press "+++" but no response. I tried with the router/end device xbee and it gives the "OK"

?

surfer007


The CH "Operating Channel" on one is 0 (end device) the second one is 13.
does this matter?

surfer007


another question.
When I "upload" the program to the arduino, (i take off the xbee chip first), then put it back on when its done uploading. (USB is still connected to my PC). the TX light is still blinking. However, when I disconnect the USB from my PC (connect the power AC to the Arduino), the TX light stops.
should it do that?
once I connect the USB back, the TX starts blinking again.
once the arduino is powered by AC adapter, instead of the USB cable, the program still works right? is running?


dhunt

Omg. This has to be a troll, right? Connecting parts while the arduino us powered? Come on!

surfer007

No, I'm just frustrated! i'm trying to do something very simple, I just want it to send and receive something. It is still not working.
So it looks like on the shield, there is a UART/DLINE switch.
apperantly it has to set to "DLINE" when uploading the sketch. then changed back to UART, so it can tx/rx through the Xbee
correct?

dhunt

Okay no worries.

Don't connect the XBee while the arduino is powered up - you might fry it.

I couldn't find any mention of the shield you are using in your posts, but from the pictures you posted I assume its this one: http://www.sparkfun.com/products/9976. You can switch the serial interface of the XBee to either the hardware serial interface on the Arduino, or to digital pins 2 and 3. When it connected to the hardware serial interface you will not be able to load a sketch.  You can change the switch position so you can load a sketch, but make sure the Arduino is powered down when you do this.

With the switch set for pins 2 and 3, you can use Software Serial to communicate with the XBee.

I think you should take a look at some of the numerous tutorials that are available for getting your XBee going.

http://www.cooking-hacks.com/index.php/documentation/tutorials/arduino-xbee-shield
http://www.electrojoystick.com/tutorial/?page_id=25
http://xbeewireless.tumblr.com/



surfer007

I have gone through so many tutorials, it makes my head spin.
There just seems to be so many different verisions, so many permutations of hardware and software that none seem comprehensive. or its out of date.

The common setup (from most of the tutorials) seems to be
PAN ID: 1111
DH:from other Xbee SH
DL: from other Xbee SL
NI: Node1

my OP - operating Pan ID doens't seem to be the same on both, but i can't change it.
my CH - operating channel, doesn't seem to be the same on both, but i can't change it.

I tried the XB24-B ZNET 2.5 (Router/End Device) first, didn't work.
I'm trying the XB24-ZB Zigbee Router AT

I've been using AT.

and setting up one coordinator and other router.

I have the shield mounted on the Arduino (headers soldered). Both of them are connected to my PC.

on the coordinator, router im' running simple TX.

void loop()
{
   Serial.print(1);
   delay(200);
   Serial.print(2);
   delay(200);
}


on the coordinator, i'm RX:

void loop()
{
    ser = Serial.read();
    Serial.println(ser);
    delay(200);
 
}


so on the Coordinator, its just printing "-1".
so its not RXing anything.

=( =( =(




Okay no worries.

Don't connect the XBee while the arduino is powered up - you might fry it.

I couldn't find any mention of the shield you are using in your posts, but from the pictures you posted I assume its this one: http://www.sparkfun.com/products/9976. You can switch the serial interface of the XBee to either the hardware serial interface on the Arduino, or to digital pins 2 and 3. When it connected to the hardware serial interface you will not be able to load a sketch.  You can change the switch position so you can load a sketch, but make sure the Arduino is powered down when you do this.

With the switch set for pins 2 and 3, you can use Software Serial to communicate with the XBee.

I think you should take a look at some of the numerous tutorials that are available for getting your XBee going.

http://www.cooking-hacks.com/index.php/documentation/tutorials/arduino-xbee-shield
http://www.electrojoystick.com/tutorial/?page_id=25
http://xbeewireless.tumblr.com/




Go Up