Please select To the mobile version | Continue to access the desktop computer version

OrangePi

 Login            
 Register            
Search
Hot search: orangepi
View: 346|Reply: 1

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

[Copy link]

3

Threads

3

Posts

39

Credits

Novice

Rank: 1

Credits
39
Post time 2019-8-8 03:01:55 | Show all posts |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.

0

Threads

2

Posts

10

Credits

Novice

Rank: 1

Credits
10
Post time 2019-8-19 16:02:41 | Show all posts
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 have to log in before you can reply Login | Register

Points Rules

Archiver|Mobile edition|Darkroom|OrangePi En ( 粤ICP备14086627号-2

2019-10-15 12:07 GMT+8 , Processed in 0.029263 second(s), 22 queries .

Powered by Discuz! X3.2

© 2014-2015 orangepibbs en.

Quick Reply To Top Return to the list