Hello guys, i was wondering if you could help me out writing a program to use the above said RF module to switch a LED on and off for a particular time. A timed step input from the transmitter should reflect on the receiver. I followed the tutorial from this blog and it does not seem to work. And other resources seem too advance for my purpose, they are about sending data.
The code is available on the link.
I cannot make the signal reflect on the receiver side, i've try different timed pulses (2s to 10s). Doesnt work. The data pin on the receiver keeps on flickering.
They don't work like that. I think the example in the link is wrong.
The receiver increases the gain until noise is received. Since the output datarate is limited, the data output of the receiver can be up to 4kHz or higher (that is when nothing is transmitted).
The special libraries are trying to find meaningful data between the noise.
Yes, use the included examples of the "Receiver" and the "Transmitter".
You can transmit a single byte, and use that as a binary number: 0 for off, 1 for on.
Have a look at the examples of the RadioHead. The ask/ask_receiver and ask/ask_transmitter.
You might like those more
You have to search for the default pins that are used by the library.
The RadioHead ASK has default pin 11 and 12, as you can read here: RadioHead: RH_ASK Class Reference
Install the library with its zip-file : http://arduino.cc/en/guide/libraries
After that you can open the examples in the menu, and the examples of the library are added to the list.