
When a messageis available (good checksum or not), vw_have_message() will return true. vw_setup(uint16_t speed) Start the receiver PLL running ,You must do this before you can receive any messages,Call vw_rx_start() You must do this before you can receive any messages. the speed will be a Number of Bit Per Second between 0-9600, for short distance you can use fast speed, For long distance "Up to 90m" you must use lower transmission speed as much as possible. The full function for this library : To use the VirtualWire library, you must have #include To select the Transmitter Data Pin, void : vw_set_tx_pin To select the Receiver Data Pin, void : vw_set_rx_pin Setup the speed of transmission, The speed of Tx must be as same as On Rx. They work a bit with ASK wireless, but not as well as this code. Can we use Serial communication with ? answer is No ASK receivers require a burst of training pulses to synchronize the transmitter and receiver, and also requires good balance between 0s and 1s in the message stream in order to maintain the DC balance of the message, UARTs do not provide these. Messages are sent with a training preamble, message length and checksum. Messages are sent with 4-to-6 bit encoding for good DC balance, and a CRC checksum for message integrity. Supports a number of inexpensive radio transmitters and receivers. VirtualWire is an Arduino library that provides features to send short messages, without addressing, retransmit or acknowledgment, a bit like UDP over wireless, using ASK (amplitude shift keying). this code for transmitter : //simple Tx on pin D12 //Written By : Mohannad Rawashdeh // 3:00pm, // //. after extract the folder, and move it to " Libraries " on the arduino Folder this is a simple code, it will send character '1' and after 2 sec will send character '0' and so on.


This library allow You to send and receive data"byte" and string easily, First Download the library from Here. Supports a number of inexpensive radio transmitters and receivers. Fortunately, There is a popular Library for arduino Called "" VirtualWire"" Created by Mike McCauley VirtualWire is an Arduino library that provides features to send short messages, without addressing, retransmit or acknowledgment, a bit like UDP over wireless, using ASK (amplitude shift keying).
