Hi there,
has anybody expirience getting ESP8266 (ESP8266 NodeMcu) to work with Receiver RXB6 using rc-swich-library? The simple-receive-sketch looks like this
#include "Arduino.h"
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();void setup() {
Serial.begin (115200); // otherwise Arduino-Serial-Monitor can not detect data correctly
mySwitch.enableReceive(D3); // Receiver on GPIO0 => that is pin D3
Serial.println ("start");
}void loop() {
if (mySwitch.available()) {
int value = mySwitch.getReceivedValue();
if (value == 0) {
Serial.print("Unknown encoding");
} else {
Serial.print("Received ");
Serial.print( mySwitch.getReceivedValue() );
Serial.print(" / ");
Serial.print( mySwitch.getReceivedBitlength() );
Serial.print("bit ");
Serial.print("Protocol: ");
Serial.println( mySwitch.getReceivedProtocol() );
}
mySwitch.resetAvailable();
}
}
-
RXB6 on ESP8266 GPIO0 (Pin D3) with mySwitch.enableReceive(0) / mySwitch.enableReceive(D3)
=> no receive output in seriral monitor -
same RXB6 on arduino nano using rc-switch
=> fine output -
433MHz-transmitter on ESP8266 GPIO0 (Pin D3) using rc-switch
=> working fine
any idea?
Thanks a lot