View Single Post
  #59   Report Post  
Posted to uk.d-i-y
T i m T i m is offline
external usenet poster
 
Posts: 13,431
Default Predicting a graph from 3 (6?) values?

On Wed, 20 Sep 2017 08:36:50 +0100, Martin Brown
wrote:

On 19/09/2017 19:02, T i m wrote:
Reference 'C' gives:
Current, Time to fully discharge:
21A, 1h (i.e. C/1)
11.9A, 2h (i.e. C/2)
5.40A, 5h (i.e. C/5)
3.10A, 10h (i.e. C/10)
1.60A, 20h (i.e. C/20)
0.36A, 100h (i.e. C/100)


The trick is to work out what varies most smoothly with load.

If you work out the battery capacity in Ah and then fit that against
current I you get a reasonable quadratic approximation of capacity

Capacity (Ah) = 35.3 - 1.56*I + 0.04*I^2

It is always going to be a bit rough and ready since individual
batteries will vary from the abuse they have suffered in service.

A linear model would underestimate the low current lifetime

Capacity (Ah) = 33.2 - 0.66I

Datasheet batteries always seem to last longer than real world ones!

You should be able to reproduce these models by putting the numbers into
Excel and plotting I*t against I.



Hi Martin and thanks for the feedback. I can follow some of it. ;-)

More thinking out loud on it all .... Considering a graph of various
discharge rates shows that the effective capacity does vary as a
function of the discharge rate, I think it would still be worthwhile
trying to accommodate it to some degree if possible (accepting all the
caveats you mention etc). I agree though that whilst a linear function
would be better than nothing at all, it may not reflect the situation
was well as it *might*, if we could find that mathematical solution,
even though it's only ever going to be an approximation at best. I was
never looking for a laboratory solution here. ;-)

On that though, I can (re)evaluate the batteries capacity over time
and modify the numbers accordingly and could even automatically
compensate for temperature (if the typical temperature range
difference we are likely to go boating would be significant etc).

So it's just a matter of (initially especially) seeing if we can make
use / sense of the published data for my specific battery(ies) and if
that isn't sufficient, if we can use the stats from something similar
to at least start the ball rolling?

It's just knowing that there can be such a marked difference in
capacity as a function of the current drawn ... and my potential
maximum current (30A) *is* significant to this, even with 3 batteries
in parallel (~90Ah) there is a very good chance that some massaging of
the readings to predict a particular depth of discharge threshold
would be worthwhile.

If I retained the original resistor based 'speed control', even I,
once I guesstimated what the capacity would be for the currents
typically seen at the 5 set speeds, could possibly write some code
that applied the variable.

Read I read V

If I = 0 and = 7 (where speed 1 was around 5A) then multiply V by .8

Else if I = 10 and = 19 (where speed 2 was around 15A) then multiply
V by .7

(or whatever etc).

It's working out a formula that would give me this variable result
across the entire range (for when using a fully variable and hopefully
more efficient speed controller) that I am unable to deal with (red
mist with such maths etc). ;-(

Cheers, T i m