NodeMCU v3 + SRX882 causing resets
Posted: Thu Feb 04, 2016 2:25 pm
I'm trying to move a project from an UNO with ethernet shield over to the NodeMCU v3. The basic project is a 433MHz sensor to MQTT gateway. I have a working solution for UNO but the range is bad and requires specific placement in my home. I have hopes that the ESP8266 solution will allow for better range (either through better placement of the gateway or using an RFM69 module). I am slowly gaining understanding of how to use the Arduino IDE to program the ESP so it's possible I'm doing something wrong.
The attached sketch is slightly modified from one published for the Arduino. Basically, the RF module is hooked to a digital input (D4 in this case). The code uses an interrupt to trigger a write the pulse time to serial. When run, I see a flood of times and never see anything that looks like the 433MHz signals from any of my sensors. Also, after a few seconds the module seems to lock up. It eventually dumps gibberish to serial and then continues.
I do not know if the issue is with the code or if the RF module which worked fine at 5v on UNO is just unreliable at 3v3 on ESP. The spec sheet indicates it should work fine on either 3v3 or 5v with lower antenna gain from a lower supply voltage. I also confirmed via an Arduino oscilloscope that the logic level of the RF is 3v3 with 3v3 input.
Comments/suggestions?
The attached sketch is slightly modified from one published for the Arduino. Basically, the RF module is hooked to a digital input (D4 in this case). The code uses an interrupt to trigger a write the pulse time to serial. When run, I see a flood of times and never see anything that looks like the 433MHz signals from any of my sensors. Also, after a few seconds the module seems to lock up. It eventually dumps gibberish to serial and then continues.
I do not know if the issue is with the code or if the RF module which worked fine at 5v on UNO is just unreliable at 3v3 on ESP. The spec sheet indicates it should work fine on either 3v3 or 5v with lower antenna gain from a lower supply voltage. I also confirmed via an Arduino oscilloscope that the logic level of the RF is 3v3 with 3v3 input.
Comments/suggestions?