Hi All,
First, I have to say i really love how easy everything is with the Arduino boards! Spent months struggling with PICs and it is such a pleasure to work with these easy to use chips.
Anyway, i have 2 Arduino Uno boards and 2 XBee 2.5 modules. I have a couple of SparkFun XBee Explorer Regulated - WRL-11373 - SparkFun Electronics for the XBees, so no way of programming the XBee, but was hoping to use the 2 XBees in the default transparent serial mode.
I have a very bare bones setup:
Stand alone Board (Powered by a 9v bat.) with pin 2 (Arduino) connected to DOUT (XBee) and pin 3 connected to DIN
and the following arduino code
#include <SoftwareSerial.h>
#define rxPin 2
#define txPin 3
#define ledPin 13
SoftwareSerial xbee = SoftwareSerial(rxPin, txPin);
void setup(){
pinMode(rxPin, INPUT);
pinMode(txPin, OUTPUT);
xbee.begin(9600);
}
void loop(){
xbee.print('A');
delay(100);
}
NOTE: Previously, i had this standalone arduino/xbee use the RX/TX pins 0-1 but then switched to SoftwareSerial as a test, but same results.
I then have a second arduino, connected to a XBee with in 2 (Arduino) connected to DOUT (XBee) and pin 3 connected to DIN (Same as the standalone board)
and the following code
#include <SoftwareSerial.h>
#define rxPin 2
#define txPin 3
#define ledPin 13
SoftwareSerial xbee = SoftwareSerial(rxPin, txPin);
void setup(){
pinMode(rxPin, INPUT);
pinMode(txPin, OUTPUT);
pinMode(ledPin, OUTPUT);
xbee.begin(9600);
Serial.begin(9600);
Serial.println("Starting XBee Comunication");
}
void loop(){
Serial.println("Waiting for XBe");
Serial.println(xbee.read());
//Serial.println(rec);
}
The DIN LED blinks on the standalone board when running, but the board connected to the computer never prints anything via the usb-serial monitor, nor does the DOUT led on the XBee of the receiver (connected to computer)
Little perplexed by this, am I thinking about this correctly?
Would be very grateful for any guidance on this Maybe a pointer to some documentation i have missed?
Many thanks,
Tim