Hi, I've one Arduino board connected with Xbee Shield and want to send data of Signal "H" and "L" for every 3 seconds to my PC. I've another Xbee on Xbee Adapter Kit connected to the PC. My aim is to transfer the data from the remote Arduino to the PC but I can't get it right. Neither the "Terminal" of X-CTU nor the "Serial Monitor" of arduino software show the signal from my remote Arduino.
My step for setting up the connection is as follow. Please help to correct me if I have done something wrong or left something:
- Put both the jumpers on Xbee Shield towards the usb (outwards position). Then attach it on top of Arduino, connect it to PC.
- Upload my program to Arduino with Arduino software.
- Unplug my Arduino from usb. Change jumpers positon towards the Xbee (inwards position).
- Connect the second Xbee serially to the PC via adapter kit.
- Configure the setting in X-CTU by changing the ID, DH, DL and BD (Interface Data Rate). Press the "Write" button (it's result is Writing...complete).
for your informaiton my program code on arduino is as follow:
const int ledPin = 13;
void setup()
{
Serial.begin(9600);
pinMode(ledPin, OUTPUT);
}
void loop()
{
digitalWrite(ledPin, HIGH);
Serial.print('H');
delay(3000);
digitalWrite(ledPin, LOW);
Serial.print('L');
delay(3000);
}
Do I need to add anything to this code to get the 2 Xbee communicate with each other?
These are all steps that I've done but I couldn't get the signal on "Terminal" and "Serial Monitor".
Hope that you can help to rectify my problem. Thanks!