Hi Harry
I haven't got any Ciseco units but I do have XBee S1, so assuming they work the same this is what I did to test communication between a PC and Arduino UNO. I used a sparkfun breakout board and this article explains how I configured the XBee modules and the breakout board:
http://www.firewing.info/pmwiki.php?n=FirewingUser.XBEEBootloaderIt's for wireless bootloading of a Firewing board but it has some useful information regarding configuration. This is the Arduino test program I used:
- Code: Select all
// the setup routine runs once when you press reset:
void setup() {
// initialize serial communication at 9600 bits per second:
Serial.begin(38400);
}
// the loop routine runs over and over again forever:
void loop() {
int data = 0;
while (true) {
if (Serial.available() > 0) {
data = Serial.read();
Serial.write(data);
}
}
}
My XBEE units are configured for 38400 baud. If you use a different baudrate, then just change the program above to suit. Make sure the switch on the XBee shield is set to "UART". This schematic may explain better the connections:
http://www.firewing.info/downloads/schematics/xbee.pdfWhen the XBee units are paired, the RSSI LEDwill stay on and ASSOC LED will blink. The TX and RX leds should also be OFF, telling you that the Arduino RX and TX are configured correctly. I then used the arduino serial program to connect to the breakout board. The arduino program simply echoes back what is sent from the PC - it's a great way to test bi-directional comms. See the attached image - I basically sent "Hello" to the XBee shield mounted on the arduino, which then echoed it back to the PC.
I hope the above helps - please let me know how you get on...