-->
Page 4 of 8

Re: Wemos D1 mini & deepSleep() hang

PostPosted: Sat Feb 20, 2016 3:09 pm
by PaulRB
Thankyou Martin! I will try your resistor idea and respond on this thread.

So my theory about GPIO16 pulling RES up harder than the CH340 can pull it down was correct! But, clearly, not harder than the reset pushbutton can pull it down.

Re: Wemos D1 mini & deepSleep() hang

PostPosted: Sat Feb 20, 2016 3:43 pm
by martinayotte
Yes ! GPIO16 isn't in OpenDrain mode (floating output when HIGH) during the sleep, like I though, it is really output a HIGH, probably stronger than the LOW provided the CH340, fighting each other, and the third fighter, the button is the strongest since it is a mechanical switch to GND, but it is actually shorting GPIO16 strongly, which in long term can damage it.
So, with a 1K or 470R resistor, no damage will be done, even with another kind of external reset source.

Re: Wemos D1 mini & deepSleep() hang

PostPosted: Tue Feb 23, 2016 1:57 am
by PaulRB
martinayotte wrote:So, with a 1K or 470R resistor, no damage will be done

What about a diode? Or would that leave nothing to pull RES high, causing it to float and not keep the esp reliably asleep?

Re: Wemos D1 mini & deepSleep() hang

PostPosted: Tue Feb 23, 2016 9:23 am
by martinayotte
Yes, diode will work too, as long as it forward junction voltage is low enough. But why trying to use that if a simple resistor is working fine ?