how to add other wideband controller to MS1?

All Megasquirt 1 support questions. See also the Documentation

Moderators: jsmcortina, muythaibxr

Post Reply
Marissp
MS/Extra Newbie
Posts: 32
Joined: Sun Jul 22, 2012 9:04 am
Location: Latvia

how to add other wideband controller to MS1?

Post by Marissp »

Hello.

My setup, Tuner Studio, megasquirt 1 ecu with 029y4a firmware, and wideband controller 10:1-27:1 AFR 0-5v
How to add it to Tuner Studio and MS1? i use actual controller data (TECHEDGE_LINEAR) and edit only data in lambdaSensors.ini
AFR gauge for now reads correct in TS with this formula

#elif TECHEDGE_LINEAR
afr = { egoADC * 0,06666+10 }
lambda = { afr / 14.7 }
TargetAFR = { afrtarget * 0,06666+10 }
TargetLambda = { TargetAFR / 14.7 }


But i cant get it work with Target AFR Table. I tried to edit msns-extra.ini file to do this, but it still not work correct, Target afr gauge reads different (something like 24:1) from what i set to afr targets for VE 1 Table

page = 7 ; TARGET AFR table 1 BINS FOR VE 1 (First find which sensor used)
#elif TECHEDGE_LINEAR
afrBins1 = array, U08, 0, [8x8], "AFR", 0.0666, 229.0, 10.0, 27.0, 1
Marissp
MS/Extra Newbie
Posts: 32
Joined: Sun Jul 22, 2012 9:04 am
Location: Latvia

Re: how to add other wideband controller to MS1?

Post by Marissp »

I think i found error in my calculations, so this

page = 7 ; TARGET AFR table 1 BINS FOR VE 1 (First find which sensor used)
#elif TECHEDGE_LINEAR
afrBins1 = array, U08, 0, [8x8], "AFR", 0.0666, 229.0, 10.0, 27.0, 1

need to be changed to this

page = 7 ; TARGET AFR table 1 BINS FOR VE 1 (First find which sensor used)
#elif TECHEDGE_LINEAR
afrBins1 = array, U08, 0, [8x8], "AFR", 0.0666, 150.1, 10.0, 27.0, 1

I cannot test this at this time, but is this correct?
Post Reply