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
Power usage, sleep modes
-
- Posts: 19
- Joined: Wed Jul 26, 2017 5:15 pm
Re: Power usage, sleep modes
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
http://www.radupascal.com/2016/09/20/re ... on-esp8266
Re: Power usage, sleep modes
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?
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?