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

    LoPy unable to recover from full battery discharge when powered from solar panel/charger

    Scheduled Pinned Locked Moved Discussion
    4 Posts 2 Posters 251 Views 2 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 community,

      I am experiencing an issue with my LoPy4/Expansion Board 3.1:

      First a few things about my setup: I have a LoPy4/Expansion Board 3.1 powered through a solar charger circuit (in particular the one in https://www.adafruit.com/product/390).
      In the battery output I have connected a LiPo whereas in the load output a 5V USB Buck-Boost Verter (the one in https://www.adafruit.com/product/2190), the latter feeding theUSB input of the LoPy4/Expansion Board 3.1.
      The setups operates smoothly (reads out a PIN output every 10 minutes and then goes to deep sleep).

      However in case the battery drops at low levels (in case of a few days lack of sunshine), for example at 2-3V, hence it is fully discharged, when the battery starts charging again (at bright sunshine conditions), the board fails to restart and remains deactivated. If I manually remove the Verter and reconnect-it to the board (thus forcing hard reset) then the board reboots and starts operating smoothly. By the way I have also configured the sw watchdog. To my understanding after full discharge the LoPy enters an "irrecoverable" state from which it cannot exit without hard reset.

      Had anyone similar experiences with solar charger circuits and Pycom's modules? I have reproduced the same behavior for 4-5 times, using LoPy4, LoPy1 and FiPy, so it seems to be common for all modules.

      Cheers,

      Antonis

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        Martinnn @agotsis
        last edited by

        @agotsis I woudln't expect your setup to work without an external supervisor. Add a supervisor to generate a reset below 3...? V. While you're at it, add a battery protection to prevent discharge below 2.5 V.

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

          @Martinnn That's what i was also thinking about, to use an external watchdog. But i was hopping that i could avoid it.
          Thanks!

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            Martinnn @agotsis
            last edited by

            @agotsis Primarily you need a voltage supervisor. But as robert also just observed, you should use a hardware watchdog as well (that needs to be periodically retriggered and otherwise generates a hardware reset), so I'd recommend using a device that has both functions.

            As a side note, this "brownout" condition (supply dropping to 1-2 V - not zero!) and rising again can put many microcontrollers in a hung-up state which can't even be recovered by a hardware reset (!), but needs a power cycle (down to 0 V) to restart the microcontroller. This is pretty nasty, fortunately I have not observed this yet with the ESP32 (nor have I tested it).

            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