Externally Power LoPy
-
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!
-
@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...
-
@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.
-
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:
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