connexion between 2 xbees

Hi :slight_smile:

My project consists in linking two cards Arduino via xbee :one card Arduino will send data (L and H) and
the other card will flash the LED( it will turn on the LED when it receives H and turn off the led when it receives L)

Here is the code

/* Sender

void setup() {
Serial.begin(9600);
}
void loop() {
Serial.println(“H”); //turn on the LED
delay(1000);
Serial.println(“L”);//turn off the LED
delay(1000);
}

/*Receiver

char msg = ’ '; //contains the message from arduino sender
const int led = 13; //led at pin 13
void setup() {
Serial.begin(9600);//Remember that the baud must be the same on both arduinos
pinMode(led,OUTPUT);
}
void loop() {
while(Serial.available() > 0) {
msg=Serial.read();
if(msg==‘H’) {
digitalWrite(led,HIGH);
}
if(msg==‘L’) {
digitalWrite(led,LOW);
}
delay(1000);
}
}

I realized the isis scheme but it didn’t work

I tried to connect the two cards by a wire connection to ensure safe operation and it worked

Finally, I noticed that the Dout pin of xbee Rx connected to the Arduino board is not functional (the color is gray) but I have not experienced the problem
here is the code

I realized the isis scheme but it did not work

I tried to connect the two cards by a wire connection to ensure safe operation and it worked

Finally, I noticed that the Dout pin of xbee Rx connected to the Arduino board is not functional (the color is gray) but I have not experienced the problem

I realized the isis scheme but it didn't work

I tried to connect the two cards by a wire connection and it worked

Finally, I noticed that the Dout pin of xbee Rx connected to the Arduino board is not functional (the color is gray) but I didn't find d the problem

this image shows that when I connected the two arduino cards without xbee it has worked