Problem Connecting 2 XBees

Hi,

I'm trying to set up two XBees to communicate to each other to do some simple if, then statements to generate actions. Essentially, I would like to press one button on the Arduino connected to an XBee, and have it light another LED connected to a separate Arduino wired to another XBee. I've tried the example from sparkFun's website (http://bildr.org/2011/04/arduino-xbee-wireless/) and quadruple checked my wiring, but I'm just not getting any responses from the Arduinos.

I'm using the Arduino Pro mini 3.3 V, and two of the XBee Series 1. I'm trying to avoid reconfiguring the sensors, and would be fine with the standard setup on the XBees. Also I would like to use this without a shield, so I'm wiring directly to Rx, Tx, Gnd, and Vcc (3.3v).

I also tried to write my own very simply code here:

int buttonPin = 12;
int ledPin = 13;

int buttonState; 
int buttonPressed;

void setup(){

  Serial.begin(9600);

  pinMode(ledPin, OUTPUT);
  pinMode(buttonPin, INPUT);
  digitalWrite(buttonPin, HIGH);


  digitalWrite(13, HIGH);
  delay(500);
  digitalWrite(13, LOW);
  delay(500);
  digitalWrite(13, HIGH);
  delay(500);
  digitalWrite(13, LOW);
  delay(500);
  digitalWrite(13, HIGH);
  delay(500);
  digitalWrite(13, LOW);
  delay(500);
}

void loop(){

  buttonState = digitalRead(buttonPin);

  if(buttonState == LOW){
    digitalWrite(ledPin, HIGH);
    Serial.println(1);  
  }

  else{
    Serial.print(0);
    digitalWrite(ledPin, LOW);
  }

  buttonPressed = Serial.read();

  if (buttonPressed == 1){
    digitalWrite(ledPin, HIGH);
  }
  else{
    digitalWrite(ledPin, LOW);
  }
}

This is the Bildr code:

//////////////////////////////////////////////////////////////////
//©2011 bildr
//Released under the MIT License - Please reuse change and share
//Turning the pot on one Arduino, dims the LED on all the others on the network
//////////////////////////////////////////////////////////////////

#define potPin 3
#define ledPin 11


int inByte = -1;
char inString[6];
int stringPos = 0; 
int lastValue = 0;


void setup()  { 
  pinMode(ledPin, OUTPUT); 
  Serial.begin(9600); 
} 

void loop() { 
   inByte = Serial.read();

   //only send new value if it is different than last sent value.
   //Min value change of 5 neded. Just so we dont flood the network
   int potVal = analogRead(potPin);
   if( abs(potVal - lastValue) > 5){
     Serial.println(potVal);  
     lastValue = potVal;
   }

  //if there is any numerical serial available, store that
  if((inByte >= '0') && (inByte <= '9')){
    inString[stringPos] = inByte;
    stringPos ++;
  }

  //if there is a line end character, this string is done, take value and write to LED pin
  //clear the string when done
  if(inByte == '\r'){
    int brightness = atoi(inString); //convert string to int

    //incoming will be a range of 0-1023, we need 0-255
    brightness = map(brightness, 0, 1023, 0, 255);
    analogWrite(ledPin, brightness);


    //clear the values from inString
    for (int c = 0; c < stringPos; c++){
      inString[c] = 0;
    }
    stringPos = 0;
  }

}

I'm trying to avoid reconfiguring the sensors, and would be fine with the standard setup on the XBees.

Trying to avoid reconfiguring what sensors?

You apparently AREN'T fine with the standard setup on the XBees. Fix them so that they talk to each other.

@xxmamakinxx, please do not cross-post. Other post deleted.