-
Hi
I have a SiPy connected to the expansion board v2 and a 500mAh battery. When this battery is fully charged though I can only ever get at most a few hours run time on the whole device.
I cant see how the device, with bluetooth and WIFI deactivated can possibly consume even 100mA.
Any suggestions? The code is:
from network import WLAN
from machine import UART
from network import Bluetooth
import os
uart = UART(0, 115200)
os.dupterm(uart)
wlan = WLAN()
bluetooth=Bluetooth()
wlan.deinit()
bluetooth.deinit()import pycom
pycom.heartbeat(False)Is the serial management consuming power waiting input?
-
@bradnz
WLAN.deinit() doesn't actually turn the peripheral off yet, it still consumes roughly the same. -
What do you mean by it "doesnt turn it off yet"? I saw an SSID broadcast from the device before I applied that command, and then I didnt when I applied that command. The device goes through a lot of power in my opinion. I cant see how you can power this with a battery alone. Kind of defeats the purpose of a IoT device really.
-
It's one of the features being worked on, for now .deinit() only disables the software device it doesn't power it off.
Should be coming in a future update as well as the power saving modes (deep sleep etc) you need to operate on battery power.
-
Ok, great. Thanks.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login