-->
Page 1 of 1

erase sketch?

PostPosted: Wed Sep 07, 2016 7:46 pm
by yukardo
Hello Everybody,

I am working with the ESP8266 using the Arduino IDE.

I have to connect the GPIO0 to GND for programming.

After upload the sketch, I connect GPIO0 to a button pin. For that moment the ESP8266 works fine.

But if I turn off and turn on the ESP8266, it does not work.

It seems it loses the program.

Tell me what can I do?

Thanks.

Re: erase sketch?

PostPosted: Wed Sep 07, 2016 8:00 pm
by martinayotte
Do you have PullUp resistors on both GPIO2/GPIO0 ?

Re: erase sketch?

PostPosted: Fri Sep 09, 2016 10:58 am
by mrburnette
The "generic" wiring for the ESP is here:
https://github.com/esp8266/Arduino/blob/master/doc/boards.md#esp-to-serial

Reset must have a pull-up resistor - 10K is nominal.

Honestly, at the low price of the NodeMCU: under $3 USD, these make excellent bench development devices ... then, for size (or other reasons) move to a module for the final build.


Ray

Note: product link is representative but not meant to be an endorsement or suggestion of fitness for any purpose whatsoever.