View: 5218|Reply: 1

Battery consumed until depleted (0V) - Orange Pi RK3399

[Copy link]

3

threads

3

posts

41

credits

Novice

Rank: 1

credits
41
Published in 2019-8-8 03:01:55 | Show all floors |Read mode
Hi. I am using an Orange Pi RK3399 and when powered on battery, it keeps functioning until the battery is depleted (discharges from ~7.4 V and all the way down to 0V). I imagined that either the battery charger/power path ic (BQ25700a) or the PMU RK808 would cut-off power when battery voltage drops below the operating range (for batteries with two cells in series, that would be around 6 V).

I even tried manually to configure the BQ25700a battery charger through I2C/SMBus, but it does not disconnect the battery from the processor and peripherals.

Any insights on why is this happening? Having battery compatibility (connector, charger ic, fuel gauge, etc.) is pointless if the board will consume power until the battery is damaged permanently.

1

threads

3

posts

15

credits

Novice

Rank: 1

credits
15
Published in 2019-8-19 16:02:41 | Show all floors
Edited by lesrhorer at 2019-8-19 16:06

In general, a device will not disconnect a battery unless it has special circuitry designed to just that purpose.  Any device that does will not be able to power up again when power is re-supplied unless it has a separate switch active when the device is off, or a secondary supply.  Think about it.  If the battery is disconnected, what is going to cause the battery to be re-connected?  What's more, if it is the device itself which controls the battery disconnect, what is going to cause the battery to re-connect, or with inverted logic, how is it to keep the battery disconnected if it is off?

What is needed is a battery isolated by a pair of diodes and a relay from a secondary power source.  The secondary power source attaches to the Pi through a diode that prevents the battery from discharging back through the secondary supply when its voltage is lower than the battery's voltage.  Whenever power is supplied by the secondary supply, the Pi turns on.  The battery is attached through a diode that prevents the battery from over-charging and a Normally Open relay that prevents the Pi from being attached to the Pi at all until a GPIO pin energizes the relay.  Code must be run at boot that energizes the relay.  Once done, the Pi will remain up until both the battery and the secondary soure are removed, or the Pi is shut down.  Once shut down, the battery will be completely isolated until the secondary supply returns and the Pi boots.  An alternative is to provide a bypass switch that shorts across the relay, bringing up the Pi.  In this case, the diodes are not necessary, but one must either manually hold down the switch until after the Pi has booted, or else provide an external timer (a 555 will do) that keeps the circuit closed until the pi has had a chance to boot.  Instead of a timer, one can also employ a latching relay that can be shut down by the Pi using an additional GPIO pin.

I have a pretty slick design - if I say so myself - for a UPS, or I can work with you on a simple automatic battery disconnect.  PM me if interested.



























/


You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list