Hi,
I have been having some difficulties getting my RF receiver working. I've been trying many libraries and examples, but my receiver has not picked up any data.
Some information about the setup:
The receiver is one of those cheap 433hz receiver from a 433hz receiver and transmitter combo.
The board I use is a Wemos D1 R2, with a ESP8266 architecture.
As for the RF remotes, I have one from a RF Socket, which uses the SF-501R protocol, and one small remote which looks like a car key.
I've been trying mulitple libraries, the last one I tried was ReceiveDemoAdvanced from the rc-switch, with the following code:
/*
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();
}
}
When I upload this code (which uploads successfully), and press a button on one of the remotes, the console stays empty.
With the wemos pinoutput, 0 translates to pin 3, so that's why I kept the 0.
The wiring can be seen below:
Hopefully someone knows the problem, be it in the code, the parts used or the wiring.
Thanks in advance!