SparkFun Forums 

Where electronics enthusiasts find answers.

For the discussion of Arduino related topics.
#200739
Hello guys. I am stuck at getting my 2 Xbees to communicate to each other. I am doing exactly same excersise as this guy on youtube: https://www.youtube.com/watch?time_cont ... h-GIaghIjw .
I have connected my Xbees accordingly and I have run the program but my serial monitor is empty and im not getting any data. I have written some additional code to turn on Arduino LED 13 to confirm that the loop is working and the LED turned ON. Somehow my router does not send the data to coordinator. I have added some pictures .

[img]https://ibb.co/f9BU1V /img]
[img]https://ibb.co/fFaYTA/img]
[img]https://ibb.co/nGtL8A/img]
[img]https://ibb.co/fyOL8A/img]

Also, I have noticed a thing.


if (Serial.available() >21){
digitalWrite(led,HIGH); //turn on Uno LED

for (int i=0; i<22; i++) {
Serial.print(Serial.read(),HEX);
Serial.print(", ");
}
Serial.println();
}

If i write a code digitalwrite after the first if stetement, the LED will not turn OFF meaning that it never satisfies the condition.

Could someone give me some tips on how to properly troubleshoot and solve this issue! thank you
long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]