Pages: 1 2 [3] 4   Go Down
Author Topic: Arduino Uno, Xbee Chip, Xbee Arduino Shield Pair  (Read 5058 times)
0 Members and 1 Guest are viewing this topic.
Wellington, New Zealand
Offline Offline
Sr. Member
****
Karma: 1
Posts: 404
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged


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


can I use this?



* IMG_20120410_200443.jpg (173.93 KB, 1600x1200 - viewed 26 times.)
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 611
Posts: 49092
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
can I use this?
Sure.

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

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


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?

Logged

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


should the baudrate be 9600 or 57600 ?
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 611
Posts: 49092
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 611
Posts: 49092
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
should the baudrate be 9600 or 57600 ?
Or 19200, or 38400, or whatever your application needs.
Logged

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


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

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

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


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"

?
Logged

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


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

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


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?

Logged

Wellington, New Zealand
Offline Offline
Sr. Member
****
Karma: 1
Posts: 404
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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


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

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?
Logged

Wellington, New Zealand
Offline Offline
Sr. Member
****
Karma: 1
Posts: 404
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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/


Logged


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

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.

 smiley-cry smiley-cry smiley-cry



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/



Logged

Pages: 1 2 [3] 4   Go Up
Jump to: