-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problems with ESP12f without WiFi on 50mA power source #2111
Comments
Can you try adding |
Thanks.I will test it this evening. But I'm still interested in a scope-screenshot showing the current consumption on startup. So If someone can help ... |
Bummer, |
@igrr, |
I have updated my previous comment with some numbers. |
Thanks for the screenshots. I will test it and report back.
What does this mean? How would one disable wifi in future with this change? [update] Ah, now I got it. There might be a new "void early_init()" method which you can use in the sketch to do "very early things".. |
100µF capacitor and code changes as suggested in Test3 give me flickering blue led and console tells me repeatedly:
case 2 = reset pin is this normal if power source does not provide enough current? same setup with mit current on power source boots as expected. Will repear test with more µF ... |
200µF gives me on console:
To compare: with optimal power supply (more than up to 2,5A instead of just 50mA max), I get:
|
Looks like you aren't reaching the point when ROM bootloader finishes reading second stage bootloader from flash. How much of a voltage drop does your power supply have at 50mA? |
It's not a "real" power supply. P.S. I just saw that Test3 might include changes from Test2... Sketch is changed accordingly, has to be tested this evening... |
Good news... with all your suggestes changes (test1+2+3) in addition to an 470µF capacitor on Vcc, ESP now now able to start with my luw current power source... Thanks a lot. |
btw: Would be great if we could add those code-changes to the next release?! @igrr |
Awesome, glad that this worked for you. |
Is there a reason RF_MODE(RF_NO_CAL); would not be working? 2.3.0 with a Wemos D1 mini. All I can do is either turn the RF off or RF_CAL is on. with with the call to RF_NO_CAL |
This reduction of power consumption doesn't seem to work on 2.4.0-rc2 using user_init() |
* weak hook early_setup() #2111 #2133 #2136 * rename to early_init (more "c" vs early_setup which is more "c++arduino") * example * improve earlyWiFi example, slightly change AddrList interface, move WiFi sketches into WiFi examples * fix CI * fix local CI runner * fix local CI runner * rename early_init() to preinit() * + static ESP8266WiFiClass::preinit_wifi_off() * update early disable wifi example * example update * IPv6 example update * Update ESP8266WiFiGeneric.h camelCase for static method name * Update ESP8266WiFiGeneric.cpp camelCase for static method name * Update EarlyDisableWiFi.ino Expand comment, fix static method name * Update core_esp8266_main.cpp Expanded comment. * Update core_esp8266_main.cpp Expanded comment * Update EarlyDisableWiFi.ino Expanded comment
See: - esp8266/Arduino#2111 - https://github.com/esp8266/Arduino/pull/5395/files Hopefully it will help for modules which have a hard time to connect to WiFi, which may be caused by weak power supply. It will also not start unintended DHCP-client services which lead to strange issues when using static IP configuration. Tests should reveal if it will also help to lessen the chaos which may happen now the 'May deal' is off, so please perform some tests and we'll see the coming days. At least it will save some peak power at startup.
Basic Infos
Hardware
Hardware: ESP-12F
Core Version: 2.2.0
Description
I want to drive my ESP12F module from a 50mA@3.3V source. For this application I don't need WiFi at all. So I disabled it.
If I measure the current consumption with my multimeter, I get about 14mA@3.3V. That would be okay for my power source.
But as soon as I connect the ESP to the meant power source, the 3.3V line drops to 1.8V and I can measure a current consumption of about 30..35mA. The blue LED on the ESP12F starts to flicker continuously.
My current theory is:
The ESP8266 has a too high starup current consumption my power source cannot handle. I added an 100µF capacitor, but this does not solve the issue.
I don't have a scope to measure the exact startup current.
Question is:
Settings in IDE
Module: Generic ESP8266 Module
Flash Size: 4MB
CPU Frequency: 80Mhz
Flash Mode: qio
Flash Frequency: 40Mhz
Upload Using: SERIAL
Reset Method: ck
Sketch
The text was updated successfully, but these errors were encountered: