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

    Low Power operations

    Scheduled Pinned Locked Moved LoPy
    lopydeepsleeplow powerlora
    6 Posts 6 Posters 2.3k Views 7 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.
    • C Offline
      cgrotz
      last edited by

      Hi,

      I would like to test running the LoPy in a power saving way. The idea is, that we put a signal on a GPIO pin, this should trigger a transmission via LoRa. I read in the product description that there is a coprocessor to enable something like that.

      An extra ELP-coprocessor that can monitor GPIOs, the ADC channels and control most of the internal peripherals during deep-sleep mode while only consuming 25uA

      I didn't find an example or documentation on how to make the coprocessor wake up the LoPy.

      I found in the documentation though how to put the LoPy into deepsleep :-) https://docs.pycom.io/pycom_esp32/library/machine.html#machine.deepsleep

      Thanks,
      Christoph

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

        The ULP coprocessor is there physically but there's no Python interface to access it yet (there's hardly a C interface either, it's still very much under development at Espressif)

        You can read about the C interface if you're interested: http://esp-idf.readthedocs.io/en/latest/ulp.html

        1 Reply Last reply Reply Quote 0
        • R Offline
          rskoniec
          last edited by rskoniec

          According with info below it should be in the 1.6.5.b1 version

          @constantinos said in New firmware release, version 1.6.4.b1:

          Thanks Daniel,

          Is it possible to wake from deepsleep when a pin changes status?

          Constantinos

          @daniel said in New firmware release, version 1.6.4.b1:

          @constantinos not on this release, but it will be on the next one.

          but

          @daniel said in New firmware release 1.6.5.b1 (GC bug fixed):

          Hello everyone,

          We have fixed that long annoying GC bug that was causing lots of unexplainable crashes. The full change log is the following:

          • Update to the latest IDF.
          • Dump the registers on the stack before a gccollect.
          • Allocate the mptask stack and TCB statically. This resolves all the weird issues found with threading and the gc.
          • Add timeout_chars parameter to the UART constructor. https://docs.pycom.io/pycom_esp32/library/machine.UART.html#machine.uart.init

          doesn't say anything about it.

          But maybe next one doesn't mean the very first next one. ;)

          The machine is working as good as it's code.

          1 Reply Last reply Reply Quote 0
          • tobzT Offline
            tobz
            last edited by

            Has there been update to this? Its an old thread but also the best one i've found on the topic.
            Still nothing in the docs about this as far as I've found.

            rcolisteteR danD 2 Replies Last reply Reply Quote 0
            • rcolisteteR Offline
              rcolistete @tobz
              last edited by

              @tobz What about 'machine.pin_sleep_wakeup()' of firmware 1.19.0.x ?

              My "MicroPython Samples". My "MicroPython Firmwares" with many options (double precision, ulab, etc).

              1 Reply Last reply Reply Quote 1
              • danD Offline
                dan @tobz
                last edited by

                @tobz as @rcolistete said, it's available in the current stable firmware as well, 1.18.1.r1 (docs)

                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