# LOWEST BORON Sleep Current

**URL:** <https://community.particle.io/t/lowest-boron-sleep-current/66502>\
**Category:** Firmware\
**Created:** [March 6, 2024, 8:42pm UTC](https://community.particle.io/t/lowest-boron-sleep-current/66502 "2024-03-06T20:42:21Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![bdrew7](https://avatars.discourse-cdn.com/v4/letter/b/e0b2c6/32.png) [@bdrew7](https://community.particle.io/u/bdrew7)\
**Post date:** [March 6, 2024, 8:42pm UTC](https://community.particle.io/t/lowest-boron-sleep-current/66502/1 "2024-03-06T20:42:21Z")

</div>

I have created a printed circuit board using the Particle AB1805 rtc example and a Particle BORON.running OS 5.7

The board works as expected, with the exception of sleep current consumption. The lowest average sleep current I have achieved is 2.5 mA.

The current average is measured using a Nordic Power Profiler. The Profiler samples for six hours, and the Boron wakes up once an hour or if a gpio pin selected changes state. The average/hr includes the current consumed during the very short publish.

I have read all I can find in Particle documents concerning sleep modes and current consumption. I get more confused the more I read.

My customer's requirement is five years operation using 3 4200 mAh 18650 batteries.

Does anyone have an code example or suggestion to help reduce the current?

Thanks in advance.

BDrew

---

<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:** [March 6, 2024, 9:21pm UTC](https://community.particle.io/t/lowest-boron-sleep-current/66502/2 "2024-03-06T21:21:29Z")

</div>

> [@bdrew7](#):
>
> My customer's requirement is five years operation using 3 4200 mAh 18650 batteries.

Hi, have you used this battery calculator?

> **[Battery calculator | Tools](https://docs.particle.io/tools/developer-tools/battery-calculator/)**
>
> Battery calculator

What sleep mode are you using?

> **[Sleep | Reference](https://docs.particle.io/reference/device-os/sleep/)**
>
> Learn more conserving power by using sleep with Particle IoT devices

Cheers

---

<div class="post-metadata">

**Author:** ![bdrew7](https://avatars.discourse-cdn.com/v4/letter/b/e0b2c6/32.png) [@bdrew7](https://community.particle.io/u/bdrew7)\
**Post date:** [March 6, 2024, 9:48pm UTC](https://community.particle.io/t/lowest-boron-sleep-current/66502/3 "2024-03-06T21:48:52Z")

</div>

Battery Capacity(A hr) / current consumption (A) = runtime. (hr)

That is the reason for my question. There has been talk about this situation for several years on the forum.

I could go to LORA and a simple AT328 and a Particle Boron hub. I would like to stick with the single Boron reporting each sensor, if any progress has been made on the sleep current.

Thanks

---

<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:** [March 6, 2024, 10:24pm UTC](https://community.particle.io/t/lowest-boron-sleep-current/66502/4 "2024-03-06T22:24:37Z")

</div>

You code: how does it send the Boron to sleep?

And this is a 3G or an LTE Boron?

(oh, now I remember, there were few threads on the new Boron being a bit too power hungry, unsure of the results)

EDIT: this one

> [@BRN404 vs BRN404X - 2.4X increase in power consumption?](https://community.particle.io/t/brn404-vs-brn404x-2-4x-increase-in-power-consumption/63988):
>
> After having several of the new shiny BRN404X Boron’s deployed on battery in the field, I quickly noticed how much faster the battery was draining. Tonight I finally had a few minutes to spare and hooked each one up to my “Current Ranger” and I was very surprised and disappointed to see nearly 2.4X increase in power consumption on the BRN404X. To rule out any aspect of my particular firmware and my own PCB, I placed two Boron’s side by side in their respective breadboards and then flashed Tinke…

---

<div class="post-metadata">

**Author:** ![bdrew7](https://avatars.discourse-cdn.com/v4/letter/b/e0b2c6/32.png) [@bdrew7](https://community.particle.io/u/bdrew7)\
**Post date:** [March 7, 2024, 12:05am UTC](https://community.particle.io/t/lowest-boron-sleep-current/66502/5 "2024-03-07T00:05:44Z")

</div>

https://github.com/rickkas7/AB1805\_RK

This code is basically a copy of code written by Rick at Particle. The code was written to run with the AB1805 rtc board.

My level sensor's voltage is turned off during sleep by a fet. The sensor draws a few mA for 6 seconds per hour.

.My addition to the code is the readSensorAndPublish() function..

The 2.5 mA sleep current and three 4200 mAh 18650 give 7 months runtime. To get 5 years, I calculate it would require 0.25 mA sleep current. This sleep current is possible with other designs, but I like my Particle.

Thanks!!

Here is the code in the loop function.

```auto
void loop() 
{
    ab1805.loop();

    if (doSleep) 
    {
        ab1805.stopWDT();
        Log.info("going to sleep");
        delay(100);
        SystemSleepConfiguration config;
        config.mode(SystemSleepMode::STOP)
          .gpio(D8, FALLING)
          .gpio(WKP, RISING)
          .duration(60min);
        System.sleep(config);
        System.reset();
    }

    if (Particle.connected()) 
    {
        if (!cloudConnected) 
        {
            cloudConnected = true;
            uint32_t elapsed = (uint32_t)(System.millis() - cloudConnectStarted);
            Log.info("cloud connected in %lu ms", elapsed);
        }
        if (doPublish) 
        {
            doPublish = false;
            doSleep = true;
            ab1805.put(counterRamAddr, counterData);
            readSensorAndPublish(); //My function to read sensor data.
        }
        if (doWaitForTime && ab1805.isRTCSet()) 
        {
            doWaitForTime = false;
            doSleep = true;
        }
    }
    else 
    {
        if (cloudConnected) 
        {
            cloudConnected = false;
            cloudConnectStarted = System.millis();
            Log.info("lost cloud connection");
        }
        uint32_t elapsed = (uint32_t)(System.millis() - cloudConnectStarted);
        if (elapsed > connectMaxTime.count()) 
        {
            Log.info("failed to connect to cloud, doing deep reset");
            delay(100);
            ab1805.deepPowerDown();
        }
}

```

---

<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:** [March 7, 2024, 12:15am UTC](https://community.particle.io/t/lowest-boron-sleep-current/66502/6 "2024-03-07T00:15:11Z")

</div>

Got it, perhaps @rickkas7 or others can hint at something.  
Thanks.

---

<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:** [March 7, 2024, 3:02pm UTC](https://community.particle.io/t/lowest-boron-sleep-current/66502/7 "2024-03-07T15:02:57Z")

</div>

Hi, one thing I would do is this:

- measure the boron power consumption alone, outside the board you produced.

I read that if there is leakage current going in to the boron, it does not fully let it sleep, which correlates to your observation.  
So what if you measure it standalone and rule out the boron (or your code) vs the board?

While it does not fix the issue, it narrows down a bit the culprits.

---

<div class="post-metadata">

**Author:** ![bdrew7](https://avatars.discourse-cdn.com/v4/letter/b/e0b2c6/32.png) [@bdrew7](https://community.particle.io/u/bdrew7)\
**Post date:** [March 8, 2024, 4:16am UTC](https://community.particle.io/t/lowest-boron-sleep-current/66502/8 "2024-03-08T04:16:21Z")

</div>

Thanks for your interest! I will do that tomorrow.

I am going to see how the TI TPL5111 will work out switching the entire supply voltage on long enough each hour to transmit the data. The cell connection complications is my big mystery.

Thanks again,  
BDrew

---

<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:** [March 11, 2024, 11:24am UTC](https://community.particle.io/t/lowest-boron-sleep-current/66502/9 "2024-03-11T11:24:19Z")

</div>

250 µA (0.25 mA) sleep current is definitely possible. In ULP sleep it should be around 128 µA with RTC wake. If you're getting 2.5 mA either you're leaking current somewhere else on your board, or the device didn't really go into sleep successfully.

The best way to debug sleep issues is to use Serial1 debugging (TX pin) and a 3.3V serial to USB adapter (FT232). The reason is that on wake in particular, it takes a number of seconds for USB to reconnect and you'll lose a lot of messages before that.

Also be careful with how you measure. If you are using an inexpensive DMM you may find it difficult to impossible to measure properly, because if you use the high range, you can't see the proper sleep current, and in low range it will provide insufficient power for the MCU to fully wake, which also prevents it from going into sleep mode properly.

---

<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:** [September 9, 2024, 11:24pm UTC](https://community.particle.io/t/lowest-boron-sleep-current/66502/10 "2024-09-09T23:24:51Z")

</div>

Closed on September 9, 2024, 11:24pm UTC

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