News for hackers. Stuff that matters.
Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by teraflop on Friday August 02, 2024 @12:47PM (#41140423)
This looks like a pretty cool device!

However, I was immediately curious about how the "dual battery" feature works. The IP5306 power-management IC seems to be designed only for a single battery, and as far as I can tell from the schematic[1], the two battery connectors are just directly connected to each other in parallel (across VBAT and GND).

This seems really sketchy. If you plug in two batteries that are not at the same state-of-charge, then you're going to get a very large current flowing from the higher-voltage battery to the lower-voltage one, probably significantly exceeding the batteries' rated current limits. At best this wastes a lot of power and generates a lot of heat, and at worst it could be a fire hazard.

[1]: https://github.com/ZitaoTech/Hackberry-Pi_Zero/blob/main/Sch...

Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by fecal_henge on Friday August 02, 2024 @01:17PM (#41140696)
At best this wastes a lot of power and generates a lot of heat, and at worst it could be a fire hazard. - you just described my high spec HP laptop.
Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by KennyBlanken on Friday August 02, 2024 @04:11PM (#41142183)
I was going to launch into a lecture about how battery isolation is a Thing, very simple, etc and the author couldn't possibly be dumb enough to not isolate them with diodes, but then I looked at the schematic and yiiiiiiiikes, they're both just tied together, I think. There's a charge management IC and a MOSFET as part of the USB power input...and that's it.

I was sketched out by BSI not being connected to anything, but it seems it's a fixed resistance battery size/chemistry ID function, not a temperature sensor. That said, I don't see any over/under temperature protection except for some sort of vague temperature limit in the charge IC (which is not thermally coupled to the battery in any way, so only a general "the device is way too hot"), so hopefully that's in the battery - don't go buying any cheapo clones.

I also don't see any fusing, which is a huge no-no. A polyfuse is a twenty cent (ish) part.

Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by szundi on Saturday August 03, 2024 @03:59AM (#41145287)
Oh, houses can burn down by not putting in 2 diodes and ptc fuses
Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by johnklos on Friday August 02, 2024 @01:58PM (#41141053)
I read this part:

> Replace your battery in 10 seconds without killing the power!

as a suggestion that you'd have four batteries total, and you'd have two that're fully charged, and you'd replace one battery, and within seconds you'd replace the other. Or at least that's how I'd do it.

I've recently read up about power management and battery charging, and want to make a charge controller than can connect two separate banks. I wonder how hard it'd be to change the IP5306 in the Hackberry Pi Zero to handle the two batteries separately.

Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by KennyBlanken on Friday August 02, 2024 @04:27PM (#41142320)
And if you screw up which battery is which?

"Do things exactly right, quickly, or the device bursts into flames*" is not acceptable electronics design, even for something you intend to use yourself.

* do you really want to trust a generic battery's built-in protection IC?

Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by BolexNOLA on Friday August 02, 2024 @10:50PM (#41144348)
Maybe I’m being too generous but I feel like 99.9% of the people using something like this would do it properly
Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by Nab443 on Saturday August 03, 2024 @06:49AM (#41145830)
.. until their curious child decides to have a look at it.
Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by II2II on Saturday August 03, 2024 @07:52AM (#41146080)
Now that I'm aware, sure. If I wasn't told, I would assume that they were designed so that a new battery could be swapped in while one battery remained inserted to maintain power (much like an old Thinkpad I used to own).
Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by tedunangst on Friday August 02, 2024 @04:46PM (#41142484)
It should definitely use the plural, batteries, if that's the intention.
Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by wanderingjew on Friday August 02, 2024 @07:41PM (#41143598)
acktually, traditionally, 'batteries' referred to two or more cells. This keeps with the etymology of the word as an emplacement of cannon or guns. If OP meant a single cell, they should have written 'cell', not the singular 'battery'.
Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by samstave on Friday August 02, 2024 @09:29PM (#41144045)
A mid-stream capacitor is holding enough charge for 10 seconds to allow indivdual swapping out -- and also this is meant? to mean that you can swap TWO NEW batteries in without having to shutdown/sleep/power interrupt - thus the 10 seconds.... that dope
Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by outworlder on Saturday August 03, 2024 @12:40AM (#41144717)
If there's a capacitor... what about adding a switch to allow you to select which battery you are using? Then you can replace whatever you are not using without issue.
Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by diggan on Friday August 02, 2024 @01:35PM (#41140831)
I understood it as it'll use only one of the batteries, but you can swap between which is used. So initially, you have two charged batteries, while using only one. Once you run out of power in the first one, you'll switch to the second, and now the first one could be swapped to a fully charged one. Blue/green deployments, but for batteries basically.
Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by teraflop on Friday August 02, 2024 @01:41PM (#41140883)
It would be convenient if it worked that way, but since the batteries are connected across each other in parallel, they will both be discharged simultaneously. And as soon as you hot-swap one of the nearly-discharged batteries for a charged one, it'll be more-or-less short circuited across its discharged counterpart.

To do what you describe, you would need additional components to "switch" one battery at a time into the power path. (This can be done with a single transistor if you're only worried about current flowing in one direction, but I believe it's trickier if you want to support both charging and discharging in the same circuit.)

Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by dheera on Friday August 02, 2024 @02:58PM (#41141565)
null
Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by teraflop on Friday August 02, 2024 @03:12PM (#41141688)
Yes, that is exactly what I said at the beginning of this thread.
Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by samstave on Friday August 02, 2024 @09:30PM (#41144049)
I asked the following above - does this work?

>> A mid-stream capacitor is holding enough charge for 10 seconds to allow indivdual swapping out -- and also this is meant? to mean that you can swap TWO NEW batteries in without having to shutdown/sleep/power interrupt - thus the 10 seconds.... that dope

EDIT: I was imagining the capacitor holds up the whole thing for ten seconds to swap out both bats...

Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by teraflop on Friday August 02, 2024 @09:51PM (#41144124)
In theory you could do that, but it has its own costs and complications. And if you're going to add a big enough capacitor to ride out a battery swap, why bother with two batteries instead of just one?
Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by numpad0 on Friday August 02, 2024 @10:49PM (#41144344)
Hotswap of two parallel batteries must replace both with a matched pair. Otherwise the one at higher state of charge starts charging others without current limit.
Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by zitterbewegung on Friday August 02, 2024 @01:33PM (#41140814)
If you ran it with one battery would you not have the problem ?
Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by teraflop on Friday August 02, 2024 @01:43PM (#41140898)
There's no problem if you use one battery, and there should also be no problem if you use two batteries and charge/discharge them both simultaneously (because then the voltages are matched).

The problem shows up when you try to "hot-swap" just one of the batteries and replace it with one at a different state of charge, as the README claims you can do.

Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by fecal_henge on Friday August 02, 2024 @03:00PM (#41141587)
What is the expectation here about functionality? They are using some kind of COTS battery system to keep the cost down, but at the consequence of this safety qustion. Should these people expect any buyer to antipate this? Its not really a consumer product after all.

I think there is no shortage of battery management ICs, but the number that can arbitrate between external power/battery A/Battery B certainly eliminates 97% on your Digikey parametrics.

Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by aftbit on Friday August 02, 2024 @03:53PM (#41142045)
IMO my expectation is that they not do that. If they want to offer hot-swappable batteries, they should either do it right (with a more functional battery management IC or a little homebrewed FET-switching circuit), or they should at least come up with a hack that doesn't threaten the battery safety. For example, have a physical switch to select between the two batteries and instruct the user to flip it when one gets low. Use a super capacitor to cover the short time while the switch is between connections.
Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by aftbit on Saturday August 10, 2024 @11:14PM (#41213767)
Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by numpad0 on Friday August 02, 2024 @09:05PM (#41143956)
It feels to me that the fact that there are no readily available BMS chip that supports this type of circuit indicates something. But maybe I'm mistaken...
Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by freedomben on Friday August 02, 2024 @08:52PM (#41143918)
I agree, this is a pretty bad idea. I've used batteries in parallel many times, but it's always in the context of treating it as a single "bank" that is always charged at the same level, not as individual batteries which can be swapped separately. Swapping a full battery in when the other one is low is going to result in a rapid rebalance of power until they get to the same level!

You can think of it like having two big swimming pools side by side, slowly draining out into a little stream. If the two pools are at the same level and the wall between them disappeared, they're largely going to be fine and keep on going.

Now imagine one pool is nearly empty and the other is full. As soon as you disappear that wall in the middle, there's gonna be a very powerful wave as the water from the high pool rushes in to fill the empty pool.

Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by userbinator on Saturday August 03, 2024 @01:08AM (#41144799)
It looks like two BL-5Cs, which normally come with their own overcurrent protection (AFAIK even the no-name generic clone cells do), so what's more likely to happen is you trip the protection on one of the cells being swapped. Fortunately these are not very high capacity nor current cells, being ~1000mAh at most. They seem to be pretty robust in general, as a series of hugely popular MP3/MP4 players that used them had nothing more than a diode from USB5V for charging.

On the other hand, I'll gripe about that "schematic" being not actually a schematic but just loose parts with labeled pins.

Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by RF_Savage on Saturday August 03, 2024 @08:14AM (#41146180)
Barely more than a netlist.
Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by szundi on Saturday August 03, 2024 @03:58AM (#41145283)
What about having 2 diodes and problem solved
Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by jeden on Saturday August 03, 2024 @04:58AM (#41145469)
It has no solar panels , runs shorter than my cell phone on a single charge. It is thick. No ethernet socket Any small UMPC is better than this thing. I don't mercifully mention the blobs encapsulated in the raspberry pi itself.
Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by znpy on Saturday August 03, 2024 @09:05AM (#41146418)
It’s got usb-2.0 ports though, you can get an usb-ethernet adapter if you want
Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by swiatlo on Saturday August 03, 2024 @01:24PM (#41147895)
for power?
Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by meefus on Saturday August 03, 2024 @11:13AM (#41147048)
I'm not understanding the appeal here. Why use this instead of a regular smartphone?
Re:Hackberry-Pi_Zero – A handheld Linux terminal using Raspb... by rkagerer on Saturday August 03, 2024 @11:44AM (#41147252)
People often do this on their boat, but with 100Ah batteries and those rotary switches that select between "1, 2, BOTH".

They don't realize how much current can flow if they slam it to "BOTH" when two batteries with very different voltages are connected.