LoPy 4 + Expansion board 3.1 power consumption in deep sleep mode
-
@rcolistete You are right. I found that post just recently and saw the difference in power consumption when I tested it (goes down to ~60 uA). Is there no way to deactivate the SD module on boot and only reinit it, when it's needed?
This doesn't seem to work.from machine import SD sd = SD() sd.deinit()he, btw.
@robert-hh thanks for the heads-up, I'll leave the 3.3 Pin alone. But how would I register a pin interrupt without using the pullup resistor. Is there a way to get a decent reading from a floating pin?
-
@robert-hh But the uSD card (on Expansion Board) can consume 0.12-0.24 mA from my tests (with Expansion Board v2.1), even when not mounted/being used !
-
@loth4in It's not that you must not have pull-up resistors. If the device driving the input has high level when sleeping, then there should be not substantial current flow. I just wanted to point out, that outputs driving even a higher impedance load may cause such an current drain. But, as @rcolistete said, most probable the SD is consuming that current. So you should consider switch off it's power when not used..
-
@rcolistete I do not like this sparkfun device for the purpose, because it uses a N-Channel MosFET to switch the -line (GND). Better use a P-Channel MosFET to switch Vcc.
-
@robert-hh Any recommendation of good low power P-channel MOSFET ?
-
@loth4in Did you try upgrading the expansion board firmware to the version in the post linked to by @robert-hh ?
-
@rcolistete From the offering of my local electronics shop I picked recently for this kind of tasks:
Vishay IRFD9024 and
Vishay SI2323DS
The first one is worse in matters of RDSon and GS threshold, but is easier for soldering. But there should be plenty of other transistors available. -
@jcaron yeah, LoPy4 and Expansion board are both running the latest stable firmwares
-
Okay, I checked on how much data I'll produce over the time and it turns out with a little tweaking I'll be happy enough with the 512 KB onboard storage. So, I guess I won't need the expansion board after all except for programming. That makes it a little tideous to read the data but we will think of a solution for that when we build the casing. Thanks however for all your help.
-
@loth4in At the LoPy4, the flash file system has a capacity of 4 MB. And you can always connect by WiFi. So even if you do not have it enabled all the time, you could use a switch (reed contact) or button to tell the unit to activate WiFi. Then you can use ftp to access the data.
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