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

Moderator: igrr

User avatar
By kemalihsan
#64775 Hello Folks,
I am kind of new to esp8266
Trying to implement temperature logger with nodeMCU.
I am using Arduino 1.8.2. Yet unlike arduinos, nodeMCU, when poweroff loses the
program (may be not, really not sure). I just want to power up my nodeMCU with those
cheap USB power units and make it really wireless.
Yet I upload the program with arduino IDE and when I unplug the usb, my webserver vanishes.
Is nodeMCU capable of holding the program in the memory?
Can anybody explain how to do it, to a novice like me. I guess Wemos D1 does not have this problem.
I am using linux by the way.
Thanks!!!

KK
User avatar
By urbanze
#64788 Sketches are permanent. but, if you attach GPIO0 in the GND (in esp01) and restart esp, he start in "Programmer mode". for this, remove the GPIO0 from the GND, after reboot, sketch loaded normally!
User avatar
By kemalihsan
#64802
urbanze wrote:Sketches are permanent. but, if you attach GPIO0 in the GND (in esp01) and restart esp, he start in "Programmer mode". for this, remove the GPIO0 from the GND, after reboot, sketch loaded normally!


Thank you very much urbanze.
I just have the nodemcu devkit on black PCB
it does not written on the PCB yet I think it is v1.0 which has ESP8266 12E.

I am also kind of newbie, so is this GPIO0 stuff universal for all ESP8266 versions?
By the way you mean the GND pin on the PCB I believe, yet there are many GND pins. Any will do?


So let me get it correctly:
1-) while unplugged I connect GPIO0 to GND without any resistor
2-) upload the sketch after plugging it (via USB for Arduino IDE 1.8.2)
3-) disconnect the esp
4-) connect power unit to esp via USB
5-) disconnect the GPIO0 from GND

For step 4 and 5 I was not sure BTW.

Thanks....

KK
User avatar
By urbanze
#64810
kemalihsan wrote:
urbanze wrote:Sketches are permanent. but, if you attach GPIO0 in the GND (in esp01) and restart esp, he start in "Programmer mode". for this, remove the GPIO0 from the GND, after reboot, sketch loaded normally!


Thank you very much urbanze.
I just have the nodemcu devkit on black PCB
it does not written on the PCB yet I think it is v1.0 which has ESP8266 12E.

I am also kind of newbie, so is this GPIO0 stuff universal for all ESP8266 versions?
By the way you mean the GND pin on the PCB I believe, yet there are many GND pins. Any will do?


So let me get it correctly:
1-) while unplugged I connect GPIO0 to GND without any resistor
2-) upload the sketch after plugging it (via USB for Arduino IDE 1.8.2)
3-) disconnect the esp
4-) connect power unit to esp via USB
5-) disconnect the GPIO0 from GND

For step 4 and 5 I was not sure BTW.

Thanks....

KK


if you use nodemcu, nothingi s necessary, see the NODEMCU PIN MAP, to start your last sketch, you need to turn on your esp WITHOUT gpio FLASHER (esp01 is gpio0) in gnd. if gpio0 stay in gnd and you turn on, he start`s on programmer mode, then..... turn on node without gpio flash pin in gnd

sorry for my english :D i don`t speak very well :(