i want to make accelerometer based robo arm using xbee and two arduino. on as a transmitter and other receiver i am sending data serialy by xbee and want to receiv data for x y and z axis in integer format at receiver site plz help.
int Apin = A0;
int Bpin = A1;
int Cpin = A2;
int A, B, C;
void setup()
{
Serial.begin(9600);
}
void loop()
{
int A = analogRead(Apin);
int B = analogRead(Bpin);
int C = analogRead(Cpin);
Serial.print(A);
Serial.print(",");
Serial.print(B);
Serial.print(",");
Serial.println(C);
delay(4000);
}