Power usage, sleep modes

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
Post Reply
jarekd
Posts: 13
Joined: Mon Aug 21, 2017 3:54 pm

Power usage, sleep modes

Post by jarekd » Mon Aug 21, 2017 4:01 pm

Hi. I have noticed, that micropython doesn't use ESP8266 sleep modes (besides deep-sleep). Reading different threads here, but still no solution.

I was trying to use those to decrease power usage. Whatever I do - disabling / enabling wifi, webrepl, etc. - I have almost constant 60-70mA draw (measured by my homemade "oscilloscope", so values are not very accurate).
By uploading Arduino "Advanced web server" script, the power usage drops drastically, even if the ESP is serving web page.

Is there any way to drop power usage by micropython to save battery life?

Screenshoots of power usage from my test:
arduino: https://www.dropbox.com/s/2rxa3otime5kl ... o.png?dl=0
micropython: https://www.dropbox.com/s/mbpofzrny80ys ... n.png?dl=0

vahithosan
Posts: 19
Joined: Wed Jul 26, 2017 5:15 pm

Re: Power usage, sleep modes

Post by vahithosan » Tue Aug 22, 2017 3:20 pm

I am interested in this issue (especially Modem sleep) because ADC is unstable wifi on.

http://www.radupascal.com/2016/09/20/re ... on-esp8266

jarekd
Posts: 13
Joined: Mon Aug 21, 2017 3:54 pm

Re: Power usage, sleep modes

Post by jarekd » Wed Aug 23, 2017 12:52 pm

Oh, I didn't know that. So, the solution to that is to disable WIFI at all or disable sleep modes?

For me, it seems like Micropython don't use any sleep modes - besides deep sleep, which works correctly. Also I can't find a way to turn off WIFI - even if i make both interfaces inactive (STA and AP), I still see the same power usage (on average around 60-70 mA). Only programming board in Arduino and using sleep modes there - using methods described in official SDK - I can lower current consumption.

Any plans on implementing / fixing sleep modes i Micropython?

Post Reply