433 in combination with Wemos D1

  • I have a wemos D1 and I want it to receive 433 signals from my remote light controller (KAKU) .
    I have tried the radiohead library and the rc-switch but I wasn't able to get it working.

    I tested it first on my Uno . There both the examples worked, but I am not able to get it working on the Wemos D1.
    Does anyone has a working setup with a 433 receiver in combination with Wemos D1 and can give me some tips?
    I hope anyone can help.

  • I don't know what happened but after I wrote my help question I got it working. Maybe I can help someone else with the code below (written by http://www.finklabs.org/articles/find-codes-used-by-rf-radio-control.html):
    Simple RF receiver based on


    #include "RCSwitch.h"

    RCSwitch mySwitch = RCSwitch();

    void setup() {
    mySwitch.enableReceive(13); // Receiver on interrupt GPio 13 => that is pin D7
    Serial.println("ESP8266 RF receiver scanning now...");

    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() );


  • Thanks for this. It was helpful.

Log in to reply

Looks like your connection to WEMOS Forum was lost, please wait while we try to reconnect.