Hello everyone !
I am posting here because I can’t manage to make the Xbee shield v2.2 work with an Xbee Pro S1 module, it’s been now two weeks I’m trying, and unfortunately the wiki does not have much informations except a schematic and nothing I found on Google worked.
My final objective would be to make an Arduino UNO and an Arduino MEGA communicate with each other (It’s to build an RC car controller) using SoftwareSerial for at least the emitter (I need to stack an USB shield on top).
The MEGA is supposed to be the Emitter, but I might replace it with an UNO.
I configured both Xbee modules with XCTU correctly (Same PAN ID , same CH channel , MY Adress 1000 and 1001 respectively , AP mode disabled , DH set to 0 , DL set to the other module MY adress).
I also managed to make them work using XCTU terminal.
However , nothing with the Arduino IDE.
The lastest test I did was this :
XBee > Shield > Arduino MEGA > Computer > XCTU.
XBee > Shield > Arduino UNO > Computer > Arduino IDE (COM terminal)
I used this code taken from Arduino website to send messages through Serial :
[code]#include <SoftwareSerial.h>
SoftwareSerial xbee(2, 3);
void setup()
{
Serial.begin(9600);
Serial.println(“Program started …”);
xbee.begin(9600);
xbee.println(“Hello world ?”);
}
void loop()
{
if (xbee.available())
Serial.write(xbee.read());
if (Serial.available())
xbee.write(Serial.read());
}[/code]
And uploaded an empty file to the Arduino MEGA, to use it with XCTU.
But it doesn’t work, neither the UNO nor the MEGA receive anything at all. (I made sure the jumpers are in the right positions. Also , I do not know if it matters, but both modules are End Devices)
I also tried with hardware serial (Used Serial), I even tried with standalone 9V powering both Arduinos , without success.
Both XBee ONLY communicate through XCTU.
I’m completely out of things to try short of trying with another shield.
Thanks for your time and don’t hesitate to ask for more informations.