Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Battery Time

    Scheduled Pinned Locked Moved SiPy
    5 Posts 2 Posters 1.9k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B Offline
      bradnz
      last edited by

      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:

      Boot.py:

      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()

      Main.py:

      import pycom
      pycom.heartbeat(False)

      Is the serial management consuming power waiting input?

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jmarcelino @bradnz
        last edited by jmarcelino

        @bradnz
        WLAN.deinit() doesn't actually turn the peripheral off yet, it still consumes roughly the same.

        1 Reply Last reply Reply Quote 0
        • B Offline
          bradnz
          last edited by

          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.

          1 Reply Last reply Reply Quote 0
          • J Offline
            jmarcelino
            last edited by

            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.

            1 Reply Last reply Reply Quote 0
            • B Offline
              bradnz
              last edited by

              Ok, great. Thanks.

              1 Reply Last reply Reply Quote 0

              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
              • 1 / 1
              • First post
                Last post

              Pycom on Twitter

              Pycom