I have made a program on the sending end:
//Reads data from 0 and 1 and relays back to reciver
//lmc
int light = 0;
int temp = 1;
int thirteen = 13;
int lightval;
int tempval;
void setup(){
Serial.begin(19200);
Serial.println('Bonjour =]');
pinMode(light, OUTPUT);
pinMode(temp, OUTPUT);
pinMode(thirteen, OUTPUT);
digitalWrite(thirteen, HIGH);
delay(1000);
digitalWrite(thirteen, LOW);
}
void loop(){
digitalWrite(thirteen, HIGH);
Serial.print(analogRead(light));
Serial.print(',');
Serial.println(analogRead(temp));
delay(500);
digitalWrite(thirteen, LOW);
delay(500);
}
The code reads the analog inputs and outputs it over the serial after putting a comma in between the two of them. I have connected the xbee module correctly as otherwise I would get nothing coming from the xbee module. I have tried reloading the firmware on (10CD is my latest) and all I get on the serial line is something like this:
over and over again, every second, like it should send above.[J:.[*:.*J.K*J:.[*J.*J:.K*J.[J:.[J:.*J:.I*J:.[*:.*J..[*:.[*J:.[*:.K*:.[J:.[J:.K*:.[J;.K+J;.
Why on earth is it doing this?
I am using a 3.3v Arduino pro and the Arduino software is in lilypad mode
The receiving module is using my working ladyada xbee module board and a 5v ttl232 cable.
Thanks

