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

    Alternate xPy powering from USB/Battery using Expansion Board 3

    Scheduled Pinned Locked Moved Expansion Board
    3 Posts 2 Posters 224 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.
    • A Offline
      agotsis
      last edited by

      Dear all,
      I was wondering if there is a way to "dynamically" alternate the power source for an xPy.

      Imagine a setup consisting of an xPy mounted on Expansion Board 3, and the board is powered simultaneously from USB and a LiPo battery.

      Then, would it be possible to force the following operation scenarios:

      • xPy is powered solely from USB and battery is just being charged through the surplus USB current;
      • xPy is powered solely from the LiPo battery and USB power is being cut-off.

      The only hint I get is from the Expansion Board documentation: To use the battery, pull P8/G15 high (connect to 3v3), but I am not sure what this implies...

      Cheers!

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jcaron @agotsis
        last edited by

        @agotsis Have you tried it? I don’t know about the expansion board, but on the Pysense which has a lot of common components that’s just the way it works: if USB is connected it will use it as a power source and charge a LiPo battery if there is one connected, and if USB is disconnected it will continue to run from the LiPo.

        A 1 Reply Last reply Reply Quote 0
        • A Offline
          agotsis @jcaron
          last edited by

          @jcaron I tried and indeed seems to be ok. I remembered from an old post tha this was not supported, but probably this is something from the old expansion board 2.0/lopy1 era.

          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