Pages: [1]   Go Down
Author Topic: trying to send data to arduino rx by rf modul 434A without success  (Read 825 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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



Logged

Pages: [1]   Go Up
Jump to: