Here's a picture of the cam gear?/sprocket/wheel/thingy, and sensor plate. The two shiny caps on the left plate are the sensors. The four darker areas that are pressed in on the lower spokes are the sensor's "triggers?".
The firing order is 1-4-2-5-3-6.
Code: Select all
if(LeftSensor => ThresholdValue and RightSensor => ThresholdValue)
either 1 or 5 is on TDC so test it against the previous value if there is one or wait for the next high reading to center on 4 or 6
else if(LeftSensor => ThresholdValue)
if(previousCylinder == 1)
CurrentTDCcylinder = 4
else if(previousCylinder == 4)
CurrentTDCcylinder = 2
else \\No need for an if?
if(previousCylinder == 5)
CurrentTDCcylinder = 3
else if(previousCylinder == 3)
CurrentTDCcylinder = 6
I don't know if they're "Hall" sensors, but they're magnetic so they're some derivation of a Hall sensor.
This is one of the cam sensor's output in 5V and 20mSec divisions. The output on the cam sensors, and the crank sensor was about 13.2V peak to peak. The battery voltage I'm guessing.
Over 5mSec divisions.
2V and 2mS
5V and 0.1mS
The crank trigger wheel has 12 high areas on it, and the low areas are about twice as long as the high areas. I don't have one on hand, but I could get one fairly easily if I need to get some measurements off of it.
Crank Sensor at 5V and 20mSec divisions
5V and 2mSec
If you want, you have my permission to turn those pictures into urls if you think they're taking up too much space. They are kind of redundant, but I like pictures.
I have a TA card that I could wire up to test with.