Driving dynamics and charging data files

phidauex

Well-Known Member
First Name
Sam
Joined
Dec 8, 2020
Threads
16
Messages
844
Reaction score
1,548
Location
Colorado
Vehicles
2021 MachE 4EX, 2006 Prius, 1997 Tacoma
Occupation
Renewable Energy Engineer
Country flag
I've been capturing some data files using Carscanner Pro and a Viecar ODBII reader, and while I haven't had time to really extract a lot of knowledge out of them, I've finally been successful at capturing some good data and getting it cleaned up with some Python scripts. It is now in a state that is fairly easy to look at and work with.

The "drive" datafile is from a ~30 minutes spirited drive out of town on fairly twisty, up and down roads, 1pd, Unbridled, 90F ambient temp, climate control on automatic low, 72F. The actual sample rate was about 600ms, and I've resampled the data to 500ms resolution and used some rolling average filters to ensure that all the data points are filled.

One or two insights: The car doesn't like to use the front motor much at all - I'm only seeing it come in when acceleration needs to be over 0.10gs. Above that and it starts blending in about 40% front. I'd go so far as to say that this car isn't "RWD biased" in the way that a Subaru is "FWD biased" but that it is straight up a RWD car that can call for a short burst from the front motor if needed.

Ford Mustang Mach-E Driving dynamics and charging data files 1628470050413


Ford Mustang Mach-E Driving dynamics and charging data files 1628467165910


During regen, however, it pulls the front motor in aggressively (or doesn't pull it in at all). Regen is either 100% rear motor, up to 90kW, but in some cases it mixes the front motor in at about 50%. There may be a speed relationship there that I haven't sifted out yet.

Ford Mustang Mach-E Driving dynamics and charging data files 1628467742632


Charging was using P&C at SigNet manufactured Electrify America location. P&C worked fine - plugged it in, waited a moment for it to negotiate, and it started charging. Finished the charge using the unlock button by the charge port and it ended without errors. I charged from 45% to 81% indicated, though it appears that the datapoint I'm reading is actually the "real" SoC of the battery, not the adjusted SoC reported to the user. This is handy and could be used to check for degradation. This file was resampled to 1s resolution.

A few small insights. The charge curve looked as expected - a few minutes at ~122kW, then a gradual ramp down to 70kW at 80% SOC, then the cliff down to 12kW.

Ford Mustang Mach-E Driving dynamics and charging data files 1628469415297


The charge efficiency was very good - accounting for about 1.1 kW of constant load from the car accessories (sitting with the AC running, best estimate), the battery's internal efficiency was about 97% one-way, which is quite good for a battery charging at 1C. That only meant about $0.43 spent on battery losses over the course of the charge.

Min SOC
45.97​
Max SOC
78.30​
Total kWhs in Battery
99​
Energy to Battery
32.0​
Energy from Charger
33.5​
Vehicle Overhead Energy
0.54​
Charge Efficiency
97.0%​

Anyway, I'll be continuing to play with the data as I collect more, should get some long drives in soon. Let me know if there are datapoints you'd like to see, or if you learn anything from the files.

The two raw CSVs are straight from Carscanner, and haven't been processed. The "merged" files have been cleaned up, resampled, some calculated columns added, and some unnecessary columns removed.

UPDATE: Added another datafile, this one from 8/14/21 which roughly follows this route from Boulder to Buena Vista: https://abetterrouteplanner.com/?plan_uuid=0967e052-15cd-4e3c-82c3-e707dda11552

The trip was 131 miles, and used 44.1kWhs. In ABRP this aligns with a reference consumption of 3.55 miles/kWh. My actual consumption was 2.97 mi/kWh, but this route has a lot of big climbs up into the mountains, and I was going pretty quick. I also had the vehicle heavily loaded with gear, including a hitch rack with two bikes. This suggests that the default reference consumption in ABRP is fairly conservative.

Here is some longer run voltage information. In this case we see the voltage at 387V when the SOC is 100% reported (95.6% real). This graph is filtered for times when power is close to zero to prevent voltage drop/rise from affecting the values. Incidentally, this is why the SOC is so important for drag racing - at 100% SOC there is fully 12% more voltage available to the motors compared to 50% SOC.
Ford Mustang Mach-E Driving dynamics and charging data files 1630464524675


Looking at it a different way, we can calculate the internal resistance of the battery and the cables feeding the inverters. Here we see Current vs. Voltage, filtered for 89% SOC. The measured voltage is in blue, and calculated voltage is in orange. The calculated voltage is just the "resting" voltage for each SOC (calculated from the above graph's linear regression), minus the voltage drop from the current * a fixed resistance (V = I*R). I varied the resistance until things looked good (chimping it). My estimate for the internal resistance of the Extended Range battery is 0.036 ohms, or 36 mOhms, which is right in line for this type of battery.

Ford Mustang Mach-E Driving dynamics and charging data files 1630465958357


This should help people trying to troubleshoot the poor gent with the GTPE and his trap speed.

UPDATE 3:

Ok, posting a little more data, this is from a drive that included two 0-60mph pulls, totally floored, near the beginning of the logs. The second one at 190 seconds in was launched using a brake hold, Unbridled, 66% SOC (not great), 60F outdoor temp, climate control on low, no extra weight in the car.

CarScanner's acceleration timer put this at a 5.8s 0-60 (including the rollout). That is probably realistic given the lowish SOC, and it isn't a perfect timer or a prepped run.

The datalog has been resampled to 0.5 seconds, but was capturing around 0.7 seconds, this makes it a bit hard to tell what is going on at this high rate of change, but here are a few observations.

Ford Mustang Mach-E Driving dynamics and charging data files 1630465958357


On a speed and power basis, you can see that I floored it (pedal position is dashed green line), power came up a bit, and then I launched. Power ramped up as I accelerated, and I hit peak power at about 44mph. The front motor came up to 50kW quickly and stayed there. The rear motor went to 200kW, but took a little longer to get there. It looks like it folds back a bit at the last second, but it is possible that is a sampling error. 250kW at the motors is about 335hp, not to bad given the low SOC.

Ford Mustang Mach-E Driving dynamics and charging data files 1630465958357


On a torque and motor speed basis things are interesting. After the launch the torque slams up to max, as expected. The rear motor peaks at 431 Nm, and starts to fold back torque at 3727 RPM. The front motor peaks at 145 Nm, and starts folding back sooner, at 2718 RPM.

When I let off the pedal, both motors drop to a -75 Nm of torque. Interestingly when driving the car is heavily rear biased, but when regening it is very balanced, probably to create more controlled braking.

Data file attached, as usual (2021-09-21 18-34-33-merged.xlsx.zip)
 

Attachments

Last edited:

JimmyMachE

Well-Known Member
Joined
Jul 21, 2021
Threads
1
Messages
177
Reaction score
100
Location
Montana
Vehicles
Mach E
There may be a speed relationship there that I haven't sifted out yet.
Maybe there is a current cap for rear motor regen? Kinetic energy rises with a square of speed, regen at higher speed might reach some limit of the rear motor, so it blends the front motor too.


Please check the temperature of inverters and motors under longer drives, and which drivetrain or battery components suffer from overheating under prolonged regen in the mountains. Apparently some Mach-Es have overheating problems on mountain roads.
 
Last edited:
OP
OP
phidauex

phidauex

Well-Known Member
First Name
Sam
Joined
Dec 8, 2020
Threads
16
Messages
844
Reaction score
1,548
Location
Colorado
Vehicles
2021 MachE 4EX, 2006 Prius, 1997 Tacoma
Occupation
Renewable Energy Engineer
Country flag
Please check the temperature of inverters and motors under longer drives, and which drivetrain or battery components suffer from overheating under prolonged regen in the mountains. Apparently some Mach-Es have overheating problems on mountain roads.
Good idea, I had left the temperature values out in order to improve the sample rate, but I think now that I've confirmed the drive ratios, I can omit "Primary Motor Speed" and "Secondary Motor Speed" and then add a few temperature points instead. The motor speeds can be calculated from vehicle speed.

I currently have temp PIDs for:
  • Exterior Temperature
  • HVB Temperature
  • HVB Coolant Input Temperature
  • Secondary Motor Inverter Temperature
  • Secondary Motor Coil Temperature
  • Primary Motor Inverter Temperature
  • Primary Motor Coil Temperature
That should be enough to see if temps are limiting us on long regens.
 
OP
OP
phidauex

phidauex

Well-Known Member
First Name
Sam
Joined
Dec 8, 2020
Threads
16
Messages
844
Reaction score
1,548
Location
Colorado
Vehicles
2021 MachE 4EX, 2006 Prius, 1997 Tacoma
Occupation
Renewable Energy Engineer
Country flag
There are other interesting pids:
- transmission temperature
- grill shutter duty
- engine coolant temperature (B) ?
Do you know what Transmission Temperature is actually reading from? I haven't added it and looked at the values yet... I was also unclear on the engine coolant temperature sensor location.

Grill Shutter Duty is interesting - I did include that PID in the charging data cycle, though it isn't very exciting because it just kept the grill open during the entire charge cycle. I can add it to the driving dynamics too.
 


JimmyMachE

Well-Known Member
Joined
Jul 21, 2021
Threads
1
Messages
177
Reaction score
100
Location
Montana
Vehicles
Mach E
Do you know what Transmission Temperature is actually reading from? I haven't added it and looked at the values yet... I was also unclear on the engine coolant temperature sensor location.
No, but both pids seem to show actual values.
 
OP
OP
phidauex

phidauex

Well-Known Member
First Name
Sam
Joined
Dec 8, 2020
Threads
16
Messages
844
Reaction score
1,548
Location
Colorado
Vehicles
2021 MachE 4EX, 2006 Prius, 1997 Tacoma
Occupation
Renewable Energy Engineer
Country flag
Here is a datalog with some temperature values added. I didn't get good values from HVB Coolant Inlet Temperature for some reason, but it looked like the same values as Engine Coolant Temperature (B).

Transmission Temperature didn't give valid values for me either. But I was able to get all the others, including Grill Duty Cycle (Grill Duty Cycle appears to read 100 when open, and ~60 when closed).

This was a simple drive, 30 min, Engage mode. Some hills both up and down.

No huge insights at the moment - inverter temperature changes quickly, but it cools down quickly too. The motor coils heat up a lot more, and stay hot. In particular, the front motor topped out at around 148F after a few accelerations and hard regens in a row. It might be the limiting factor in terms of temperature.

Bad graph of temperatures through my drive:
Ford Mustang Mach-E Driving dynamics and charging data files 1628650036027


Temperatures for the rear (primary) coil and inverter, and rear motor power. You can see how quickly the inverter (boue) cools down after a pull, but the coil (orange) just keeps warming up.

Ford Mustang Mach-E Driving dynamics and charging data files 1628650109923
 

Attachments

Mach-Lee

Well-Known Member
First Name
Lee
Joined
Jul 16, 2021
Threads
207
Messages
7,876
Reaction score
15,838
Location
Wisconsin
Vehicles
2022 Mach-E Premium AWD
Occupation
Sci/Eng
Country flag
Thanks for providing that data, looking at it was interesting.

From what I can tell, the front motor only likes to operate in step with the rear up to about 35 kph (21.8 MPH) and then shuts off. Above 35 kph, the front motor doesn't kick in unless the total torque demand is greater than +100 Nm, or more than 0.07g of deceleration* is required. The rear motor does the vast majority of accel and regen above 35 kph. This seems in line with a typical AWD system.

*This could also just be when the brake pedal was applied, the negative g's only went to about -0.2?

Ford Mustang Mach-E Driving dynamics and charging data files Screen Shot 2021-08-11 at 2.03.46 AM

Orange dots calm down above 22 mph/35 kph.

Ford Mustang Mach-E Driving dynamics and charging data files Screen Shot 2021-08-11 at 1.12.27 AM

Pretty linear torque relationship below 35 kph.

Ford Mustang Mach-E Driving dynamics and charging data files Screen Shot 2021-08-11 at 1.18.08 AM

Above 35 kph, front motor is idle until more than 100 Nm required (right side), dots in the negative quadrant are likely only from heavy decel where front and rear try to regen in concert.

Ford Mustang Mach-E Driving dynamics and charging data files Screen Shot 2021-08-11 at 1.57.23 AM

Again you can see the orange dots are pretty calm between -0.07 to +0.11g.

As for the motor thermals, yes it definitely looks like the front motor is a hot bugger that can heat up quick and takes much longer to cool down. I don't think there is a dedicated pump/heat exchanger like the rear motor, it's probably only a basic water jacket around it, so it makes sense the cooling ability isn't as good as the rear motor. I'm waiting for the Munro teardown on the front motor to see what it's like inside. Getting the heat out of the rotor probably takes a while.

Yes, both inverters seem well cooled with a low thermal mass, which is good.

Battery temp was pretty darn stable, no idea if it was being actively cooled or not. It seems like the vast majority of heat generated during driving is coming from the power electronics and motors rather than the battery.
 
Last edited:
OP
OP
phidauex

phidauex

Well-Known Member
First Name
Sam
Joined
Dec 8, 2020
Threads
16
Messages
844
Reaction score
1,548
Location
Colorado
Vehicles
2021 MachE 4EX, 2006 Prius, 1997 Tacoma
Occupation
Renewable Energy Engineer
Country flag
Thanks for providing that data, looking at it was interesting.

From what I can tell, the front motor only likes to operate in step with the rear up to about 35 kph (21.8 MPH) and then shuts off. Above 35 kph, the front motor doesn't kick in unless the total torque demand is greater than +100 Nm, or more than 0.07g of deceleration* is required. The rear motor does the vast majority of accel and regen above 35 kph. This seems in line with a typical AWD system.

Battery temp was pretty darn stable, no idea if it was being actively cooled or not. It seems like the vast majority of heat generated during driving is coming from the power electronics and motors rather than the battery.
Good insights, thanks for the look - yes, the speed sensitivity of the front motor pops out in your graph - it uses the motor to get going then backs off of it quickly. It relies on it a lot more during regen. That doesn't feel very "typical AWD" for me, but I'm mostly used to Subaru symmetric AWD which is FWD biased, but rarely splits power wider than 70/30.

None of these drives had a lot of fast stops - I did do some strong regens on a few downhill stretches, but I'll make time later to do some 0-60 and 60-0 runs when I can find a safe road to do it on. Will be interesting to see what it does when pushed to the max. It will also be interesting to see what it does in the snow.

Battery temps did seem remarkably consistent. I'm not sure if I'm reading a bad point, or if the temp is just really stable. I'll try to add some more temp points and capture the battery temp min and max (a useful metric for cooling effectiveness), and see what is wrong with the coolant inlet temp point that prevented it from logging.

Fun stuff - really gives an appreciation for the detail required in the control system to let all these dynamics happen in a way that feels smooth.
 

BMT1071

Well-Known Member
First Name
Mike
Joined
Mar 21, 2021
Threads
61
Messages
3,098
Reaction score
4,248
Location
Glendale, AZ
Vehicles
21 MME SR RWD, 23 MME GTPE
Occupation
Machine Control Specialist
Country flag
A different thread bought a question to mind that doesn't seem to have an answer in the owner's manual. Maybe this group can shed some light. Do the grille shutters ever open when the vehicle is in motion?
The other post is about dead bugs on the front end and their is a response about the corpses not getting into the radiator/condenser like on an ICE vehicle. ?
 

Mach-Lee

Well-Known Member
First Name
Lee
Joined
Jul 16, 2021
Threads
207
Messages
7,876
Reaction score
15,838
Location
Wisconsin
Vehicles
2022 Mach-E Premium AWD
Occupation
Sci/Eng
Country flag
A different thread bought a question to mind that doesn't seem to have an answer in the owner's manual. Maybe this group can shed some light. Do the grille shutters ever open when the vehicle is in motion?
The other post is about dead bugs on the front end and their is a response about the corpses not getting into the radiator/condenser like on an ICE vehicle. ?
Yes, watch this: Mach-E Rolling

In the scan data above the shutters were going between 60 and 100% open during the drive.
 
OP
OP
phidauex

phidauex

Well-Known Member
First Name
Sam
Joined
Dec 8, 2020
Threads
16
Messages
844
Reaction score
1,548
Location
Colorado
Vehicles
2021 MachE 4EX, 2006 Prius, 1997 Tacoma
Occupation
Renewable Energy Engineer
Country flag
The grill shutters definitely open and close during travel, here is a screenshot from today’s 213mi drive, you can see the shutters prefer several positions from fully open to fully closed. I’m not exactly sure what the positions look like from the outside.

Ford Mustang Mach-E Driving dynamics and charging data files 53E3C8A2-027B-4315-98DB-0190D8265780

This log has some good data in it, I’ll clean it up and post with some others next week after this trip.

Some good learnings, 100% soc reported is 95.7% real soc, and 387.5V after an overnight soak to stabilize the voltages.

Front motor topped out at 160F and the rear topped out at 150F, both during long regen descents (Monarch Pass).

Battery temp control is very good, it stayed between 32C and 35C the entire time, fast or slow.
 

ChasingCoral

Well-Known Member
First Name
Mark
Joined
Feb 3, 2020
Threads
379
Messages
12,434
Reaction score
24,588
Location
Maryland
Vehicles
GB E4X FE, Leaf, Tacoma, F-150 Lightning ordered
Occupation
Retired oceanographer
Country flag
A couple of threads have discussed when the brake lights come on during regeneration. Can you see when brake lights come on and compare that with the G-force at the time?
 

SashaLondon

Well-Known Member
First Name
Sasha
Joined
Sep 11, 2020
Threads
32
Messages
1,384
Reaction score
1,493
Location
London
Vehicles
MME AWD SR
Country flag
People have asked why the front motor can’t be switched off for more efficiency. The stats show that is is mostly off.
Funny how Ford haven’t written about this as it would make the system out to be more clever than they are advertising.
 
OP
OP
phidauex

phidauex

Well-Known Member
First Name
Sam
Joined
Dec 8, 2020
Threads
16
Messages
844
Reaction score
1,548
Location
Colorado
Vehicles
2021 MachE 4EX, 2006 Prius, 1997 Tacoma
Occupation
Renewable Energy Engineer
Country flag
A couple of threads have discussed when the brake lights come on during regeneration. Can you see when brake lights come on and compare that with the G-force at the time?
We don’t appear to have any PIDs right now that indicate whether the brake lights are on. Good idea though, maybe a video would work better.
Sponsored

 
 




Top