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

    Externally Power LoPy

    Scheduled Pinned Locked Moved LoPy
    lopylorapower
    4 Posts 3 Posters 1.1k 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.
    • T Offline
      tyteo
      last edited by

      Hi! I am new to the micropython environment. I am trying to connect my LoPy with a portable battery using a Micro USB. I notice that it stops connecting to the gateway when I do that. If I plug it back to my laptop and run the file on PyMakr it works perfectly fine.Any reason behind this? Thanks!

      J robert-hhR 2 Replies Last reply Reply Quote 0
      • J Offline
        jcaron @tyteo
        last edited by

        @tyteo It is not recommended to use USB batteries for several reasons, including a higher current draw and possible limits of the battery.

        If you need to run on battery, you should consider using a LiPo battery connected directly to the JST-PH-2 connector on the expansion board, Pysense or Pytrack...

        1 Reply Last reply Reply Quote 0
        • robert-hhR Offline
          robert-hh @tyteo
          last edited by

          @tyteo Besides that fact, that powering through USB might not be the most effective solution, it should work. Please check, that the scripts you want to run are really copied to the LoPy. You may do so in the REPL prompt and issue the commands:

          import uos
          uos.listdir()
          

          Does really the script stop, but Lopy works? An indication for the latter is the blue heartbeat of the RGB LED.

          1 Reply Last reply Reply Quote 0
          • T Offline
            tyteo
            last edited by

            Thanks for the replies! @robert-hh It might be that the program is not burnt onto my LoPy. I ran the uos command and this is what I got:

            ['main.py', 'sys', 'lib', 'cert', 'boot.py']

            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