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,
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: