Getting batteryinformation out of an power bank, need a pro.

Kurt's picture

Offline

Joined: May 02, 2020

Replies: 0
Getting batteryinformation out of an power bank, need a pro.
May 2, 2020 - 2:19am

Hi,

I have a difficult question, for a project we use a powerbank to power our device.

We use the usb out 5V volt as the power but our device also needs to now how much capacity there is still in de battery. 3.7---->3.5.

Is there a posibility to read out this info without having to break open the powerbank and read de + & - from the battery.

Does USB-C sends this information ?

 

I really hope you can help me out.

 

Thx 

Kurt

Sourav Gupta's picture

Offline

Joined: Feb 12, 2018

Replies: 219
Calculate the consumption and run time
May 3, 2020 - 1:52pm

You need to calculate the load consumption and the runtime (full charge to 0).

After getting the info, if you have a microcontroller you can easily calculate an approximate mAH. After that, use eeprom feature and store the running time data and calculate how much capacity the power bank has.

You need eeprom, mcu, sesnsing the turned power available status and load current sensing feature.