Distributor Wiring for MembersPage/MichaelRichards/Projects/NicksGTX
|Distributor Pin||Factory Colour||Signal|
|1||Black / Lt Green||GND|
|2||White / Red||+12V|
|3||White / Brown Spots||Trigger 1|
|4||Yellow / Blue||Trigger 2|
Note that MembersPage/MichaelRichards/TriggerTutorial/SimpleTrigger has a more detailed explanation. (btw, why duplicate?)
Fero figured out the location of the slots:
The camwheel rotates counterclockwise.
I've turned this diagram into a graph of the timing versus pulse signals.
As you can see from this diagram the sync pulse rising edge occurs 10 camdegrees after TDC of cylinder 1. I don't see this as a problem because neither the engine nor the ECU care what cylinder is being fired first. This means the falling edge of the first primary pulse occurs 47 camdegrees after TDC1 and 43 cam degrees before TDC3 (next cylinder to fire).
So what if we consider TDC3 the first cylinder of the cycle? The window of 86 crank degrees of possible advance is large enough. The injection and coil firing lines int the h table will just need to be bumped one ahead.
When fed with 12V the trigger2 outputs 5V or 0. Great for the hall trigger setup. Thanks again to Fero.
When the crank trigger is hooked up to the board it measures about
- 3.8V when light passes through the window
- and 150mV when there is an eclipse
I am going to be using fully sequential injection so this makes primary and secondary triggers necessary.
trigger1, falling edge, coil,filtering
trigger2, falling edge, enabled as camsync, no filtering
(*16 usec) x crank_minper value=minimum period in usec
Max RPM=8000. So at 8500 RPM, 1crankrot=7ms, 3.5 msec minimum trigger period, 80% of which is: 0xB0
crank_minper=B0 - you can safely set this even lower
The crank trigger occurs 80 crankdegrees before TDC. Fero used 0xA2 which is 81 degrees. I assume this value is adjusted and found with a timing light once the engine is running. in MembersPage/MichaelRichards/TriggerTutorial/SimpleTrigger 66 crankdegrees (=0x84 halfdegrees) is suggested (measured), which is quite different, so you want to verify by measurement on your own engine, for sure
This is the default value. Interpolation slope, to determine how much is added on top of the 14V value.
I have no idea what a good ignition crank is for this engine. Fero used 13.25 degrees and so will I for now. (7..10 crankdegrees sounds best unless you know a reason to cheat: eg. because of compression related angular acceleration, compensation might be desirable)
180 crankdegrees per tooth, that is 720 (*0.25 degrees) = 0x2D0
tooth_wheel_twidth2=02 (upper byte)
Engphase modulus. N*tooth_wheel_twidth1 + M * tooth_wheel_twidth2
In our case it should be 4 primary pulses for 720 degrees of revolution.
reset_engphase_after=40 # 0x40==64, since camsync is used
- h=00 03 02 01 .. .. .. .. # reftooth array
- h=20 30 20 30 .. .. .. .. # assuming ignch2 and ignch3 are used in wasted spark setup
These "edge-phase" are not currently used: set h according to relevant h. campulse is not allowed to race crankpulse, so the first crankpulse after the campulse will always be the same predictable cylinder.