detecting two rising edges from camshaft signal

Gon_FREEKS:
Yes you got the point TomGeorge, it is related to the speed of the engine. But for now I based my program on one speed.

How does your scope image change as the speed of the motor changes?