MS2/Extra Non-linear Injector Dead-time Voltage Correction

This is a forum for discussing the development and testing of alpha MS2/Extra code. Documentation
(Runs on MS2 and Microsquirt)

Moderators: jsmcortina, muythaibxr

Post Reply
motthomas
Helpful MS/Extra'er
Posts: 88
Joined: Wed Aug 24, 2011 2:06 am

MS2/Extra Non-linear Injector Dead-time Voltage Correction

Post by motthomas »

This is one for the developers. I had been of the understanding that the injector deadtime calculation on MS2 Extra was a simple linear relationship against battery voltage.
However, I have been going through some bench testing experiments to understand the full impact of different settings on injector PW and I have found that the actual correction against battery voltage is distinctly non-linear. Looks to me like a 3rd order polynomial? See attached image. Now I welcome this as the actual response follows the physical relationship more closely than a pure linear relationship.

The only thing is that there is nothing that I can see in the documentation that suggests that the actual correction is anything other than linear. That means that when anyone measures the behaviour of their own injectors they will likely compromise the relationship by choosing a best fit linear relationship against battery voltage. However if the firmware is then creating its own polynomial relationship, the demanded behaviour is likely to be even more compromised from the measured behaviour.

Can we get some details on how the code determines injector open time correction against voltage so that a sensible “linear” relationship can be chosen to provide the most accurate correction for a particular set of injectors? How does the linear correction which is input in TS influence the curve? It would also be very useful if a note could be added in TS to warn users that the code does not actually implement the linear correction.

This was measured on a Microsquirt V3 running MS2E_3.4.2 firmware.
Attachments
PW Compensation.PNG
PW Compensation.PNG (42.21 KiB) Viewed 798 times
racingmini_mtl
Super MS/Extra'er
Posts: 9130
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada
Contact:

Re: MS2/Extra Non-linear Injector Dead-time Voltage Correcti

Post by racingmini_mtl »

This is the thread that resulted in changing the voltage correction to a non-linear correction: http://www.msextra.com/forums/viewtopic ... 91&t=40798

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
motthomas
Helpful MS/Extra'er
Posts: 88
Joined: Wed Aug 24, 2011 2:06 am

Re: MS2/Extra Non-linear Injector Dead-time Voltage Correcti

Post by motthomas »

Aha! Thanks Jean.

Can I assume that the code ended up using Matt's equation in the first post of that thread? It looks like a good fit when I add it to my earlier graph anyway.

opening_time(batt_volt) = opening_time(13.2v) + ( 13.2 - batt_volt ) * batt_corr_factor * (13.2 / batt_volt)

It is certainly a much better approximation of what the injector actually does but it requires a slightly different batt_corr_factor to fit than one would choose for a best linear fit. Would it be possible to document this equation in the manual and in a note in TS for other users?
Attachments
INJ_DT_Test.PNG
INJ_DT_Test.PNG (47.4 KiB) Viewed 776 times
Post Reply