I have been trying to receive JUST A SIGNAL with 2 different rf receivers both my remotes and the receiver run on 433mhz but it just doesnt work i dont have some wrong wiring too. I tryed to see if the receiver is working by putting and led to data pins and when i use the remote i get a blink (you can see it on the video) and the code looks like this;
Hardware: Arduino Uno, 433MHZ RF receiver
Connecting done as the code example suggests.
/*
Example for receiving
https://github.com/sui77/rc-switch/
If you want to visualize a telegram copy the raw data and
paste it into http://test.sui.li/oszi/
*/
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();
void setup() {
Serial.begin(9600);
mySwitch.enableReceive(0); // Receiver on interrupt 0 => that is pin #2
}
void loop() {
if (mySwitch.available()) {
output(mySwitch.getReceivedValue(), mySwitch.getReceivedBitlength(), mySwitch.getReceivedDelay(), mySwitch.getReceivedRawdata(),mySwitch.getReceivedProtocol());
mySwitch.resetAvailable();
}
}
