chipKIT® Development Platform

Inspired by Arduino™

NEW Virtual Wire lib for CHIPKIT

Created Tue, 02 Dec 2014 22:38:38 +0000 by PICedh


Tue, 02 Dec 2014 22:38:38 +0000


I have modified the lib Virtual Wire originally developped for Arduino in order to be able to run it on PIC32 Microcontrollers The main changes concern the interruption setup and handling (OC1 and Timer 2)

VirtualWire is an library that provides features to send short messages, withoutaddressing, retransmit or acknowledgment, a bit like UDP over wireless, using ASK (amplitude shift keying). Supports a number of inexpensive radio transmitters and receivers. All that is required is transmit data, receive data and (for transmitters, optionally) a PTT transmitter enable.

The source code is avalable here


Doc is avalable on my site [url][/url]

Don't hesitate to use and feel free to ask any questions



Wed, 10 Dec 2014 01:29:20 +0000

This sounds really interesting. Are there any transceivers in particular, that you would recommend? What module(s) have you tested with?



Wed, 10 Dec 2014 09:56:12 +0000

I think it should work with all of this ultra cheap 315/433mhz RF modules (reciever & transmitter for less than an euro) you get on ebay or aliexpress. Some info links: ...and so on.


Thu, 18 Dec 2014 20:43:52 +0000

I use RF Link Transmitter - 434MHz and RF Link Receiver - 4800bps (434MHz)

They are very cheap (3$)

Before I used XBee modules that are very expensive


Fri, 03 Apr 2015 09:53:25 +0000

I have added new functions in my lib that allow transmitting float data and identifying the source and the type of data. Very helpfull in case of multiple sensors (temperature, pressure, acoustic, brightness ...)