Hey mates,
Project
Read out frequencies for rf434 plugs
Setup
Arduino Uno
Shown 434 receiver
i’m sitting here for hours, trying to get this old 434mhz receiver to work:
For this i used this tutorial: Inkling (and many many others) but i dont get this thing to work. I used excactly the same setup like the guy in the book, but he doesnt read anything.
If i do a binary reading like here https://www.sparkfun.com/datasheets/RF/KLP_Walkthrough.pdf (on the third page, the receiver part), it prints me a lot of static noise into my serial monitor, and if I press a button on my remote, I get a lot more noise, so something is received, but somehow VirtualWire doesn’t read it. I used the newest version from the site (although it’s obviously deprecated) but got no errors or something… I’m really out of ideas how this could work…
Again, this is my code:
#include <VirtualWire.h>
byte message[VW_MAX_MESSAGE_LEN]; // a buffer to hold the incoming messages
byte msgLength = VW_MAX_MESSAGE_LEN; // the size of the message
void setup()
{
Serial.begin(9600);
Serial.println("Ready");
// Initialize the IO and ISR
vw_setup(2400); // Bits per sec
vw_rx_start(); // Start the receiver
}
void loop()
{
if (vw_get_message(message, &msgLength)) // Non-blocking
{
Serial.print("Got: ");
for (int i = 0; i < msgLength; i++)
{
Serial.write(message[i]);
}
Serial.println();
}
}
I hope you can help me…
Regards,
mietzekotze