-->
Page 1 of 1

NodeMCU Lua and 433Mhz reciver / Interupt fail / error

PostPosted: Wed Mar 30, 2016 10:08 am
by Marc R.K
Hello i'am Marc from Germany,
Nice to be a new Member in this Forum ;)

I have a little Problem and hope somebody can help me here

My setup is NodeMCU Lua Board and a simple 433 Mhz reciver :
I connect vcc from reciver to 3,3V from the NodeMcu.
I connect gnd from reciver to gnd from the NodeMcu.
I connect Data from the receiver to D1 from NodeMcu .

I test this very simple code:

Code: Select all

#include <ESP8266WiFi.h>
#include <RCSwitch.h>

RCSwitch mySwitch = RCSwitch();

void setup() {
  Serial.begin(115200);
 
  mySwitch.enableReceive(5);  // This is D1
}

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




The Problem is: it works but not every time and the range is very low...
I think it is a Problem with Interrupt because this setup without NodeMcu and with a Arduino Board works fine with a good Range.

Is it possible that the Problem is the pinsetup on the NodeMcu Lua ? Can i set the Gpio to a Interrupt Mode or similar ?!

I hope somebody can help me out

Regards from Germany ;)

Re: NodeMCU Lua and 433Mhz reciver / Interupt fail / error

PostPosted: Sun Sep 11, 2016 4:24 am
by DavidSim
Hello, I would need help on this topic: found some solution? I have tried very much but not at all. :cry:

Re: NodeMCU Lua and 433Mhz reciver / Interupt fail / error

PostPosted: Sun Oct 16, 2016 1:35 pm
by Marc R.K
Hey David , i have now no problem but i use now D7 i found that some pins want work but D7 works fine.

Let me know if it works for you too


regards from germany :)