unscheduled power down

70 views
Skip to first unread message

jmelson

unread,
May 25, 2017, 12:53:38 PM5/25/17
to BeagleBoard
Some time ago, there was a report that unscheduled power interruptions could cause damage to the CPU's IO pins.  The fix was to add a capacitor to the battery header location (TP5..TP8).  There never was a spec on how big a capacitor was required.

I just got a Bone Black Rev C from Digi-Key.  Is this still a problem?  This Bone will be embedded inside a piece of gear that is powered by an equipment rack, and people sometimes cut off the rack power without shutting down the Bone first, although I advise them to do a shutdown properly.  We know that the SD card's file system can be corrupted by dropping power without warning, we know how to fix that.  But, we are worried about hardware damage.

Any comments?

Thanks,

Jon

William Hermans

unread,
May 25, 2017, 3:05:44 PM5/25/17
to beagl...@googlegroups.com
Use an inline battery, e.g. between "AC in" and the barrel jack or header power input. Or put a battery on the test points as you mentioned. Granted, if you put a battery on the test points, you'll also need to occasionally( maybe always ?) toggle SYS_RESET before the power button will work.

--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/6086f0c2-1363-4cc8-a515-0a7cc01ab504%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

jmelson

unread,
May 25, 2017, 4:08:38 PM5/25/17
to BeagleBoard


On Thursday, May 25, 2017 at 2:05:44 PM UTC-5, William Hermans wrote:
Use an inline battery, e.g. between "AC in" and the barrel jack or header power input. Or put a battery on the test points as you mentioned. Granted, if you put a battery on the test points, you'll also need to occasionally( maybe always ?) toggle SYS_RESET before the power button will work.

And, what happens when the user just turns off the power?  The battery drains, and then the Beagle Bone crashes and the battery is left totally drained, which ruins it, too.
Doesn't sound like a solution.

Jon

Robert Nelson

unread,
May 25, 2017, 4:11:35 PM5/25/17
to Beagle Board
Sounds like someone needs to design-in a front end to handle that... ;)

Regards,

--
Robert Nelson
https://rcn-ee.com/

Don Miller

unread,
May 25, 2017, 4:35:14 PM5/25/17
to BeagleBoard

Has somebody done this already?

Indeed, I see two separate issues that would need to be addressed here.

The first, that of an external system applying power to the BBB IO when the BBB is not powered up, can often be addressed with external series resistors and schottky clamping diodes.  The alternative is system power sequence control.

The second, is that of power management.  I am working on this right now for one of my projects.  Requirements are:

1) a reservoir of power for the BBB to do it's shutdown housekeeping (battery or capacitor)
2) an external controller to manage power when it sees the input start to sag -- and control when it is allowed to power back up!
3) a working ACPID system, or alternatively a home-brew equivalent using interrupt IO.

I'll post my solution when available.  I'm using an external PIC micro-controller and a P-channel MOSFET.   If my solution is attractive to others, the Motorola purists out there will certainly be able to use something like an MSP430 instead...

Don

William Hermans

unread,
May 25, 2017, 6:53:59 PM5/25/17
to beagl...@googlegroups.com
"Somebody" has ;) But i guess some need things "spelled out" in detail ?

Basically, you need an MCU that detects power in, that cuts power to the beaglebone from the battery after a set amount of time. *Or* that communicates between it's self and the beaglebone, which "Says" "Hey buddy battery is getting low you need to power down now!". The tricky part with the latter part here is how does the MCU know when the beaglebone is powered down ? I can think of a couple ways at least . . .

Secondly, you'll need to basically code watchdog functionality into this MCU, so you know how to spot an improper power cycle, then toggle SYS_RESET, and then toggle the "power button". To make sure the board does in fact come up. Again, how does one do this ? By Being creative . . .

I've done this with an MSP430, and I know of at least one other person(company ) that uses a PIC micro to do essentially the same thing I'm doing. With a cape for sale, in the context of a "UPS" style cape. He's posted a link to this cape before. We've(my buddy and I ) have been talking about this for years, and finally implemented hardware and software about a year ago. It works for us.

Ideally, I think the best solution is to design something like I think Gerald was talking about some time ago, and something he actually made at one point I think. A real UPS, that sits before the 5vdc input to the board. This way if you need USB in your application, nothing gets disturbed. Then the board need not be "worried" about "Hey the PMIC says power went away, I need to shut down". In our own case we do have some devices that do need USB for a3G/4G modem that doesn't cost one their first born child. But in this case, the system they're controlling is also powered by AC, and it's a moot point. So other than contacting an external server to tell it the system is down. There's nothing left to do, but to wait it out(by powering down ).

But honestly guys, come on, there about 5 billion ways to deal with this situation Be creative.

William Hermans

unread,
May 25, 2017, 6:56:17 PM5/25/17
to beagl...@googlegroups.com
Then of course, when "AC in " is not applied, you need to cut the connection between the beaglebone, and the battery. Then do not reapply that connection until after you're sure power is back. Be it as simple as running some sort of debouncing algo, or some other kind of method is up to "you".
Reply all
Reply to author
Forward
0 new messages