Pages: [1]   Go Down
Author Topic: RF Communication with PC problem.  (Read 451 times)
0 Members and 1 Guest are viewing this topic.
Turkey
Offline Offline
Newbie
*
Karma: 0
Posts: 5
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

hi
i'm trying to communicate my arduino with pc but i have problem. first of all i have this devices:
My sketch is here:
Code:
int i;
void setup() {
Serial.begin(2400);
Serial.flush();
}
 
void loop() {
  Serial.print("start");
  delay(200);
  for (i=0; i<5; i++){
Serial.print("data");
Serial.println(i);
  delay(200);
  }
  Serial.print("stop");
delay(500);
}

and my connections :


when i set up the putty's baudrate and serial port  i'm expecting to see "start" , "data1"..etc on my pc monitor. but there is no data. if you have a example about it ,can you send me?
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 208
Posts: 8856
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

My first question would be: "Why does the receiver have two pins marked 'data'?"

Have you got technical specifications for the transmitter and receiver modules?

Have you tried sending a simple ON/OFF signal?  For example, connect an LED to the receiver data pin and connect Pin 13 of the Arduino to the transmitter data pin.  If you run the Blink example does the receiver LED blink at the same time as the built-in LED of the Arduino?  Until that works I would not expect any wireless serial communications to work.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

Australia
Offline Offline
God Member
*****
Karma: 11
Posts: 502
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Wont work at all with those radios.
They are simple Amplitude keyed radios with no intelligence at all.
To transmitastnc  serial data you must have an error corrected radio link with squelch on the radio receiver.
You can use the radios to talk from one Arduino to another Arduino using the Virtualwire library, which provides
all the error correction and coding needed to send async data.
Logged

Pages: [1]   Go Up
Jump to: