@dtricker: My measurements were with the 5V pin, not USB power. No battery hooked up.
Yes, it's very possible the battery charger current is wasteful. I'm less interested in running it via lipo though, so that would be unfortunate.
I measure the following on the current dev version of nodemcu firmware:
Awake, wifi enabled: 114 mA
Awake, wifi disabled: 114 mA
Deep sleep: 1.05 mA
Obviously, the firmware may have a ways to go, but that's a bit disappointing.
It's got a ME6211 and CP2104, but neither of those should account for the high draw in sleep. Perhaps its the circuitry to charge the battery?
Anyone know what the ESP-WROOM-32 should draw in sleep by itself?
@wemos: A schematic would be very helpful. Also, one of the very useful things that makes the D1 mini an improvement over many other ESP8266 boards is this power usage. A sleep current of 1 mA really limits the usefulness of the lolin32.
You can buy INA219 modules quite cheaply and use them to measure power draw. If you swap out the stock 0.1 ohm resistor for a 1 ohm resistor you get very good resolution (10uA or so) with a max of 320 mA.
Another good trick is to measure the voltage drop across a 1 ohm resistor with a voltmeter. Whatever it reads in volts is the same in amps: 0.1mV = 0.1mA. It's only as precise as your resistor, but it works in a pinch, especially with a good voltmeter.
Finally, this thing gives you 100uA resolution. RD makes a few other similar things that would work:
Many of those solar power banks are absolute crap by the way.
And in sleep the D1 Mini uses a lot less than 5ma.
I've measured power draw on these new v2.2.0 D1 minis. The new regulator is pretty good for quiescent current, better than the RT9013 that was there before.
Nice job @wemos
@anduit Yea that's the basic idea. If you cut power to the DS3231 itself and run the alarm off battery, you may need to remove the pullup resistor. Otherwise, it'll act as a pulldown resistor instead, and the MOSFET won't fully turn off. And then you'll need your own pullup resistor on the mosfet gate, ideally something highish value so you don't waste much current on it.
On the common modules, this is the 4x4.7k block across from SDA and VCC that also pulls up SCL and SDA:
I haven't turned off wifi before cutting power, or done much of anything in preparation. I do usually set a timer for 10 ms or so to turn it off just so anything still running can finish. I'm curious whether shutting down wifi makes any difference, that'd be interesting to know.
@anduit: Much of this information was lost on the the old forum.
However, here's a summary:
So if you know how long it will be on for, and how often it will turn on, you can calculate current draw in mAh.
I'm actually using a P-MOSFET (NDP6020P) and a RTC alarm (DS3231) to avoid deep sleep entirely. The DS3231 alarm, which is powered by a CR2032 battery, turns on the MOSFET, which turns everything else on. When you're done, you reset the alarm, and everything turns off completely, leaving only a few uA.
I heard back from Wemos on the new regulator. They've replaced the RT9013 with a ME6211. There's a slightly higher input voltage, up to 6-6.5 volts. But it looks like quiescent current is slightly higher (not 55A as the datasheet says, but 55 uA), and the dropout voltage looks to be slightly higher as well.
It'll be interesting to test the current in deep sleep. I think it will be 20-30 uA higher than the old D1 Mini
@deshipu Yep, you're right. You can see the traces from the crystal nicely on the Lite.
I got tripped up by the lite having 2 crystals, but the other one is clearly feeding the ESP8266.
The ESP-12S advertises better antenna performance. Anyone care to compare one of these new ones with an older D1 Mini?
It looks like the D1 Mini has been upgraded (link to Aliexpress)
Anyone know what the square piece is above the CH340G? And what is the voltage regulator? It doesn't have the same markings as the RT9013 on the old D1 Mini/Mini Pro
@wemos: Is the price rise you're referring to the ESP8266 IC? Is there any reason for that? Will it be discontinued?
Looks like your connection to WEMOS Forum was lost, please wait while we try to reconnect.