Академический Документы
Профессиональный Документы
Культура Документы
Supports
Settings
Mai
Batc
Trigger n
Sing Wast Waste
SemiMain Secondar
CO h/
Sequent wheel
whe
le
ed
dsequent
wheel y wheel
P bank
ial
arrangem el
coil spark COP
ial
fire
ent
spee
d
Missi
ng
tooth None
on
crank
Missi None
2nd
trig
every
rotatio
n of
Single
wheel
with
missing
tooth
Cran
n/a
k
Single
Cam n/a
ng
tooth
on
cam
wheel
with
missing
tooth
Missi
ng
Single
tooth tooth on Y
on
cam
crank
Dual
wheel
with
missing
tooth
Cran
n/a
k
Cran
n/a
k
LS2 4X,
VW 2
wide/narr
ow or
Y
halfmoon on
cam
Dual
wheel
with
missing
tooth
Nonmissin
Single
g
tooth on Y
tooth
crank
on
crank
Dual
wheel
Cran
Crank
k
Nonmissin
Single
g
tooth on Y
tooth
cam
on
crank
Dual
wheel
Cran
Cam
k
Nonmissin
g
tooth
on
crank
Cam
wheel
with
Y
tooth per
cylinder
Dual
wheel
Every
Cran
Cylind
k
er
Nonmissin
Single
g
tooth on Y
tooth
cam
on
cam
Dual
wheel
Cam Cam
Single
tooth on
crank
or two
Y
opposite
teeth on
cam
Dual
wheel
Cam Crank
Missi
ng
tooth
on
crank
Nonmissin
g
tooth
on
cam
Nonmissin
g
tooth
on
cam
Cam
wheel
with
Y
tooth per
cylinder
Dual
wheel
Every
Cam Cylind
er
Terminology notes
Missing tooth - This is a regular wheel with a group of "missing" teeth e.g. 12-1,
36-1, 36-2, 60-2
on crank - the wheel is rotating at crank speed, normally directly attached to the
crank pulley or flywheel
on cam - the wheel is rotating at camshaft or distributor speed
Single coil - a single coil and distributor
Wasted spark - double ended coils (or a pair of coils) that fire twice per cycle
Wasted-COP - a single coil per cylinder, but firing twice per cycle
COP - a single coil per cylinder that fires once per cycle
Batch/bank fire - groups of injector fired at once, not timed to a specific cylinder
event
Semi-sequential - injectors fired twice per cycle timed to cylinder events
Sequential - each injector fires once per engine cycle timed to a specific cylinder
event
Wheel naming
There does not appear to be universal agreement on the way to name wheels,
however in the Megasquirt world, they will be named like the following examples.
36-1. This means a single wheel with place for 36 teeth and a single tooth omitted.
i.e. 35 teeth at 10 (360/36) degree spacing.
36-2. This means a single wheel with place for 36 teeth and a two adjacent tooth
omitted. i.e. 34 teeth at 10 (360/36) degree spacing.
36-1-1. This means a single wheel with place for 36 teeth and a two non-adjacent
single tooth omitted. This type of wheel is not supported by this generic wheel
decoder. It is supported as Rover#1
36-2-2-2. This means a single wheel with place for 36 teeth and a three sets of
double missing teeth. This type of wheel is not supported by this generic wheel
decoder. It is supported as 36-2-2-2 with the specific OEM pattern required.
24/1. This means 24 teeth (non-missing) on one wheel and a single tooth on a
second wheel.
36-1/1. This means a one 36-1 wheel and a single tooth on a second wheel.
3+1. This means one wheel with 3 equally spaced teeth and an additional tooth to
indicate sync. (Supported somewhat as Daihatsu 3cyl)
Settings
tooth such that it passes the sensor when the engine is somewhat stable. The OEMs
have found that certain tooth#1 angles work well and it is worth following their
lead.
It is suggested to align your wheel and sensor to arrive at the following tooth #1
angles. (See later for explanation of tooth#1.)
4 cylinders ~90-120 deg
6 cylinders ~50 deg
8 cylinders ~40 deg
Take a look at the EDIS pages for places to source used trigger wheels, sensors and
coilpacks. Note that you do NOT need the EDIS module, so later ('internal-EDIS')
cars are useful donors too.
Mounting the wheel is quite critical in that it MUST be mounted so it rotates
without moving up, down, left or right as the sensor needs to see all of the teeth
with a gap of 0.75 - 1.0mm.
Having mounted the wheel and sensor, you can proceed for an existing install.
We use the term "tooth#1" as it is consistent across wheels with one, two, three or
four missing teeth in the group.
Once the code knows the tooth#1 angle it automatically calculates other needed
information internally. (No need to manually enter trigger teeth or delay teeth etc.)
Clockwi
se
rotation
(normal
)method
a
Set your
engine at
TDC,
then
count the
number
of GAPS
to
tooth#1
in the
direction
of
rotation
(clockwi
se here)
and
multiply
by the
angular
size of
the
tooth.
e.g. 8
teeth *
10 deg
per tooth
= 80
deg
36-1
wheels
are 10
deg per
tooth
(360 deg
/ 36
teeth)
60-2
wheels
are 6 deg
per tooth
(360 deg
/ 60
teeth)
24-2
wheels
are 15
deg per
tooth
(360 deg
/ 24
teeth)
Clockwi
se
rotation
(normal
)method
b
A
different
way of
looking
at the
SAME
phasing.
Turn
your
engine
so that
tooth #1
aligns
with the
sensor.
Read off
the
tooth#1
angle
from
timing
marks/ta
pe on the
crank
pulley.
Typical settings:
Ford 4 cyl = 36-1, 80deg tooth #1
Ford 6 cyl = 36-1, 50deg tooth #1
Ford 8 cyl = 36-1, 40deg tooth #1
Bosch 4 cyl (Peugeot, Vauxhall) = 60-2, 114 deg tooth #1
This is an very common arrangement that supports full sequential and coil on plug.
(For 50/50 half-moon or 4-window wide/narrow or other polled cam wheels
see the next sub-section.)
The definition of tooth#1 is the same as the basic missing tooth crank wheel and
should be phased in the same way. Ensure you also read the section above. The
cam input tells the code which engine cycle/phase it is on. From the crank wheel
alone the code knows when cylinder one is at TDC, but it cannot distinguish TDC
compression or TDC exhaust. The cam sensor adds this information which is why
it needs to be one pulse only per engine cycle.
The cam signal is a single pulse usually generated by a narrow tooth, vane or
window. Technically it is edge triggered. For VR type sensors, the edge setting will
depend on the wiring you use (typically Rising) as the signal is a very short pulse.
For a hall type sensors you need to ensure that the edge you choose matches up
with the phasing as below. (*Needs more explanation on how*)
To confirm correct cam sensor phasing proceed as follows.
First, set
your
engine at
TDC
compressi
on #1
Now
rotate the
engine
backward
s to
tooth#1
The angle
read off
the
damper is
the
tooth#1
angle
Now
rotate the
engine
backward
s some
more this is the
best place
for the
cam tooth
to pass
the
sensor.
As far as the code is concerned these are equivalent because it only 'looks at'
(polls) the cam just after the missing tooth.
Typical polled cam triggers:
4 tooth wide/narrow
type
e.g. GM LS2 4X /
VW / Mercedes
General arrangement
The missing tooth code uses the teeth of the missing tooth crank wheel to create
'tach teeth'. That is, it creates a tach signal from a particular tooth, then skips a
number of teeth before declaring another tooth a tach signal. This means that all
the tach teeth must correspond to real teeth. For a four stroke cycle engine, this
means that the total number of teeth, including missing ones, must be evenly
divisible by the number of cylinders (or by the number of cylinders for a 2stroke).
In later versions of the code (2.883+), the 'tach teeth' are still created for injection
events, etc., but instead of the ignition timing advance signal being based entirely
on the time after the last tach tooth (with intervening teeth ignored), the timing is
set by the counting number of teeth, with only the amount between the last tooth
and the desired timing estimated.
For example, if the engine had a 36-1 wheel, and 4 ignition events per revolution
(i.e., a V8 with 90 intervals), then if this desired timing was 36 BTDC, the
calculation would look like:
2.883+:
timing
calc
old code:
timing
calc
**
The net result is that the new code estimates the timing interval over a much
shorter period (1 tooth versus 9 teeth in the above example), making it more
accurate.
12-1
24-2
36-1
60-2
cylinders
(4-stroke)
12
24
36
60
12
18
30
12
20
15
10
n/a
n/a
n/a
12
12
10
The trigger offset is 0, if that tooth lies up perfectly with the sensor at TDC.
The best way to think about this is the delay teeth is the 'coarse' setting, and the
trigger offset is for fine adjustment (less than one tooth) to account for minor
sensor misalignment. If the sensor is misaligned by more then one tooth, the
number of delay teeth should be changed, and the trigger offset used to calibrate
the advance as seen on a timing light with that seen in MegaTune.
For another example, with a 60-2 wheel, you would have for settings:
Trigger wheel teeth = 60,
Missing teeth = 2,
Skip teeth = On a four cylinder four stroke engine, we want is two tach
events per revolution. Since we have determined the number of tach signals
we want is 2, we need to skip 60/2 = 30 teeth. For a eight cylinder 60-2, we
need 4 ignition events per revolution, so we set skip teeth to 60/4 = 15. And
for an eight cylinder 36-1 wheel, we would set skip teeth = 36/4 = 9.
Delay teeth = depends on the position of the sensor relative to the missing
teeth at TDC for cylinder #1.
Note that you should change these parameters only with the engine OFF (or
the stim rpm at no more than 300 rpm).
The missing tooth wheel decoder has been tested up to at least 18000 rpm for 36-1
and 60-2 wheels (yes, 18 thousand rpm) on the bench, and works fine.
For testing the missing tooth decoder on the bench, you may wish to use the crank
wheel pulser. There is information on that here: crank wheel pulser.
Note that you must get the sensor polarity correct for the missing tooth code. This
is even more important than with regular triggers, because if you get the signal
polarity reversed you will get two (n+1)*t missing tooth 'gaps', instead of the
desired one (n+1)*t gap (and the engine might not run at all).
The blue line is the VR sensor output, the red line is the output from the VR input
circuit to the processor.
Note that the VR circuit used in MicroSquirt and the MS-II/Sequencer controllers
performs an additional inversion on the VR signal before passing it to the
processor. The net result is that you have to use the opposite edge to trigger off,
compared to a MS-II controller with the V3 main board. So where MS-II uses
'rising edge', you would use 'falling edge' with MicroSquirt or the MSII/Sequencer, and vice-versa.
In this case, an input capture setting of 'rising edge' is correct ('falling edge' for
MicroSquirt/MS-II Sequencer).
The proper polarity will depend on the way you wire your VR sensor (swapping
the two leads to DB37 pin 24 and ground inverts the signal as seen by the VR input
circuit), as well as your input capture setting. You may have to experiment to get
them right if you don't have an oscilloscope.
In the code are two input variables to control the interrupt masking to prevent false
triggers:
1. Time Mask, (ICISR_tmask) time (msx10) after tach input capture during
which further interrupts are inhibited to mask coil ring or VR noise, and
2. Percentage Mask, (ICISR_pmask) percentage of the predicted interval
before the next tooth (dtpred) after tach input capture during which further
interrupts are inhibited to mask coil ring or VR sensor noise.
These are called the time mask and percentage mask, respectively, in the ignition
options dialog of MegaTune. For wheel decoding you must use values close to 0.2
ms and 10%. However, to not break any existing setups, the default values are 0
and 50%, the same values hardwired into pre-v2.5 code. Be sure to adjust these
values when you set up for a trigger wheel (note that they are in a separate dialog
from the trigger wheel settings).
In addition to the above settings, you should set:
Predictor Algorithm to last interval, and
Predictor Gain to zero.
These are not needed because the teeth are much closer together than 1
signal/cylinder, and having them enabled only adds to the processor overhead.