I have used those exact parts with Virtual Wire successfully. Unless you add an antenna (13cm of wire works nicely), the range is VERY short. Like, a foot or two at most.
Make sure you are connected to the correct pins. On the TX, you have "ATAD" (Data, backwards), VCC, GND. The Antenna is at the top of the chip and is just a hole. On the RX, you have GND, 2 Data pins (shorted together, only connect one of them), and VCC. The hole on the lower corner opposite the pins in the antenna connection.
The PTT setting is irrelevant; these chips have no PTT line.
Good luck!
~James
Even though you're using the default RX and TX pins, you might try using the vw_set_rx_pin() and vw_set_tx_pin() functions to set the pins explicitly and see if that improves anything.
~James
--
Even though you're using the default RX and TX pins, you might try using the vw_set_rx_pin() and vw_set_tx_pin() functions to set the pins explicitly and see if that improves anything.
--
You received this message because you are subscribed to the Google Groups "virtualwire" group.
To unsubscribe from this group and stop receiving emails from it, send an email to virtualwire...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
--
You received this message because you are subscribed to the Google Groups "virtualwire" group.
To unsubscribe from this group and stop receiving emails from it, send an email to virtualwire...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I seem to recall someone posting about using the SoftwareSerial library with an ASK module with some success. You could try that as a troubleshooting step. I think VirtualWire is more robust, but it may provide some additional insight.
~James
On Tuesday, October 1, 2013, Simon John wrote:
On 01/10/13 07:31, James Hamilton wrote:
Is there any way you can confirm that your TX and RX are actually on the
same frequency? The TX has a visible crystal with the freq stamped on
it. Not sure about the RX.
~James
I can't see anything on the RX - it does have 315/350/433 printed on it as if there should be a DIP switch or something there, but there's not even a solder hole. The TX is definitely using a 433MHz crystal.
--
You received this message because you are subscribed to the Google Groups "virtualwire" group.
To unsubscribe from this group and stop receiving emails from it, send an email to virtualwire+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
ASK is Amplitude Shift Keying, which is exactly what this transmitter/receiver pair uses. It's a generic description of what the radio signal looks like.
As for the problems some have reported, I can't suggest a fix, sorry.
An ASK receiver, if you just do a digitalRead () on its data pin, should give a random, fluttering on/off. It's the equivalent of the snow you get on a TV that's on an empty channel. (This is why the features of the Virtual Wire library are necessary: to differentiate data from random noise.) Make sure you can see this random noise on your receiver without the Virtual Wire library. If not, either your receiver is bad or your wires are not connected correctly.
I seem to recall as well that there are pins that you can't use when you are using Virtual Wire. (They are party of the timer circuit.) Does anyone recall which pins these are?
~James
To unsubscribe from this group and stop receiving emails from it, send an email to virtualwire...@googlegroups.com.
I think I was thinking of some combination of the unspecified problem reported by Johann on Nov 14 with using pins 9 and 10 and the problem reported by Matt on Oct 7 with using SPI. Perhaps also some of the other reported problems using libraries that also use TIMER1.
Suffice it to say, the AVR platform has many interconnected pieces that demand careful attention be paid when choosing libraries and pins.
Cheers,
~James
Good question... I would use my ham radio to listen to it transmitting, but I don't think there is a radio receiver in the average household capable of receiving on that frequency. If you have a portable AM radio, you could try this: set it for an empty channel, hold the antenna very near the transmitter, and listen for interference when the transmitter is transmitting.
The other thing I would worry about is your transmitter and receiver being for the same frequency, but I'm not sure how you'd measure that, either, without a frequency counter. I have the same pair of modules, and mine aren't marked particularly well.
Lastly, what are you using for an antenna with your modules? The range without an antenna is a several inches (tens of centimeters) at best.
Good luck!
~James