Configuration instructions

Disclaimer

This program and any advice given are provided entirely at your own risk. If your engine blows up or you fail your emissions tests don't come moaning to me - if you change your ECU it's your fault and nobody elses.

Configure your ECU

Open up the configuration file "afr.cf" in your favourite editor.

ECU specification

Starting at the top of the configuration file first choose your ECU, here you just remove the # from the appropriate line.
#ecu=ms
#ecu=ms2
#ecu=emerald
#ecu=motec
For most ECUs that's all you need to do but for megasquirt and derivatives read on.

Temperature range

If you're running a megasquirt you'll need to make the temperature range match that which you've set up in megatune. As per the ecu configutation remove the # from the appropriate line
#temperature=ms,C
#temperature=ms,F

Lambda sensor setup

On most versions of the megasquirt it logs the AFR as a voltage, rather than as the raw AFR. By default the software is set up for a linear scale where 0 volts equals 10:1 and 5 volts equals 20:1. This is done with the following config lines.
lambdavoltage=0,10
lambdavoltage=5,20
If you are running a different scale, for instance 1V equals 9:1 and 4V is 18:1 then you'd change the lines as below.
lambdavoltage=1,9
lambdavoltage=4,18