-->
Page 1 of 4

NodeMCU v3 + SRX882 causing resets

PostPosted: Thu Feb 04, 2016 2:25 pm
by bkenobi
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?

Re: NodeMCU v3 + SRX882 causing resets

PostPosted: Thu Feb 04, 2016 7:43 pm
by bkenobi
After more research, it appears that resets are a common issue for new users though there are a variety of reasons for it. I have looked at the specs for the RF module and it indicates it draws 2.8mA@433MHz. I also tried the same code and RF module on a Wemos D1 which has a DS1117 3.3v regulator whose spec sheet indicates it can supply up to 1.5mA max. I don't know what the ESP-12E needs, but I would find it difficult to believe that without using WiFi transmission I'd be anywhere close to this limit. So, I assume this must be an issue with the code (even though it's derived from a working UNO code and is very simple).

Re: NodeMCU v3 + SRX882 causing resets

PostPosted: Thu Feb 04, 2016 8:09 pm
by bkenobi
Now that I am back at the hardware, I am able to post output of the code. I modified it slightly to dump the micros value at the time of the pulse just to see if it would help. Here is an example:

Code: Select all ets Jan  8 2013,rst cause:4, boot mode:(3,7)

wdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld
228615 244
228762 147
228966 204
229688 675
229986 254
230325 292
230432 107
231021 589
231194 173
231778 584
232289 466
232466 177
233035 569
233407 127
234137 641
234502 288
235002 420
235529 465
235686 104
235918 153
236026 108
236276 250
236572 197
236781 156
237623 793

 ets Jan  8 2013,rst cause:4, boot mode:(3,7)

wdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld
230127 842
230274 147
230443 169
230676 233
230779 103
230950 171
231361 411
231756 395
232084 262
232215 131
232435 220
232764 285
233018 155
233343 32
 ets Jan  8 2013,rst cause:4, boot mode:(3,7)

wdt reset
load 0x4010f000, len 1264, room 16
tail 0
chksum 0x42
csum 0x42
~ld
233539 234
233685 146
234059 374
235071 800
235238 115
235403 104
235525 122
235752 227
235944 192
236264 156
236530 186
236832 222
236945 113
237070 125
237319 169
237652 333
238271 372
238423 152
238750 327
239247 444
239483 122
240050 567
2404

Re: NodeMCU v3 + SRX882 causing resets

PostPosted: Thu Feb 04, 2016 10:47 pm
by saabman
Id love to offer some assitnace but resets and locking up are driving me insane as well with my NodeMCU.

apparently radom WDT resets and from time to time it just hangs.