Chat freely about anything...

User avatar
By cyberteen
#46849 Hey guys,
I need to reset my esp-12 at times using software, without manually doing it. How do you guys suggest i do it?
I have a project running arduino uno along with the esp-12. I am using arduino IDE to program the esp.
1) is it possible to connect RST pin of ESP directly to a digital pin of arduino and reset it by making it low-->HIGH. from arduino?

2) I also found that in some posts, that ppl suggest using CH_PD to restart the module. is it so?

3) is it possible to connect esp's RST pin to one of its OWN digital pin, make it go low using digitalwrite()?

So, pls suggest me if any of the above is possible, or even sensible in the first place to do. Or if u guys have a better approach to it. All i need is a way to reset the esp using code.

Thanks in advance :)
User avatar
By Barnabybear
#46850 Hi,
1, yes, through a 1K resistor to avoid damaging the in / outputs.
2, yes.
3, yes, you need a pull up resistor to pull RST high when the ESP8266 boots - becarefull which GPIOs you use as some have signals on them at boot - I think GPIOs 0 and 2 will just end up in reset loops as GPIO 2 is a clock and off hand I can't remember what GPIO 0 does but I'm sure it changes state afew times before it stablises as GPIO 0.

viewtopic.php?f=11&t=4458&hilit=pir

For a soft reset,
Code: Select allESP.restart();

is easiest. I believe if you put a number in the parentheses it delays the restart by that many milliseconds in order to complete any tasks running, but someone else will have to confirm as I've never need to use that feature.