New order of LoPy - deep sleep issues?
-
@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. -
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/
-
@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.
-
With nothing but the LoPy4 connected to the Otii (at 3.75V with auto range mode) I measure ~32uA in deep sleep.

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.
-
@dbrgn Don't need to disable the Bluetooth/BLE too, like as you did with WiFi (pycom.wifi_on_boot(False)) ?
-
I think I wouldn't even need to disable wifi on boot, since it should be off in deep sleep anyways.
-
@dbrgn All right, so that's two lines are unnecessary:
pycom.heartbeat(False)
pycom.wifi_on_boot(False) -
@beyonlo have you also found that the LED flickers on after resetting from deep sleep?
-
@robin I have not tested that.
-
I'll give it a test tonight as well.
-
So, with the simple code below, the heartbeat LED pulses very briefly when my LoPy wakes from deep sleep.
-
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.
-
@dbrgn How did you get it down to 16.5uA? I'm currently reading around 30uA in deep sleep.
-
@sioo can you clarify your setup? LoPy or LoPy 4? Deep Sleep shield, expansion board, Pysense, PyTrack? Power source? Any active sensors?...
-
I'm using an Lopy4 powered by a Lifepo4 battery. For testing purposes I'm reading a sensor (bme280), sending the data using lora and then going to sleep for about 10 minutes.
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