433 MHz RF Programming Problem

Help needed please.

I have just bought a 433 MHz RF module (TX and RX) and I'm struggling at the first hurdle. Each are connected to a separate Arduino and all I want to do (initially) is to get one to send and one to receive. I have tried the VirtualWire examples and the code from here

C:\ARDUINO\RF Transmitter And Receiver\Sparkfun\RFASK_Example_Code_pde.htm

Each time that I try to upload the receiver sketch (no, I haven't got as far as trying the transmitter sketch) I get the following -

'vw_get_message' was not declared in this scope

I'm new to all this and need someone to point me in the right direction

Thanks

Hi

The module can be found here -

http://cgi.ebay.co.uk/ws/eBayISAPI.dll?ViewItem&item=121094405089#ht_5072wt_1136

The pins are all well labelled well so wiring isn'r the issue. The problem is with trying to upload the sketch

Thanks

Those are the very cheap ASK modules. The VirtualWire is the only good library for it.

Please don't use the Sparkfunc code, that is a copy of VirtualWire.
Use the original, http://www.airspayce.com/mikem/arduino/

The VirtualWire library contains examples.

You have to copy the VirtualWire library in the "libraries" folder. That folder is in the same folder as your projects.

Once you have that Library installed, you can select an example from within the Arduino IDE (The Arduino software environment).
That should compile without problem.

I don't know what you have copied, perhaps you have to remove that.
If you don't know how to do it, just ask.

OK! (sort of)
Deleting the library and then installing the version that yoreceiver you recommended enabled me to upload the sketches to the Arduinos (Arduini?). The sketches are the transmitter and receiver examples that came with the library. The LED on the transmitter is happy blinking away but the receiver isn't responding. The serail monitor just says 'setup'. I have the data line from both the transmitter and receiver going to digital pin 3. There is no mention in the sketched as to which pin the data has to be plunbed into. Any ideas?

Thanks

You have to do some reading.
For example the use of functions vw_set_tx_pin() vw_set_rx_pin().

Hi

I've just added the necessary functions to the respective arduinos -
vw_set_tx_pin(3);
vw_set_tx_pin(3);
And they are working like a dream. It's strange that these lines of code were missing from the examples that came with the library. Anyway, all's good.

Thank you so much for your help

Sorry for the typo. I did mean

vw_set_tx_pin(3);
vw_set_rx_pin(3);

Sorry for the typo. I did mean

vw_set_tx_pin(3);
vw_set_rx_pin(3);

So, you are trying to send and receive on the same pin?