TX pin current leak in deep sleep

dontsov
Posts: 4
Joined: Sun Jan 06, 2019 1:35 am

TX pin current leak in deep sleep

Postby dontsov » Sun Jan 06, 2019 1:46 am

I have a LED connected to ESP TX pin.
Image

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:
Image

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
What I do wrong?

ESP_houwenxiang
Posts: 118
Joined: Tue Jun 26, 2018 3:09 am

Re: TX pin current leak in deep sleep

Postby ESP_houwenxiang » Tue Jan 08, 2019 3:51 am

Can you try to set tx pin to input mode when entering seep_mode?
wookooho

dontsov
Posts: 4
Joined: Sun Jan 06, 2019 1:35 am

Re: TX pin current leak in deep sleep

Postby dontsov » Mon Mar 29, 2021 9:56 am

It doesn't help.
Interesting ,that if I don't use UART in my code I see TX only in booting (bootload message). During my loop LED is full OFF, but in deep sleep it shines dusk.

ESP_Sprite
Posts: 9014
Joined: Thu Nov 26, 2015 4:08 am

Re: TX pin current leak in deep sleep

Postby ESP_Sprite » Tue Mar 30, 2021 4:17 am

4uA is very little... are you sure that e.g. contaminated flux isn't causing leakage from 3.3V? That would also explain why the LED is full off when not in deep sleep (as the pin is driven hard-low then)

Who is online

Users browsing this forum: No registered users and 57 guests