VirtualWire Installation On Arduino IDE

VirtualWire is a simple message passing protocol designed for a range of inexpensive transmitter and receiver modules. Installing VirtualWire library in your arduino IDE is a simple task. Follow the steps given below to install VirtualWire in your Arduino IDE. My arduino version is 1.6.3 and VirtualWire version is 1.15.

  • Download the latest version of Arduino IDE.
  • Download the latest version of VirtualWire.
  • Extract arduino IDE and VirtualWire. Copy the VirtualWire folder and paste it in the libraries folder of your Arduino IDE as shown in the following image.

Screenshot from 2015-04-18 16:53:29

Now, restart your arduino IDE. Paste the following program to your arduino IDE and compile.

#include <VirtualWire.h>

void setup()
{
  
   // Initialize the IO and ISR
   vw_setup(2000); // Bits per sec

}
void loop()
{
    send("Hello....");
    delay(1000);    
}
void send (char *message)
{
    vw_send((uint8_t *)message, strlen(message));
    vw_wait_tx(); // Wait until the whole message has gone
}

If compiling is successful, VirtualWire installation is a big success. Otherwise, test the same using other versions of arduino and VirtualWire.

(Visited 1,237 times, 1 visits today)
paulpp644

A deep electronic enthusiast who spent most of my time for electronic experiments. I am also interested in publishing my experiments in my blog for helping other electronics enthusiasts.