News

moodlite - Coming soon


NodeMCU keeps restarting

DMNC · 120

DMNC

  • Newbie
  • *
    • Posts: 2
    • Likes: +0/-0
    • View Profile
on: March 02, 2019, 03:54:03 PM
Hey,

i'm kind of at a loss here, as i get everything running initially, but the NodeMCU keeps restarting.

Most of the time it hangs when i change a value (e.g. brightness) in the interface, and will restart after this.

I tried the following:
  • Upload the Arduino Code again
  • Reflash the NodeMCU Firmware
  • Check the electrical connections / resolder everything
  • Place a Capacitor across VIN/GND

When i watch whats happening via Serial Monitor, i get a Reset Cause 4. So i guess the code is stuck or malfunctioning http://iot-bits.com/esp8266/esp8266-reset-causes-rst-cause/

The only changes i made to the code were where i needed to configure the wifi data.



m.danielsen

  • Newbie
  • *
    • Posts: 1
    • Likes: +0/-0
    • View Profile
Reply #1 on: March 12, 2019, 11:54:45 AM
I'm using a Wemos D1 Mini (cheap china copy)
But i had this problem, but then somehow i stopped working - that was during testing and after assembling the first 3 triangles....

But now i added more and upped the led count and now i have the same problem again.

Everytime i try and change something, anything it chrashes and reboots...

Love the software but need help - Thanks.



DMNC

  • Newbie
  • *
    • Posts: 2
    • Likes: +0/-0
    • View Profile
Reply #2 on: March 12, 2019, 06:46:58 PM
If it helps, i found the mistake that led to my nodemcu restarting over and over again: it was indeed a bug in the code, where i changed

Code: [Select]
Line 116:  #define NUM_LEDS 253

into

Code: [Select]
Line 116:  #define NUM_LEDS 9

thinking i had to define the current number of leds here.

After reseting the value to 253 the restarts stopped.



WatchmeBuild

  • Newbie
  • *
    • Posts: 1
    • Likes: +0/-0
    • View Profile
Reply #3 on: March 13, 2019, 06:07:21 PM
adding on to this. My Chinese NodeMCU refuses to work unless I disable RESET_BUTTON. Boot loop 2

So to clarify for anyone looking.
#define RESET_BUTTON               false



 


SMF spam blocked by CleanTalk