## Linearity of SOC

evnow
Moderator
Posts: 11480
Joined: Thu Apr 22, 2010 11:41 am
Delivery Date: 25 Feb 2011
Leaf Number: 303
Location: Seattle, WA

### Linearity of SOC

I've been tracking the starting and ending SOC units for almost all trips in the last couple of months. What I've noticed is that ... at the top end, SOC units have less energy than in the middle esp. the 280 to 270 band has little actual energy compared to say 230 to 220. I don't have done enough data at the bottom end to draw any conclusions.

The following shows the Wh/SOC unit calculated using the average of the starting and ending trip SOC units (the denominator). The actual energy used is calculated as miles drives / mpkwh (this is the numerator). The Wh/SOC should be around 75 (21,500/281 or 21,000/281) if the SOC units were linear.

We see quite a bit of variability - between 40 & 110 Wh/SOC. But the trend shows the Wh/SOC going down as the SOC # goes up.

I wonder whether we should consider this when displaying the SOC %.

ps : By eliminating outliers we get ...

My guess is, when the SOC # is below 100, the Wh/ SOC again goes down.
1st Leaf : 2/28/2011 to 5/6/2013
2nd Leaf : 5/4/2013 to 3/21/2017
Volt : 3/25/2017 to 5/25/2018
Model 3 : 5/10/2018 to ?

Herm
Posts: 3765
Joined: Sun May 23, 2010 3:08 pm
Delivery Date: 29 Aug 2012
Location: Timbuktu, Mali

### Re: Linearity of SOC

the 281 scale is probably not the actual capacity, but a voltage related status of the battery.. for a true linear SOC you would use a kWh counter.. apparently both voltage and current measurements are available in the CAN-bus so it should be possible to generate a kWh reading.

evnow
Moderator
Posts: 11480
Joined: Thu Apr 22, 2010 11:41 am
Delivery Date: 25 Feb 2011
Leaf Number: 303
Location: Seattle, WA

### Re: Linearity of SOC

Herm wrote:the 281 scale is probably not the actual capacity, but a voltage related status of the battery.. for a true linear SOC you would use a kWh counter.. apparently both voltage and current measurements are available in the CAN-bus so it should be possible to generate a kWh reading.
Instantaneous Voltage & Current only gives you Power. Not energy stored.
1st Leaf : 2/28/2011 to 5/6/2013
2nd Leaf : 5/4/2013 to 3/21/2017
Volt : 3/25/2017 to 5/25/2018
Model 3 : 5/10/2018 to ?

TickTock
Posts: 1701
Joined: Sat Jun 04, 2011 10:30 pm
Delivery Date: 31 May 2011
Leaf Number: 3626
Location: Queen Creek, Arizona
Contact: Website

### Re: Linearity of SOC

Very interesting. I got a very linear response when I plotted it. Very noisy, but linear. If anything the curve has slightly positive slope, not negative like yours.

This was plotted from a log taken during a single charge. I did confirm on a second log that the noise is, in fact, noise and not repeatable non-linearity.

DaveEV
Posts: 6249
Joined: Fri Apr 23, 2010 3:51 pm
Location: San Diego

### Re: Linearity of SOC

evnow wrote:Instantaneous Voltage & Current only gives you Power. Not energy stored.
Obviously you'd have to take rapid samples (many a second) of V&C to accurately calculate energy...

evnow
Moderator
Posts: 11480
Joined: Thu Apr 22, 2010 11:41 am
Delivery Date: 25 Feb 2011
Leaf Number: 303
Location: Seattle, WA

### Re: Linearity of SOC

drees wrote:Obviously you'd have to take rapid samples (many a second) of V&C to accurately calculate energy...
Still won't give you energy stored. You need to integrate the power over the length of the drive till the car goes to turtle and stops.
1st Leaf : 2/28/2011 to 5/6/2013
2nd Leaf : 5/4/2013 to 3/21/2017
Volt : 3/25/2017 to 5/25/2018
Model 3 : 5/10/2018 to ?

evnow
Moderator
Posts: 11480
Joined: Thu Apr 22, 2010 11:41 am
Delivery Date: 25 Feb 2011
Leaf Number: 303
Location: Seattle, WA

### Re: Linearity of SOC

TickTock wrote:This was plotted from a log taken during a single charge. I did confirm on a second log that the noise is, in fact, noise and not repeatable non-linearity.
How did you get the kwh used per SOC unit ?

The first 10 units (280 to 270) go so fast - I'm sure it doesn't have as much energy. It is possible between say 50 and 270, the units have a fiarly constant amount of energy.

ps : My method assumes the m/kwh shown by Leaf is accurate.
1st Leaf : 2/28/2011 to 5/6/2013
2nd Leaf : 5/4/2013 to 3/21/2017
Volt : 3/25/2017 to 5/25/2018
Model 3 : 5/10/2018 to ?

Herm
Posts: 3765
Joined: Sun May 23, 2010 3:08 pm
Delivery Date: 29 Aug 2012
Location: Timbuktu, Mali

### Re: Linearity of SOC

evnow wrote: Still won't give you energy stored. You need to integrate the power over the length of the drive till the car goes to turtle and stops.
Duh!, you know what I meant.

Tick-Tock, could you do a graph of pack voltage minus IR losses vs GID?.. assume a constant value for R, I just want to see how linear it is.

TickTock
Posts: 1701
Joined: Sat Jun 04, 2011 10:30 pm
Delivery Date: 31 May 2011
Leaf Number: 3626
Location: Queen Creek, Arizona
Contact: Website

### Re: Linearity of SOC

evnow wrote:
TickTock wrote:This was plotted from a log taken during a single charge. I did confirm on a second log that the noise is, in fact, noise and not repeatable non-linearity.
How did you get the kwh used per SOC unit ?

The first 10 units (280 to 270) go so fast - I'm sure it doesn't have as much energy. It is possible between say 50 and 270, the units have a fiarly constant amount of energy.

ps : My method assumes the m/kwh shown by Leaf is accurate.
I integrated battery_volts*battery_amps*delta_time; then plotted the change in total energy each time the gid count changed.

Herm
Posts: 3765
Joined: Sun May 23, 2010 3:08 pm
Delivery Date: 29 Aug 2012
Location: Timbuktu, Mali

### Re: Linearity of SOC

TickTock wrote: I integrated battery_volts*battery_amps*delta_time; then plotted the change in total energy each time the gid count changed.
Ohh!, the graphs is a kWh vs GID.. now it makes sense.. noisy but probably the best you can get out of the data.