TX pin current leak in deep sleep
Posted: Sun Jan 06, 2019 1:46 am
I have a LED connected to ESP TX pin.
The LED is very bright. When I turn off pin and call deepSleep the LED doesn't turn off fully. 4uA are leaking through pin. See the picture:
If i touch TX pin by oscilloscope it turned off and scheme consumption decreased. Sometimes it turned off by finger touch...
What I do wrong?
The LED is very bright. When I turn off pin and call deepSleep the LED doesn't turn off fully. 4uA are leaking through pin. See the picture:
If i touch TX pin by oscilloscope it turned off and scheme consumption decreased. Sometimes it turned off by finger touch...
Code: Select all
Serial.flush(); Serial.end(); --- doesn't help
twi_stop(); //turn off i2c line --- doesn't help
ESP.deepSleep(0, RF_DEFAULT);
//..... 50 ms .....
// EN set to LOW by attiny