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
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?
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.