Wireless Transmitter Modules allow your Arduino to wirelessly comunicate with other arduinos, or with radio frequency (RF) controlled devices that operate in the same frequency (433Mhz in this case).
They work in pairs, meaning you need both a receiver and a transmitter to comunicate with each other.
The receiver has 4 pins, but we actually use 3 of them: GND (Ground), VCC (5V) and one DATA pin.
There are lot of similar modules, but most of them either have a different wiring, or operate in a different frequency.
On the Receiver wire the pin labeled "ATAD" to pin 2, "GND" to GND, and "VCC" to 5V on the Arduino
On the Transmitter wire one of the pins labeled "DATA" (it doesn't matter wich one, ax long as you use only one of the "DATA" pins) to pin 10, "GND" to GND, and "VCC" to 5V on the second Arduino.
This code depends on the RC-Switch library, wich can be downloaded here: RC Switch Library Download
After copying and uploading this code your Transmitter module should be sending wireless signals. After copying and uploading this code your Receiver module should be receiving the wireless signals your Transmitter is sending. If you want to modify the signals, simply change the line:
mySwitch.send("10000100011000000000010100"); //Replace the number inside
Open the serial monitor, with the Receiver board connected to the computer, and you should see some signals
Resources & Related Links:
Author: Daniel Ruhman
Please feel free to leave any comments or questions you may have about this module.