Virtualwire rx problem

Hi,

I originally posted this message to Hardware->Interfacing, but since then i have come to the conclusion that this is a software problem. Since i posted i have tried to connect the pins directly from the transmitting unit to the receiving unit, but i still cannot receive anything with the code below.

Im trying to send data between a Arduino Duemilanove and a homemade Arduino setup (breadboard with relevant components and a atmega268, running on 8 Mhz external crystal).

On the homemade arduino i have a 433Mhz transmitter, on the Duemilanove a receiver. The data pins are connected on the default pins and described in the virtualwire manual (pin 11 and 12)
If a apply a LED to the data pin of the transmitter and a LED to the data pin of the receiver they blink synchronous, which indicates that data is being sent over the RF link.

But for some reason the arduino never seems to notice it is receiving data. (no output in the serial console at 9600 baud)

RF link kit im using is the "433Mhz RF link kit - WLS107B4B" from seedstudio. (http://www.seeedstudio.com/depot/433mhz-rf-link-kit-p-127.html?cPath=2)

My transmit code:
Code:

#include <VirtualWire.h>

void setup()
{
  vw_set_ptt_inverted(true);
  vw_setup(200);
  
}

void loop()
{
  const char *msg = "hello";
  vw_send((uint8_t *)msg, strlen(msg));
  vw_wait_tx;
  delay(400);
  
}

My receiver code:

#include <VirtualWire.h>
void setup()
{
    Serial.begin(9600);
    Serial.println("setup");
vw_set_ptt_inverted(true);
        vw_setup(200);


    vw_rx_start();
}

void loop()
{
  uint8_t buf[VW_MAX_MESSAGE_LEN];
  uint8_t buflen = VW_MAX_MESSAGE_LEN;
  if (vw_get_message(buf, &buflen))
  {
    int i;
    Serial.print("Got: ");
    for (i = 0; i < buflen; i++)
    {
      Serial.print(buf[i], HEX);
      Serial.print(" ");
    }
    Serial.println("");
  }
}

Any hints?

TX and RX pins are standard 11 and 12, look in the library cpp and you'll see.

Uhmr... i know :wink: I allready stated that in my original mail.

But im wondering it the problem might be that one unit it running at 16 Mhz and the other at 8 Mhz?