# Muon + M404 quiescent current in various sleep modes?

**URL:** <https://community.particle.io/t/muon-m404-quiescent-current-in-various-sleep-modes/67483>\
**Category:** Hardware\
**Tags:** muon, m404\
**Created:** [August 30, 2024, 3:16pm UTC](https://community.particle.io/t/muon-m404-quiescent-current-in-various-sleep-modes/67483 "2024-08-30T15:16:18Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![gusgonnet](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/gusgonnet/32/27491_2.png) [@gusgonnet](https://community.particle.io/u/gusgonnet)\
**Post date:** [August 30, 2024, 3:16pm UTC](https://community.particle.io/t/muon-m404-quiescent-current-in-various-sleep-modes/67483/1 "2024-08-30T15:16:18Z")

</div>

Hi,

Are there any preliminary measurements or data on the quiescent current of the Muon while it is in various sleep modes, such as hibernate and stop modes?  
Additionally, I would like to know the quiescent current and voltage values needed to calculate the power demand in milliwatts (mW) during these sleep modes, assuming a typical Li-Po battery voltage range.

On a Muon and M404 setup ([MUON404](https://store.particle.io/products/muon-lte-m1-2g-kit-global-ethersim?variant=41046711107653)).

Thanks!

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [August 30, 2024, 3:46pm UTC](https://community.particle.io/t/muon-m404-quiescent-current-in-various-sleep-modes/67483/2 "2024-08-30T15:46:11Z")

</div>

There are no current measurements yet.

With the 3V3\_AUX (LoRa and Ethernet) powered down it should basically be just the M-SoM but I can't guarantee that yet.

---

<div class="post-metadata">

**Author:** ![gusgonnet](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/gusgonnet/32/27491_2.png) [@gusgonnet](https://community.particle.io/u/gusgonnet)\
**Post date:** [October 13, 2024, 11:25pm UTC](https://community.particle.io/t/muon-m404-quiescent-current-in-various-sleep-modes/67483/3 "2024-10-13T23:25:31Z")

</div>

> [@rickkas7](#):
>
> With the 3V3\_AUX (LoRa and Ethernet) powered down

Hi Rick, is 3V3\_AUX powered down by default or should we do something in the user firmware?  
Thank you,

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [October 14, 2024, 8:33am UTC](https://community.particle.io/t/muon-m404-quiescent-current-in-various-sleep-modes/67483/4 "2024-10-14T08:33:48Z")

</div>

If you use [setup.particle.io](http://setup.particle.io) to set up your Muon, it will be enabled automatically.

If you want to do it manually through code, the instructions are [here](https://docs.particle.io/reference/device-os/api/power-manager/auxiliarypowercontrolpin-systempowerconfiguration/).

The explanation from that page is:

> Devices using the [Particle Power Module](https://docs.particle.io/hardware/power/pm-bat-datasheet/) include a `3V3_AUX` power output that can be controlled by a GPIO. On the M.2 SoM breakout board, this powers the Feather connector. On the Muon, it powers the Ethernet port and LoRaWAN module.

> The main reason for this is that until the PMIC is configured, the input current with no battery connected is limited to 100 mA. This is insufficient for the M-SoM to boot when using a peripheral that requires a lot of current, like the WIZnet W5500 Ethernet module. The system power manager prevents turning on `3V3_AUX` until after the PMIC is configured and the PMIC has negotiated a higher current from the USB host (if powered by USB).

> This setting is persistent and only needs to be set once. In fact, the PMIC initialization normally occurs before user firmware is run. This is also necessary because if you are using Ethernet and enter safe mode (breathing magenta), it's necessary to enable `3V3_AUX` so if you are using Ethernet, you can still get OTA updates while in safe mode.

> After changing the auxiliary power configuration you must reset the device.

---

<div class="post-metadata">

**Author:** ![gusgonnet](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/gusgonnet/32/27491_2.png) [@gusgonnet](https://community.particle.io/u/gusgonnet)\
**Post date:** [October 14, 2024, 2:12pm UTC](https://community.particle.io/t/muon-m404-quiescent-current-in-various-sleep-modes/67483/5 "2024-10-14T14:12:21Z")

</div>

Thank you, Rick.

For a specific project where I'm not using LoRa or Ethernet, I’m looking to power them down. I couldn’t find a way to do this in the documentation—could you provide some guidance?

Thanks!

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [October 14, 2024, 2:44pm UTC](https://community.particle.io/t/muon-m404-quiescent-current-in-various-sleep-modes/67483/6 "2024-10-14T14:44:23Z")

</div>

Follow the manual instructions for setting, but set auxiliaryPowerControlPin(PIN\_INVALID). You'll need to reset the device then it will not turn on the power at boot.

Note that this will also make the 40-pin expansion connector 3V3 not powered.

---

<div class="post-metadata">

**Author:** ![gusgonnet](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/gusgonnet/32/27491_2.png) [@gusgonnet](https://community.particle.io/u/gusgonnet)\
**Post date:** [October 14, 2024, 11:27pm UTC](https://community.particle.io/t/muon-m404-quiescent-current-in-various-sleep-modes/67483/7 "2024-10-14T23:27:08Z")

</div>

> [@rickkas7](#):
>
> Note that this will also make the 40-pin expansion connector 3V3 not powered.

Does it kill the 3v3 on the QWIIC (3.3V I2C) connector too? Thanks

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [October 15, 2024, 7:54am UTC](https://community.particle.io/t/muon-m404-quiescent-current-in-various-sleep-modes/67483/8 "2024-10-15T07:54:11Z")

</div>

Qwiic is also on 3V3\_AUX.

The other option for Ethernet and LoRa is to put in them in sleep mode in software. I don't have a code example, but it should be possible.

---

<div class="post-metadata">

**Author:** ![gusgonnet](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/gusgonnet/32/27491_2.png) [@gusgonnet](https://community.particle.io/u/gusgonnet)\
**Post date:** [October 16, 2024, 1:34am UTC](https://community.particle.io/t/muon-m404-quiescent-current-in-various-sleep-modes/67483/9 "2024-10-16T01:34:37Z")

</div>

> [@rickkas7](#):
>
> The other option for Ethernet and LoRa is to put in them in sleep mode in software.

Hey, thanks for the tip and all the info.

I went to the datasheet and the power consumption of [the ethernet chip **WIZnet W5500**](https://docs.wiznet.io/Product/iEthernet/W5500/datasheet#:~:text=W5500%20Datasheet%20v1.1.0%20%2D%20English) in POWER DOWN MODE (sleeping) doesn't look good for low power devices: **13 mA**.

 ![image](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/b/0/b0ce65876d576b38f06cefb2b73fe12b0555701d.png)

For low power setups with Muons, I believe the best approach would be to deactivate the 3v3\_AUX, which unfortunately means we won't be able to use the QWIIC connector. Additionally, the 3v3 on the 40-pin expansion can't be used either.

Thanks

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [October 16, 2024, 8:34am UTC](https://community.particle.io/t/muon-m404-quiescent-current-in-various-sleep-modes/67483/10 "2024-10-16T08:34:52Z")

</div>

You can still use `3V3_AUX` peripherals, just not during sleep, if you want to conserve power.

Disable system management of the pin using `auxiliaryPowerControlPin(PIN_INVALID)`.

Then just treat `D7` as a regular GPIO. Set `pinMode(D7, OUTPUT)`. Doing a `digitalWrite(D7, 1)` will turn on `3V3_AUX` and `0` will turn it off.

If you're only awake for a short period of time such as to read a sensor and go back to sleep, the added power consumption during wake time will probably not be that significant.

---

<div class="post-metadata">

**Author:** ![gusgonnet](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/gusgonnet/32/27491_2.png) [@gusgonnet](https://community.particle.io/u/gusgonnet)\
**Post date:** [October 16, 2024, 1:07pm UTC](https://community.particle.io/t/muon-m404-quiescent-current-in-various-sleep-modes/67483/11 "2024-10-16T13:07:59Z")

</div>

> [@rickkas7](#):
>
> Then just treat `D7` as a regular GPIO. Set `pinMode(D7, OUTPUT)`. Doing a `digitalWrite(D7, 1)` will turn on `3V3_AUX` and `0` will turn it off.

oh, that's majestic.  
I understood that one somehow couldn't do that because of the need for reset:

> [@rickkas7](#):
>
> You'll need to reset the device then it will not turn on the power at boot.

So, from what I'm reading, I infer:

- users can disable 3v3\_AUX by settings above + a reset
- after that reset, users can momentarily power on 3v3\_AUX and use it

is this correct?

PS: I still don't see what the device reset is doing here, but must be some internal mechanism.

Thanks

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [October 16, 2024, 1:17pm UTC](https://community.particle.io/t/muon-m404-quiescent-current-in-various-sleep-modes/67483/12 "2024-10-16T13:17:56Z")

</div>

Yes, that is correct.

The reason a reset is required after changing the power manager setting is that the power manager enables 3V3\_AUX at boot, before user firmware runs, and also in safe mode.

However if you are not letting the power manager control 3V3\_AUX, you can turn it on and off as desired, because it's just a GPIO (D7 on the Muon, D24 on the M.2 SoM breakout board) that controls a load switch (TPS22918) on the power module.

---

<div class="post-metadata">

**Author:** ![gusgonnet](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/gusgonnet/32/27491_2.png) [@gusgonnet](https://community.particle.io/u/gusgonnet)\
**Post date:** [October 16, 2024, 1:45pm UTC](https://community.particle.io/t/muon-m404-quiescent-current-in-various-sleep-modes/67483/13 "2024-10-16T13:45:43Z")

</div>

> [@rickkas7](#):
>
> However if you are not letting the power manager control 3V3\_AUX, you can turn it on and off as desired,

I like that flexibility.

Another question I have is the following:

- is there a way to find out if a device has already deactivated 3v3\_AUX and reset?

This will help a program to decide whether it needs to execute the disable 3v3\_AUX routine at boot or not. Otherwise I need to go use flag stored in nonvolatile memory for this, which I prefer not to.

Thanks a ton!

---

<div class="post-metadata">

**Author:** ![rickkas7](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/rickkas7/32/8681_2.png) [@rickkas7](https://community.particle.io/u/rickkas7)\
**Post date:** [October 16, 2024, 2:16pm UTC](https://community.particle.io/t/muon-m404-quiescent-current-in-various-sleep-modes/67483/14 "2024-10-16T14:16:23Z")

</div>

This seems to work for me:

```cpp
#include "Particle.h"

SYSTEM_MODE(AUTOMATIC);
SYSTEM_THREAD(ENABLED);

SerialLogHandler logHandler(LOG_LEVEL_INFO);

void setup() {
    waitFor(Serial.isConnected, 10000);
    delay(2000);

    particle::SystemPowerConfiguration powerConfig = System.getPowerConfiguration();
    if (powerConfig.auxiliaryPowerControlPin() != PIN_INVALID) {
        Log.info("power control was enabled on pin %d, disabling", powerConfig.auxiliaryPowerControlPin());

        powerConfig.auxiliaryPowerControlPin(PIN_INVALID);
        System.setPowerConfiguration(powerConfig);

        Log.info("disabled, resetting device");

        delay(1000);
        System.reset();
    }
}

void loop() {
}

```

---

<div class="post-metadata">

**Author:** ![gusgonnet](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/gusgonnet/32/27491_2.png) [@gusgonnet](https://community.particle.io/u/gusgonnet)\
**Post date:** [October 16, 2024, 2:20pm UTC](https://community.particle.io/t/muon-m404-quiescent-current-in-various-sleep-modes/67483/15 "2024-10-16T14:20:16Z")

</div>

Awesome, thanks so much.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/3/2/3291e3c9351789fe8620ae5bcec8d3fec67ff221.png) [@system](https://community.particle.io/u/system)\
**Post date:** [November 16, 2024, 12:21am UTC](https://community.particle.io/t/muon-m404-quiescent-current-in-various-sleep-modes/67483/16 "2024-11-16T00:21:03Z")

</div>

Closed on November 16, 2024, 12:21am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
