Hi all,
Anyone have a battery model?
Thanks,
Hi all,
Anyone have a battery model?
Thanks,
@macsky ,
How sophisticated a battery model do you want?
The best way I know to create a battery model is to use a custom C-Block.
You can create a table that has an open circuit voltage (Voc) based on battery capacity remaining.
The C-Block model would determine how much current is being used in time. This would subtract from the remaining capacity and therefore lower the Voc as sim time is executed.
Most battery suppliers will give you a mAh vs. time based on a known battery load. This you can translate into a table. You can then perform a PWL (piece-wise-linear) interpolation of the present state of battery capacity to provide an immediate Voc from the battery.
The above is simple but provides at least support for battery voltage depletion.
It doesn’t take into account, internal source resistance (Rs), Voc recovery time when the load is removed on a pulse. and other potential factors such as Temperature factor corrections.
Trying to make the battery model more complicated and more realistic is going to be a challenge since the battery supplier rarely, if ever, provides you this type of data.
To achieve a more realistic battery model with the additional factors, I’ve had to resort to getting new batteries from the supplier and actually create my load pulses and perform measurements and collect the data. On one battery type, it took me 5 months to collect enough data on 4 battery samples to be reasonably accurate.
Len
I have several models of batteries of different chemical types in my LTspice. They are available on ltwiki.org.
Depending on the use case …
For the study of CC/CV charger, simple implementation is adequate.
Anyway, do you mind to explain why do you need a very detailed model?
I’m looking to simulate CC/CV chargers and also just to understand how my circuit responds to a discharged battery as a realistic load (as compared to a simple resistor/ current source).
Ideally, I would need the battery pack to be able to have customizable nominal voltage, capacity, and could sink >100W or user-definable.
Prof. Sam Ben-Yaakov has a tutorial of Simple Simulation model of a rechargeable battery. https://www.youtube.com/watch?v=KL6Uim7spcE.
Another good reference is a paper by Min Chen : Accurate Electrical Battery Model Capable of
Predicting Runtime and I–V Performance
The major concepts are identical with a capacitor to model battery lifetime and a B-source for voltage-current characteristics. You have to study these material (especially Prof. Sam Ben-Yaakov) video to understand the modelling technique.
I work out my approach changed a bit of the model introduced by Professor.
Here is an example to model this XTAR 18650 4000mAh Rechargeable Battery (datasheet).
This is a simulation of discharge characteristic
Battery - XTAR 18650 4000mAh Li-ion (Discharge).qsch (10.4 KB)