It is not a pulldown resistor. Is for limitation.
I don´t know the problem is the same, i am asking here because they will use the same trick.
Ok, your resistor is bigger as my resistor.
For testing i don't used the diode, because i read about the GPIO have protection if i put voltage to a pin that was configured as output.
Do you measure the current on deepsleep and your button trick ?
Thanks to all for replays to this old posting !
Ok, i made a test with a simple sketch, switch LED on.
Only with resistor, no diode and i do not connect a GPIO pin to CH_PD.
The diode is only to protect GPIO for reverse current ?!
ESP start and LED is on. I disconnect CH_PD from 3,3V and the LED switch of, but lights a little bit !
Same test, without resistor to GND.
ESP start and LED is on. I disconnect CH_PD from 3,3V and LED is fully of.
So if there is an resistor between CH_PD and GND it will not really work.
But if i leave the resistor and use an GPIO it os the same. The ESP will not fully switched off.
If i switched the LED of by sketch the current is same as deepsleep !
So this is the problem. So my question, anyone build this really knows the current of deepsleep and this setup ? I think the ESP have a problem with this setup !