Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By simplesi
#36856 I've used NodeMCU Lua and it retains programs so that I can discconect from USB and run standalone with just 5V PSU.
But faced with normal memory issues with Lua - I've tried switching to Arduino IDE

I tried this with Arduino IDE and no response when just powered from 5V. Sketch only works after uploading and keeping USB connected.

I tried the simple Blink sketch just to eliminate my programming and it behaves the same.

Is this normal?

OR can it be easily fixed? :)

Simon
User avatar
By simplesi
#36926
The GPIO0 should be returned to HIGH to boot in Exec mode.
If you recycle power after a working upload, it will re-enter in UpLoad mode.


Aah - great clue there :)

I had an IR Diode connected to GPIO0 that was obviously preventing this from happening!

I changed my sketch to use GPIO4 (D2 on NodeMCU) and it works fine

I now have a WiFi enabled IR Sender :)

Thanks very much
Simon