ArduinoGeneral

ROMEO AND VIRTUALWIRE

userHead Account cancelled 2019-06-15 15:37:51 1856 Views1 Replies
Hi, I am trying to get a RF Link Receiver working with the VirtualWire Lib.

No matter which digital pin I select, I can't seem to receive any data sent from the transmitter.
The same setup with the same software works on any other duemillanove without any problems... Here's the source code:

// receiver.pde
//
// Simple example of how to use VirtualWire to receive messages
// Implements a simplex (one-way) receiver with an Rx-B1 module
//
// See VirtualWire.h for detailed API docs
// Author: Mike McCauley ([email protected])
// Copyright (C) 2008 Mike McCauley
// $Id: receiver.pde,v 1.3 2009/03/30 00:07:24 mikem Exp $

#include <VirtualWire.h>

void setup()
{
Serial.begin(9600); // Debugging only
Serial.println("setup");

// Initialise the IO and ISR
vw_set_ptt_inverted(true); // Required for DR3100
vw_setup(2000); // Bits per sec
vw_set_rx_pin(4);
vw_rx_start(); // Start the receiver PLL running
Serial.println("...started");
2019-06-19 19:15:28 Hi~ I feel a little confuse about it, could you share your connetion picture and the link of RF module with us to confirm? Or you can refer to this link to test?https://www.pjrc.com/teensy/td_libs_VirtualWire.html userHeadPic techsupport