Using Xbee to transmit and receive

I have no clue why this code isn't working. I'm new to Arduino and Xbees but I have had experienced people look over it and they say they have no clue what's wrong. Is it my code that's the problem?

This is just supposed to be a simple program to practice with Xbees

//reciever
#include "SoftwareSerial.h"

SoftwareSerial xbee(2, 3);

void setup() {
  // put your setup code here, to run once:
  xbee.begin(57900);
  Serial.begin(57900);
}
//57900
//2 = RX
//3 = TX

void loop() {
  // put your main code here, to run repeatedly:
  if(xbee.available()){
    char letter = xbee.read();
    Serial.print(letter);
  }
}
//sender
#include "SoftwareSerial.h"

SoftwareSerial xbee(2, 3);
char letter;

void setup() {
  // put your setup code here, to run once:
  xbee.begin(57900);
  letter = 'a';
}

void loop() {
  // put your main code here, to run repeatedly:
  letter++;
  xbee.print(letter);
  delay(100);
}

Any help/tips are appreciated. Thanks!

1.) what are your XBee configuration settings (for each XBee) from XCTU?
2.) are you sure your bauds are correct? Why pick 57900? Try 9600 for everything for now
3.) what is your wiring? Can you post a schematic?
4.) have you tried swapping TX and RX on any combination of the XBees?
5.) are you using a shield?

1.) Not sure. Someone else did that for me but they are confident it is right. 2.) They told me to use 57900 3.) The wiring is kinda complicated and I am not sure how to show it here (I am new to this stuff) 4.) I am not sure how to swap the RX and TX things unless you mean just to try swapping the variables in my code. 5.) Not sure what a shield is.

Does my code seem like it would work? If so does it mean something physical is wrong?

JoshArms: Does my code seem like it would work? If so does it mean something physical is wrong?

Without having the answers to pretty much any of my questions, I'd say I still don't know...

I think you should take some time to learn more about your system. I'd suggest asking my questions to the other person/people in your group.

Also, I still say you should start with a baud of 9600. Higher baud for wireless modules generally decreases range and increases the chance to have a corrupt data packet received.

Look at the baud list from Digi documentation:

Although you may have more problems, looks like a bad baud is one of them.

bauds.PNG

I'll ask them to fix the Baud. If this helps, here's a picture of the wiring

https://imgur.com/a/MgALn0o

EDIT: Quick side note, in that image we changed RX to 4 and TX to 5