ESP-MQTT-JSON-Multisensor icon indicating copy to clipboard operation
ESP-MQTT-JSON-Multisensor copied to clipboard

Constant ESP reboots

Open boardyuk opened this issue 7 years ago • 6 comments

Hi,

I've just setup 1 of these nodes to test as I want to have motion detection for some of the rooms in my house to control the lights with Home Assistant, however I'm experiencing a constant reboot of the ESP which is a little strange. I've got the ESP connected to my PC via USB to watch the serial monitor for the time being to ensure all messages are getting to MQTT.

Every few minutes (no specific timeout) the ESP is rebooting itself. I've got all the sensors connected except the RGB LED as I'm still waiting for those to arrive and I'm also undecided if I want the LED on all the nodes. The error I'm getting is -

rst cause:2, boot mode:(3,7)

load 0x4010f000, len 1384, room 16 
tail 8
chksum 0x2d
csum 0x2d
v614f7c32
~ld

I've had a look and it seems to be related to a reset pin, however I can't really see what's going on. Can anyone help me please?

Thanks!

boardyuk avatar Jun 12 '18 10:06 boardyuk

I had similar bugs. One thing that helped I think was to follow this information below in the link. My RGB led now behaves as expected and I seem to have got rid of most if not all random resets at the same time... https://github.com/bruhautomation/ESP-MQTT-JSON-Multisensor/issues/38 Also there is a branch that has the 'random -ve sensor log value data after reset' fixed and I compiled with it for my two sensors, much more stable FWIW. https://github.com/DanielXYZ2000/ESP-MQTT-JSON-Multisensor

mr-sneezy avatar Jun 12 '18 11:06 mr-sneezy

Hi Have you found a fix for this. I have got the exact same problem, it was ok this morning until i connected a switch to HA and now i have this reboot problem. I have gone back and changed all back to previous and still it restarts. I have also removed all the sensors and still the NodeMCU reboots. Thanks

IKNout avatar Jun 23 '18 16:06 IKNout

FWIW i have now found that the 2 sensors that i have built and configured seem to interfere with each other causing them to constantly reboot. If i disconnect 1 the other is great. I am guessing there is a simple solution, but i am struggling to see it at the moment.
Any ideas???

Si

IKNout avatar Jun 25 '18 20:06 IKNout

When you built the 2nd one, did you give it its own mqtt client name?

consolacion avatar Jul 14 '18 20:07 consolacion

I haven't yet found a solution to this. I've actually ripped out the RGB LED code from the sketch as I have no need for the LED and it still reboots.

I'm lost as to what is causing this really.

boardyuk avatar Aug 09 '18 15:08 boardyuk

you can try upload the sketch selecting Arduino/tools/erase flash/ sketch + wifi settings, maybe it can help you.

danielgonzacas avatar Dec 26 '18 22:12 danielgonzacas