# Boron commercial power monitor

**URL:** <https://community.particle.io/t/boron-commercial-power-monitor/61073>\
**Category:** Hardware\
**Tags:** boron\
**Created:** [September 3, 2021, 12:56am UTC](https://community.particle.io/t/boron-commercial-power-monitor/61073 "2021-09-03T00:56:41Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![MonitorMan](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@MonitorMan](https://community.particle.io/u/MonitorMan)\
**Post date:** [September 3, 2021, 12:56am UTC](https://community.particle.io/t/boron-commercial-power-monitor/61073/1 "2021-09-03T00:56:42Z")

</div>

Hello,

I am trying to duplicate the Commercial Power Monitor as described in this post

> [@DiagnosticsHelperRK - Boron Power Source (1.1.1 vs. 1.4.4)](https://community.particle.io/t/diagnosticshelperrk-boron-power-source-1-1-1-vs-1-4-4/54087):
>
> Hi, I am utilizing a Boron to monitor AC power status for a server room to detect power outages. The system worked well on firmware 1.1.1; however, I upgraded to 1.4.4 and it is no longer detecting power status as before. @rickkas7, is it possible that the DiagnosticsHelperRK library is not compatible with this version? See the following link for my build: [https://go.particle.io/shared\_apps/5e149d8a8cadfc0005011542](https://go.particle.io/shared_apps/5e149d8a8cadfc0005011542) Thank you!

My boron is running 2.0.0 and when commercial power is restored, rather than returning to commercial power, the boron constantly switches back and forth between battery and USB power as shown in this Ubisoft’s graph.

The charging led flashes amber and the only way to break the cycle is to disconnect both battery and usb and then connect usb first then reconnect th3 battery.

Do I need to downgrade to version 1.4.4 as in the previous post?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/d/2/d2201aecc075502999916a5f415a83a82a229703.jpeg)

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![MonitorMan](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@MonitorMan](https://community.particle.io/u/MonitorMan)\
**Post date:** [September 3, 2021, 2:19pm UTC](https://community.particle.io/t/boron-commercial-power-monitor/61073/2 "2021-09-03T14:19:57Z")

</div>

I tried with a different lipo battery today. Same issue.

---

<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:** [September 6, 2021, 8:40pm UTC](https://community.particle.io/t/boron-commercial-power-monitor/61073/3 "2021-09-06T20:40:24Z")

</div>

> [@MonitorMan](#):
>
> My boron is running 2.0.0 and when commercial power is restored, rather than returning to commercial power, the boron constantly switches back and forth between battery and USB power as shown in this Ubisoft’s graph.

Hi, and welcome to the community!  
curious here, how do you know it switches from bat to USB power?  
thanks

---

<div class="post-metadata">

**Author:** ![MonitorMan](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@MonitorMan](https://community.particle.io/u/MonitorMan)\
**Post date:** [September 7, 2021, 12:41am UTC](https://community.particle.io/t/boron-commercial-power-monitor/61073/4 "2021-09-07T00:41:37Z")

</div>

Thank you for your support.

I modified the code in the example to send the powerSource value from the DiagnosticsHelperRK.h to Ubidots instead of a “sanitized” 0 and 1.

If I boot the Boron on battery power, it reports a value of 5 (POWER\_SOURCE\_BATTERY). When I connect a USB cable to the Boron, it reports a 1 (POWER\_SOURCE\_VIN) and then starts bouncing back an forth between 1 and 5 every 3 to four seconds. Here is a sample where I coded the Boron to send the powersource to Ubidots.

 ![Capture](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/f/b/fbd36049c137aa6f8d63124c081350d28f4f1d5d.png)

If I unplug the USB power cable, the Boron reports a 5 and then stops sending reports as specified in the code.

BTW, I am using an Apple 5.2V DC 2.4Amp power supply connected to the USB port on the Boron. I have tried several different power supplies and all act the same.

---

<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:** [September 7, 2021, 2:22am UTC](https://community.particle.io/t/boron-commercial-power-monitor/61073/5 "2021-09-07T02:22:12Z")

</div>

thanks for the clarification.

@rickkas7 would you know by any chance what can be happening here?  
thank you

---

<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:** [March 8, 2022, 2:22pm UTC](https://community.particle.io/t/boron-commercial-power-monitor/61073/6 "2022-03-08T14:22:54Z")

</div>

Closed on March 8, 2022, 2:22pm UTC

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