Boron - Sleep 2.0 Examples and Power Savings

@no1089, I’m seeing very different results using the code you provided.
I’m testing with a µCurrent GOLD inline with a Li-Po @ 4.03V resting, Boron LTE on 1.5.1.
The Sleep Current actually ramps up to 10 mA for me with your code.

As a sanity and equipment check, I reflashed the basic code and confirmed 660 µA in Hibernate Sleep.

SYSTEM_MODE(MANUAL);
SYSTEM_THREAD(ENABLED);

  inline void softDelay(uint32_t t) {
  for (uint32_t ms = millis(); millis() - ms < t; Particle.process());  //  safer than a delay()
  }

 SystemSleepConfiguration config;

void setup() {
  config.mode(SystemSleepMode::HIBERNATE).gpio(D0, RISING).gpio(WKP, RISING); 
}

void loop() {
  Cellular.off();  // just for fun
  softDelay(15000);   
  System.sleep(config);  
}

I noticed from your screenshot that you are using a 10A range.
Do you have a lower option ?

2 Likes

I concur with rftop. That code doesn’t provide 130uA.

I was under the impression that SystemSleepMode::HIBERNATE was the lower power sleep states instead of STOP which you have used.

2 Likes

Ah, yes, I just tested this on my LTE unit - 10mA. :frowning:
With the 2G/3G unit, I have consistently been able to get sub 1mA readings with 600uA last night. The correct draw for STOP, don’t ask me how I got 130uA (I’ve seen this multiple times) yesterday - I messed with the PMIC quite a bit and the Boron kept trying to charge to unconnected battery :man_facepalming:

On the Mooshimeter 10A is the only range - I’ll try with a 1ohm shunt today.
@jack4566 - You are correct, I should be using HIBERNATE.

I’ll have a chat with engineering to see what is going on.

3 Likes

No luck on this yet? @no1089

None yet, but sleep is being refined by engineering and we’ll soon have a much more robust implementation - until that is released, the code above is the best I have.

1 Like

@ric_hard
I just tested with the DeviceOS 2.0 RC and this example: https://go.particle.io/shared_apps/5f203bb0e83d020008459159
160uA during STOP sleep. (Notice I’m testing with the Otii, a dedicated IoT testing device capable of accurately measuring these low currents, and I will expand on measurements and PMIC guides as soon as I have the time - it’s been a busy couple of weeks)

You can see the measurement top-right.

4 Likes

Nice!

I was just thinking about asking if anybody has tested the new sleep modes yet to see if we have reached the low power goals we have been waiting on.

Yes, the RC was released yesterday, and I’ve been swamped, but I’ll be testing and the engineering team will also do tests over the next couple of days. There are example apps for each mode, so you’ll be able to verify yourself as well.

The datasheets will all be updated with the new values once we have all the data.

2 Likes

Awesome! Can’t wait to test it also! Much appreicated.

1 Like

Device OS 2.0.0-rc.1 , Boron LTE , 4.01V Li-Po
Measuring the Sleep Current with a µCurrent GOLD I get:
Stop Mode = 294 µA
Hibernate = 268 µA

I hope to start all my PMIC/EN/Solar testing on 2.0.0.rc-1 today.

1 Like

Looking forward to seeing or personally testing the Argon Sleep currents now.

I assume it will be lower than the Boron.

Device OS 2.0.0-rc.1 , Argon , 4.11V Li-Po
Measuring the Sleep Current with Siglent SDM3045X I get:
Stop Mode = 72 µA
Hibernate = 59 µA

3 Likes

Would this still work if the Boron was powered via the VIN @ 12v?

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