ESP controlled by EN pin by another MCU. Questions.
Posted: Tue Dec 18, 2018 8:19 pm
This is my autonomous impulses counter for watermeters.
Attiny85 controls ESP8266 by EN pin:
Current deep sleep consumption is 20uA: Attiny + regulator = 10uA. ESP = 10uA.
Questions:
1. The ESP is sleeping most time. I pulled down EN. It works good.
But now, I read esp8266_hardware_design_guidelines_en "1.4.2. Power-on Sequence":
"When the power management chip turns on/off Wi-Fi through the high/low level on
GPIO, a pulse current may be generated. To avoid level instability on CHIP_EN, an RC delay (R=10 kΩ,
C=100 nF) circuit is required."
I make experiment:
a. change resistor to capacitor & add resistor 3k3 between EN and Attiny: I get 60uA current
b. change resistor to capacitor: I get 80uA current
c. connect capacitor near pull down resistor: I get same 20uA current.
Why there are not same current?
2. How many time I should wait between calling ESP.deepsleep(0); and power down EN pin?
Some guys said, that it takes 100ms to go down... Isn't it?
I try to add delay 200ms, 500ms:
Sometimes scheme consumption is 11uA (!!), but mostly 20uA.
3. There is LED on TX pin of ESP. The LED is very bright. There is straight think: It doesn't shut down =(.
See picture:
The LED current is 4uA! If i touch TX pin by oscilloscope it turned off and scheme consumption decreased. Sometimes it turned off by finger touch ).
Thanks a lot!
Attiny85 controls ESP8266 by EN pin:
Current deep sleep consumption is 20uA: Attiny + regulator = 10uA. ESP = 10uA.
Questions:
1. The ESP is sleeping most time. I pulled down EN. It works good.
But now, I read esp8266_hardware_design_guidelines_en "1.4.2. Power-on Sequence":
"When the power management chip turns on/off Wi-Fi through the high/low level on
GPIO, a pulse current may be generated. To avoid level instability on CHIP_EN, an RC delay (R=10 kΩ,
C=100 nF) circuit is required."
I make experiment:
a. change resistor to capacitor & add resistor 3k3 between EN and Attiny: I get 60uA current
b. change resistor to capacitor: I get 80uA current
c. connect capacitor near pull down resistor: I get same 20uA current.
Why there are not same current?
2. How many time I should wait between calling ESP.deepsleep(0); and power down EN pin?
Some guys said, that it takes 100ms to go down... Isn't it?
I try to add delay 200ms, 500ms:
Sometimes scheme consumption is 11uA (!!), but mostly 20uA.
3. There is LED on TX pin of ESP. The LED is very bright. There is straight think: It doesn't shut down =(.
See picture:
The LED current is 4uA! If i touch TX pin by oscilloscope it turned off and scheme consumption decreased. Sometimes it turned off by finger touch ).
Code: Select all
LOG_END(); // Serial.flush(); Serial.end(); --- doesn't help
twi_stop(); //turn off i2c line --- doesn't help
ESP.deepSleep(0, RF_DEFAULT);
Thanks a lot!