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

    New order of LoPy - deep sleep issues?

    Scheduled Pinned Locked Moved LoPy
    lopydeep sleep
    31 Posts 12 Posters 10.5k Views 13 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.
    • J Offline
      jmarcelino @jcaron
      last edited by

      @jcaron

      Yes, the LoPy4 hardware has arrived earlier and is actually shipping today (I was surprised myself to learn this).

      However the software side is still being worked on so I can't offer power consumption figures yet, they'll definitely be done by end of month but hopefully sooner.

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

        @jmarcelino and @mahe and @livius
        I ordered LoPy4's today on the webshop. They were picked up by DHL this afternoon so i should have them next week. Will let you know how i get on with the following:

        • Power consumption
        • RTC being reset every sleep cycle
        • Unpredictable sleep intervals
        1 Reply Last reply Reply Quote 1
        • bmarkusB Offline
          bmarkus @jmarcelino
          last edited by

          @jmarcelino said in New order of LoPy - deep sleep issues?:

          Thanks @danielm

          Yes the L01 + baseboard combination will give you very low power deepsleep right now.

          Any estimation what very low means?

          1 Reply Last reply Reply Quote 1
          • R Offline
            Robin @mahe
            last edited by

            @mahe
            I have a LoPy4 in front of me and am considering how to test power consumption. Previously i had someone who helped with an oscilloscope, but that is a quite impractical for me at the moment. Is there another way to measure low power current drain from the battery? Presumably a multimeter is too imprecise?

            J S 2 Replies Last reply Reply Quote 0
            • D Offline
              danielm
              last edited by

              I use this tool:
              http://www.eevblog.com/product/ucurrentgold/

              Unfortunately, it seems to be out of stock.

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

                @robin
                I use this tool now, not the cheapest thing but very convenient.
                https://www.qoitech.com

                1 Reply Last reply Reply Quote 0
                • D Offline
                  danielm
                  last edited by danielm

                  @jmarcelino
                  I was not aware of such device, are you satisfied with it? What are the most notable issues/drawbacks from you experience?
                  I am considering to buy it.

                  1 Reply Last reply Reply Quote 0
                  • bmarkusB Offline
                    bmarkus
                    last edited by bmarkus

                    This tool can be also interesting

                    http://store.digilentinc.com/openscope-mz-open-source-all-in-one-instrumentation/

                    or a bit more expensive but more complex

                    http://store.digilentinc.com/analog-discovery-100msps-usb-oscilloscope-logic-analyzer-limited-time/

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      ssmith @Robin
                      last edited by

                      @robin I use this device. http://www.cmicrotek.com

                      You can also use a resistor in series with the 5V input and measure the voltage drop. You just have to size it correctly so you still get enough voltage to run the device. You also have to short it out till the device is asleep.

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        dbrgn
                        last edited by dbrgn

                        With nothing but the LoPy4 connected to the Otii (at 3.75V with auto range mode) I measure ~32uA in deep sleep.

                        0_1515762260180_photo5965393512251894727 (1).jpg

                        Is this the best we can expect, or should it go lower?

                        This is the code (boot.py):

                        import machine
                        import pycom
                        pycom.heartbeat(False)
                        pycom.wifi_on_boot(False)
                        machine.deepsleep(15000)
                        

                        As soon as I connect it to the expansion board (with all jumpers removed, power supply via JST connector) current goes to ~170uA.

                        B 1 Reply Last reply Reply Quote 2
                        • B Offline
                          beyonlo @dbrgn
                          last edited by

                          @dbrgn Don't need to disable the Bluetooth/BLE too, like as you did with WiFi (pycom.wifi_on_boot(False)) ?

                          1 Reply Last reply Reply Quote 0
                          • D Offline
                            dbrgn
                            last edited by

                            I think I wouldn't even need to disable wifi on boot, since it should be off in deep sleep anyways.

                            B 1 Reply Last reply Reply Quote 0
                            • B Offline
                              beyonlo @dbrgn
                              last edited by

                              @dbrgn All right, so that's two lines are unnecessary:

                              pycom.heartbeat(False)
                              pycom.wifi_on_boot(False)

                              R 1 Reply Last reply Reply Quote 0
                              • R Offline
                                Robin @beyonlo
                                last edited by

                                @beyonlo have you also found that the LED flickers on after resetting from deep sleep?

                                B 1 Reply Last reply Reply Quote 0
                                • B Offline
                                  beyonlo @Robin
                                  last edited by

                                  @robin I have not tested that.

                                  1 Reply Last reply Reply Quote 0
                                  • P Offline
                                    peekay123
                                    last edited by

                                    I'll give it a test tonight as well.

                                    1 Reply Last reply Reply Quote 0
                                    • P Offline
                                      peekay123
                                      last edited by

                                      So, with the simple code below, the heartbeat LED pulses very briefly when my LoPy wakes from deep sleep.

                                      1 Reply Last reply Reply Quote 0
                                      • D Offline
                                        dbrgn
                                        last edited by dbrgn

                                        Since last time I tried the test script again, with the latest firmware (from 3 days ago). Now I get down to 16.5 uA. Not sure if the firmware is related.

                                        Interesting is that when testing the same board on our custom hardware, I can get down to ~13uA. Maybe because some pins aren't floating anymore?

                                        Anyways, it seems to be possible now to get below 20uA in deep sleep.

                                        Edit: And I also sometimes experience the issue that the LED quickly lights up when waking up from sleep or when powering on the device for the first time.

                                        S 1 Reply Last reply Reply Quote 0
                                        • S Offline
                                          sioo @dbrgn
                                          last edited by

                                          @dbrgn How did you get it down to 16.5uA? I'm currently reading around 30uA in deep sleep.

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

                                            @sioo can you clarify your setup? LoPy or LoPy 4? Deep Sleep shield, expansion board, Pysense, PyTrack? Power source? Any active sensors?...

                                            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
                                            • 2
                                            • 2 / 2
                                            • First post
                                              Last post

                                            Pycom on Twitter

                                            Pycom