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

    Measurement Power LoPy

    Scheduled Pinned Locked Moved LoPy
    measurement
    5 Posts 3 Posters 2.8k 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.
    • R Offline
      rikkertmark
      last edited by

      Hello,

      Today I test the current of the LoPy board with a Power supply on the Battery Input.
      The Measured values are without USB Power Supply!!!!

      I Have create the next python Files:

      boot.py:

      from machine import UART
      import os
      uart = UART(0, 115200)
      os.dupterm(uart)

      main.py:

      import time

      while (True):
      time.sleep(1)

      The Current @t 3.8V = ~115mA

      Above current the Wlan is Active.

      So I deInit() the Wlan in the console with the next Lines:

      from network import WLAN
      wlan = WLAN()
      wlan.deinit()

      The Current now is 108mA @t 3.8V without USB connectie (power supply)

      Used the ESP32 processor so much power? How Can I decrease the power?
      Esp32 Clock frequency lower?, deep sleep mode? Is this available at this moment?

      Or are there any other peripherals that I can turn of?

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

        The only optimisation at the moment is enabling WLAN Power Saving in STA mode (basically the WiFi radio only 'wakes up' at the beacon interval set by your gateway) so you'll see current go down to about 50mA and then 100+ mA at the wake intervals.

        This is done by re-initilizating WLAN with power_save=True option. However it's not perfect yet, it may caused network timeouts for some people so it became disabled again by default.

        Currently calling .deinit() on WiFi and Bluetooth doesn't turn off the peripheral so there's no power savings, just deallocates it. I think this will be changing soon-ish.

        Other optimisations and sleep modes are still on the way, deep sleep is being mentioned as being the next one to come.

        1 Reply Last reply Reply Quote 0
        • A Offline
          alg
          last edited by

          Hi,
          I realise this is an old topic, but do you know if this is still the case?

          I have an application using LoRa every 5mins, but accumulating data every 15s, so can't deep sleep.

          Is there a way to light sleep yet, or to disable the WLAN without losing reliability?

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

            @alg

            you can now disable WiFi by calling

            wlan = WLAN()
            wlan.deinit()
            
            A 1 Reply Last reply Reply Quote 1
            • A Offline
              alg @jmarcelino
              last edited by

              @jmarcelino Great - thanks!

              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