VirtualWire Library for chipKIT


I have modified the VirtualWire library originally developed 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 a library that provides features to send short messages without addressing, retransmit, or acknowledgment, a bit like UDP over wireless, using ASK (amplitude shift keying). It 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.

In addition, I have added 2 functions in the VirtualWire lib, vw_send_float and vw_get_float.

These functions allow you to:

  • Transmit float values
  • Manage source value helpful in case of one receiver connected to several sources
  • Manage the type of data transmitted, currently 2 types of data are defined:
    • #define VW_TEMPERATURE_DATA_TYPE 250
    • #define VW_LIGHT_DATA_TYPE 251

For more information, click the following links:

Don’t hesitate to use VirtualWire, and feel free to ask any questions. Eric
VN:F [1.9.22_1171]
Rating: 10.0/10 (1 vote cast)
VN:F [1.9.22_1171]
Rating: 0 (from 0 votes)