Having trouble with a periodically resetting NodeMCU ESP-12E board (as below). I’ve read this is likely due to an insufficiently powerful and decoupled PSU. Can’t seem to stop it resetting despite using a better PSU and adding decoupling capacitors.
Anyone else had similar frustrations - and how did they ultimately resolve it?
http://www.ebay.co.uk/itm/NEW-v2-LUA-ESP8266-NodeMCU-WiFi-IoT-Development-Board-Module-ESP-12E-TESTED-/252222097441
Two for same price with CH340
V3 4 M
http://s.aliexpress.com/fYJrq6bq
Just checking, are you sure it is hardware related? I.e. you can ‘let’ it reset by code (i.e. memory overflow, etc).
@Stephane_Le_Gall I know. But I wanted it quickly
@Arno_Klarenbeek Pretty sure, yes. Code is very simple indeed - just a test to flash the light on the board. And it resets at random within a minute. Code that enables WiFi makes it reset much quicker (higher power consumption?).
Sufficient pull ups or pull down’s to all gpio’s?
@Erik_Slagter All but the GPIO I’m using are unitialized. Are pull up/downs necessary? Not seen that requirement before… If I initialize unused ones as outputs and set them to high or low, should that do the trick?
It can certainly help, the ESP8266 is very sensitive to noise. I think the unitialised GPIO’s are very high impedance (which in itself is good). First step is checking pull-ups on the reset and chip enable pins though, these must be quite strong. I usually use 10k, but they can be far stronger if you have a noisy environment, up to e.g. 1k, the ESP8288 can handle that (max current sink is 16 mA).
The unit is sensitive to noise - never use a 3v3 switched supply… but another angle - sorry to complicate - I gave up entirely on LUA (after learning how to use it) as there just isn’t enough RAM once you get past simple stuff - I don’t know what things are like now but as it got anywhere NEAR full use of RAM it would just crash. Since reverting back to C and obviously getting rid of bugs I can safely say I NEVER get crashes… my boards always use a 3v3 linear supply either powered by a 5v or 12v switched supply depending on the application.
I only use switched power supplies, never problems. I find linear regulators wasteful. Also they tend not to be able to supply the spikes of current the ESP8266 requires. I used a lineair converter once, had the ESP8266 crashing often, switched to a switching regulator and it was gone. So… quite the opposite.
I don’t think you want to run anything interpreted on the ESP8266 for various reasons. My “universal I/O bridge” has 276kbytes of code and still has 30 kbytes of free RAM. It also the challenge of using code+data wisely.
Come on then Erik - “Universal IO Bridge” - spill the beans.
Have a look at http://esp8266.com or at github!
I used it with the often quoted ‘hello world’ of a simple flashing light. Same problem with LUA and using Arduino SDK.