Hello every one,
i am sending data 8 bit to my arduino and i want my data to get into the rx ( by rf module 434A receiver).
So, i tried to send data but he always gets the data as "-1" .
i did a check by shorting the rx and the tx of the arduino to where is the problem but it works ( the data from the tx of the arduino gets into the rx of the arduino pretty good)',
i also checked my transmitter and my receiver they works good too ,
anybody thinks he knows where the problem can come from?
here is my simple code:
void setup() {
Serial.begin(9600);
}
void loop() {
Serial.write(255);
delay(100);
int x=Serial.read();
Serial.print(x);
delay(100);
}
thanks alot,
gidi