Go Down

Topic: RF Communication (Read 5401 times) previous topic - next topic

PaulS

The VALUE for the pin number doesn't even have to be realistic. 255 works as well as any value from 0 to 13.

pluggy

#31
Aug 28, 2010, 04:24 pm Last Edit: Aug 28, 2010, 04:26 pm by stephen_t Reason: 1
The advantage of using virtualwire over serial (hard or soft) is that it attempts to balance out the 1's & 0's in the data stream so the primitive AGC on the ASK receivers achieves some kind of balance.  Serial doesn't do this (it doesn't need to under usual circumstances) and big lumps of certain values going through can cause the AGC to become unbalanced and miss data.  On the downside virtualwire is far harder to understand than serial........
http://pluggy.is-a-geek.com/index.html

000

Thanx u guys now i understood :D
One thing though
Quote
The VALUE for the pin number doesn't even have to be realistic. 255 works as well as any value from 0 to 13.


Are u saying it need not be any pin no.? say a pin no. 2(as Tx) and a pin no. 255(as Rx) on the transmitter side Arduino? because I really dont want to waste a pin which i don't use as Tx/Rx in case of SoftwareSerial.
From my understanding both rx and tx are defined merely for calling the function in SoftwareSerial and you basically don't use rx pin in case of Transmitter Arduino?  :)

@pluggy
Thanx for the accurate reply. That was what I was looking for  ;)

PaulS

As long as you aren't transmitting, you don't need to connect a pin to TX. If you aren't receiving, you don't need to connect a pin to RX. In which case, you would just use 255 for the "pin" that TX (or RX) is connected to, and SoftwareSerial will be happy.

000

Cool. Thats just the thing I needed. Thanx for the replies :)

Go Up