Electronics > Beginners
Exploring a LiPo-Charger/Booster/Fuel-Gauge-thingy
mcc:
Hi,
I bought one of these:
https://www.aliexpress.com/item/1PCS-Raspberry-Pi-Zero-UPS-power-board-integrated-serial-port-power-detection/32893660585.html?spm=a2g0s.9042311.0.0.323e4c4ds8xUsP
for my Raspberry Pi Zero W.
It is partly documented here:
https://github.com/linshuqin329/UPS-Lite
I translated the chinese spoken manual via google and some guesswork to english but didn't find a answer to my question.
The circuit consists of a MAX17040 fuel gauge, a SIL CP2104 serial-to-usb interface chip, a Fitipower FP6717 boots converter chip (with
supposedly about 90% efficiency...) and a mysterious little 6pin SOT23-6.
The according datasheets of the known chips doesn't tell anything of a charging functionality.
I did a measureing of the current and voltage which flows while charging the LiION cell (LiION not LiPoly according to the writing of the cell
itsself. I did the current measureing with a USB "charging doctor" (nothing fancy) and voltage measureing with a BRYMEN BM867 at the cell
itsself.
The voltage rises to 4.23 V and stays there and the starting current is about 500mA which slowly falls down to 0.5mA
in the second half of the circle. Looks quite normal. 4.23V looks a little high for my beginners eyes, though.
My question is: What is this SOT23-6 6-pin something on the PCB. A transistor? A charging IC (one pin goes directly
to the (+) of the LiION cell).
Or what does charging?
Another question:
One can read via I2C the SOC and the voltage as measured by the MAX17040.
As fas a I know, it is recommended to charge up to 75% and discharge no further than 25% charge of the cell.
The voltage measured by the MAX17040 and what I measure with my DMM match.
And the amount of mAh I have to recharge to reach 0.5mA cutoff current and the reported SOC match.
But SOC and voltage reported by the MAX17040 compared to a Voltage vs. SOC table I found on the
internet does really not match.
Is this Raspi power supply any good?
Or am I badly wrong at some point with my assumptions?
Is there any reasonable SOC vs. Voltage chart for LiION-cells?
I have attached the fotos I made from the PCB.
The datasheets are here:
https://datasheets.maximintegrated.com/en/ds/MAX17040-MAX17041.pdf
https://www.silabs.com/documents/public/data-sheets/cp2104.pdf
https://pdf-datasheet-datasheet.netdna-ssl.com/pdf-down/F/P/6/FP6717-Fiti.pdf
Thank you very much in advance for any help in exploring and evaluating this circuit!
Cheers!
Meino
kjr18:
Indeed this sot23-6 looks like TP4057 or some other clone, set to 400mA charge current. These chips are very simple but quite good li-ion cc\cv charge ic's. You can try to compare your circuit to what shows up in datasheet.
mcc:
Hi kjr18,
WHOW! The first "I understand this" on my side here...! Great !
I used the continuity tester of my DMM to verify the schematic in this datasheet:
https://datasheet.lcsc.com/szlcsc/Nanjing-Extension-Microelectronics-TP4057_C12044.pdf
The only difference seems to be, that the LEDs on my board get an R extra each to
limit the current...which seems reasonable for a LiPo-powered board.
The next, what I need to understand is the MAX-chip.
Currently I am in doubt, whether the value read via I2C is the percentage of charge
remaining in the LiPo (this is - I think - what the datasheet says) or the amount
already dicharged from the LiPo.
I definetly need some valid chart, which shows a voltage <=> SOC dependency.
As I understand LiPo (and that does not mean much) the battery voltage
measured to estimate its SOC is the voltage without load....
Correct?
Does anyone has experiences with this MAX17040?
Is he worth it or ... ?
Thanks a lot again for any help in advance!
Cheers!
Meino
stmdude:
I shipped a few million devices with the MAX17040 in it.
If you're talking about the "SoC" registers in it, it's the percentage of charge _remaining_ in the battery.
Please note though. The MAX17040 works in mysterious ways, and is powered by bullshit and unicorn farts. It's not a columb counting device, hence it's really just guessing. It's pretty good at guessing, but it's still guessing. (Hint: It's just reading the voltage, and what happens to a battery when you apply a load?)
Also, the MAX needs a few complete cycles to self-calibrate itself before the SoC readings are somewhat reliable.
Lastly, if you're going for maximal accuracy, the MAX needs to be calibrated (not self-calibration, manual calibration), which if I recall correctly is done by Maxim. (Its been a few years)
mcc:
Hi stmdude,
Thank you very much for your help! :)
Currently this happens after three charge/discharge cylces:
When I start the Raspi and let it run idle ("running idle"-what
did I wrote there......? :)
I mean: Only the kernel is running and a little script doing
some I2C to get the voltage and the percentage off the chip
from time to time) this happens:
The voltage level falls and I can verify the value with my DMM.
So no problem here.
But the percentage rises first and falls then but towards the
point I would shutdown/switch off, the percentage is way to high.
I use this table (posting #6):
https://www.rcgroups.com/forums/showthread.php?2366548-LiPo-80-rule-and-my-shallow-charge-rates
According to that chart, 3.69V is about 10% left charge.
But my board reports:
++++++++++++++++++++
Voltage: 3.65V
Battery: 30%
++++++++++++++++++++
You wrote, calibration is done by...MAXIM? So...do I need to send
them my board? Is a joke...or? OR? ;)
What voltages would you suggest for a LiPo cell, which is currently
be charged AND slightly under load (95mAh - the linux is running reading the
voltage and SoC), has 1000mAh and is supposedly a Li*Po* cell despite
the writing on it saying "LiIon", as upper and lower limits to not to
do harmful things to the lifespan of the LiPo?
How many cycles -- roughly guessed -- I need before the Max17040 from
"wildly guessed mode" to an elaborated guess of the SoC?
And why LiPos are such delicate beasts?...;)
Thanks a lot in advance for any help!
Really appreciated! :)
Cheers!
Meino
Navigation
[0] Message Index
[#] Next page
Go to full version