England
Offline
Full Member
Karma: 0
Posts: 211
Arduino rocks
|
 |
« Reply #15 on: August 25, 2010, 02:16:50 pm » |
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.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Jr. Member
Karma: 0
Posts: 95
NAM Modular Systems industries
|
 |
« Reply #16 on: August 25, 2010, 07:20:07 pm » |
Serial.print(6) Its the same as communicating over the computer
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 0
Posts: 229
|
 |
« Reply #17 on: August 25, 2010, 10:20:04 pm » |
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.pdfAm 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? :-/ 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? 
|
|
|
|
|
Logged
|
|
|
|
|
St. Leonards-on-Sea, E. Sussex, UK.
Offline
Sr. Member
Karma: 2
Posts: 288
Ancient developer
|
 |
« Reply #18 on: August 26, 2010, 12:29:45 am » |
Pin 2 is the Tx data pin.
|
|
|
|
|
Logged
|
Leon Heller G1HSM
|
|
|
|
0
Offline
Full Member
Karma: 0
Posts: 229
|
 |
« Reply #19 on: August 26, 2010, 12:36:36 am » |
So Pin 4 of transmitter module must be connected to digital pin 2 of Arduino and to the antenna ?
|
|
|
|
|
Logged
|
|
|
|
|
Melbourne, Australia
Offline
Full Member
Karma: 0
Posts: 226
Cyborg-in-progress
|
 |
« Reply #20 on: August 26, 2010, 12:41:19 am » |
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
|
|
|
|
« Last Edit: August 26, 2010, 12:41:45 am by jonoxer »
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 0
Posts: 229
|
 |
« Reply #21 on: August 26, 2010, 05:10:21 am » |
Thanx for reply 
|
|
|
|
|
Logged
|
|
|
|
|
England
Offline
Full Member
Karma: 0
Posts: 211
Arduino rocks
|
 |
« Reply #22 on: August 26, 2010, 05:20:36 am » |
right, didn't realise you were using unidirectional devices.
|
|
|
|
|
Logged
|
|
|
|
|
Spokane, Washington
Offline
God Member
Karma: 0
Posts: 686
My name is Bob, and I'm an addict.
|
 |
« Reply #23 on: August 26, 2010, 05:34:29 am » |
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.pdfAnd 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/389If 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
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Sr. Member
Karma: 5
Posts: 469
what?
|
 |
« Reply #24 on: August 26, 2010, 06:36:18 am » |
@Natman 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
|
|
|
|
« Last Edit: August 26, 2010, 06:36:45 am by Funky_Gibbon »
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 0
Posts: 229
|
 |
« Reply #25 on: August 26, 2010, 06:53:23 am » |
@ 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]
|
|
|
|
« Last Edit: August 26, 2010, 07:09:26 am by dev_000 »
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 0
Posts: 229
|
 |
« Reply #26 on: August 27, 2010, 01:14:37 pm » |
Can someone help on this? :-/
|
|
|
|
|
Logged
|
|
|
|
|
Seattle, WA USA
Offline
Brattain Member
Karma: 313
Posts: 35507
Seattle, WA USA
|
 |
« Reply #27 on: August 27, 2010, 04:14:44 pm » |
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.
|
|
|
|
|
Logged
|
|
|
|
|
0
Offline
Full Member
Karma: 0
Posts: 229
|
 |
« Reply #28 on: August 27, 2010, 10:28:51 pm » |
what more information do you need?  I cant get the answer to the question asked in the figure. 
|
|
|
|
|
Logged
|
|
|
|
|
Spokane, Washington
Offline
God Member
Karma: 0
Posts: 686
My name is Bob, and I'm an addict.
|
 |
« Reply #29 on: August 28, 2010, 08:39:05 am » |
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. 
|
|
|
|
|
Logged
|
|
|
|
|
|