RF 433MHz module to switch on a LED

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.

http://arduinobasics.blogspot.com/2014/06/433-mhz-rf-module-with-arduino-tutorial.html

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.

VirtualWire is very good at it. It is now part of RadioHead.
When you use VirtualWire or RadioHead, always use the original website and the newest version.
http://www.airspayce.com/mikem/arduino/VirtualWire/
http://www.airspayce.com/mikem/arduino/RadioHead/

When you want to turn on a led, it might seem very simple, but the best way to do that is using VirtualWire or RadioHead.

Could you please explain how i should use these libraries to accomplish my task. It seems that VirtualWire is simpler than RadioHead.

So i should just modify it that on receiving a particular message or data it switches the LED on or off?

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 :slight_smile:

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

Thank you, i will look into these and try and see if i am able to do it.

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.