Go Down

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

UltraMagnus

connect digital pin one (tx) to your transmitter's RX pin, and digital pin 0 (rx) to your transmitter's TX pin, the rest is explained in the link I gave you.

natman3400

Serial.print(6)
Its the same as communicating over the computer

000

Quote
connect digital pin one (tx) to your transmitter's RX pin, and digital pin 0 (rx) to your transmitter's TX pin, the rest is explained in the link I gave you.


I am not getting what u mean by transmitter's TX pin. Transmitter has only 4 pins right?
Please refer Datasheet http://www.mediafire.com/file/kh2nxyel07lxrdf/rf.pdf
Am I correct in this?

Pin 1 GND (to GND)
Pin 2 Transmitter input (connected to digital pin 1 of Arduino)
Pin 3 Vcc  (to 9V)
Pn 4 RF output (connected to antenna )

So what do I connect to digital pin 2?  :-/

Quote
Serial.print(6)
Its the same as communicating over the computer

So if i give serial.print(0) it prints 0 on the serial monitor and it transmits value 0 through digital pin 1?  :)

Leon Heller

Pin 2 is the Tx data pin.
Leon Heller
G1HSM

000

So Pin 4 of transmitter module must be connected to digital pin 2 of Arduino and to the antenna ?

Jonathan Oxer

#20
Aug 26, 2010, 07:41 am Last Edit: Aug 26, 2010, 07:41 am by jonoxer Reason: 1
No, the antenna pin (pin 4) is connected to *only* the antenna, nothing else. You don't need anything connected to pin 2 on the Arduino for the transmitter. The transmitter is a serial device, so the only connections to the Arduino are the common GND, VCC, and the data pin. That's it.
--
Jon
Practical Arduino: www.practicalarduino.com

000


UltraMagnus

right, didn't realise you were using unidirectional devices.

CaptainObvious

I couldn't read the PDF, so I'm going to assume he has the cheap 434mhz or 315mhz RX/TX pair, ASK modulation.  

Here's a Sparkfun example:
http://www.sparkfun.com/datasheets/RF/KLP_Walkthrough.pdf

And here's an example just using the SoftwareSerial... which can also be done with the hardware version by changing it all to Serial.print  instead of rfSerial.print (and connecting to right pins of course):
http://dma.ucla.edu/senselab/node/389


If you have enough sketch space, Virtual Wire really helps eliminating the chance of noise.. but it also limits the amount of data being able to be sent per second.  So you win some and you lose some. ;P

P18F4550

#24
Aug 26, 2010, 01:36 pm Last Edit: Aug 26, 2010, 01:36 pm by Funky_Gibbon Reason: 1
@Natman
Quote
Serial.print(6)

dont forget the ;
Like so Serial.print(6);

@000
What are you trying to connect, forget the radio's for now, just get the 2 devices connected serially first then worry about the radio's after,learn to  walk before running

000

#25
Aug 26, 2010, 01:53 pm Last Edit: Aug 26, 2010, 02:09 pm by dev_000 Reason: 1
@ captainObvious
Yup. that's the transmitter/receiver I was talking about. Thanx for the link will try it out today. :)

[edit]
In the link (http://dma.ucla.edu/senselab/node/389) Arduino #1 is connected only to transmitter right?

Please refer to the following figure.


[/edit]

000

Can someone help on this?  :-/

PaulS

Quote
Can someone help on this?

We're trying. But, at this point, you need to be much more specific about what you need help with.

000

what more information do you need?  :) I cant get the answer to the question asked in the figure.  :(

CaptainObvious

000,

For Software Serial you need to initialize both the TX and RX pins, even if you're not using them both.  You can set it to a pin you're not using and just don't connect anything to it.


I'm not sure what more we can offer you, those tutorial/walk-throughs are pretty clear. :P

Go Up