Need help connecting DIDI XBEE SE PRO S2 T with arduino UNO's and shield!

Thread Starter

michaelkm8

Joined Apr 30, 2014
2
20160404_112737.jpg 20160404_112748.jpg 20160404_112737.jpg 20160404_112748.jpg Hello all,
I can't for the life of me figure out how to connect this setup. I have four XBEE SE PRO S2 T's, two Arduino Uno's, and two Arduino shields. I have XCTU and programmed one as the coordinator and the others as one router and two end points. Now the problem is the end devices go unresponsive as soon as I upload the firmware in XCTU, but the coordinator and router stay on just fine. I have changed the sleep setting to the max and they still do the same thing. I also maxed out the baud rate and still no luck. All I want to do is turn on an LED... Such a big problem for such a simple task. Anyways any help would be very much appreciated. I have attached the code and the hardware so you can see what i'm working with. Thanks!20160404_112737.jpg 20160404_112748.jpg 20160404_112737.jpg 20160404_112748.jpg

Code:
void setup()
{
  Serial.begin(9600);
  pinMode(7,OUTPUT);
}

void loop()
{
int data = Serial.read();

switch(data)
{
  case '0':
  digitalWrite(7, HIGH);
  Serial.println("LED turned on");
  break;

  case '1':
  digitalWrite(7, LOW);
  Serial.println("LED turned off");
  break;
}
}
 
Top