Go Down

Topic: RF Communication with PC problem. (Read 477 times) previous topic - next topic

ernecati

hi
i'm trying to communicate my arduino with pc but i have problem. first of all i have this devices:

  • Arduino UNO

  • http://www.ebay.com/itm/CP2102-USB-2-0-to-UART-TTL-6PIN-Module-Serial-Converter-/130683943875?pt=LH_DefaultDomain_0&hash=item1e6d5ebbc3

  • http://www.ebay.com/itm/300733295714?ssPageName=STRK:MEWNX:IT&_trksid=p3984.m1439.l2649


My sketch is here:
Code: [Select]

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?

johnwasser

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.
Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

mauried

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.

Go Up