Camshaft angle control

This feature is made for adjust intake and exhaust camshaft angle position.
The V3 measures the intake and exhaust trigger position
and control the output solenoids with a PID controller.
The intake sensor is the secondary(Camshaft) trigger input and
the exhaust sensor is the third(processor SDA pin) trigger input
The control works only with higher than 450 Rpm. Under it or when engine stalls output DC=0.

Usable triggers:
Primary trigger: missing tooth type, camsync: coil-type and third trigger:coil-type
OR Primary trigger: Subaru 36-2-2-2 camsync: Subaru special and third trigger: coil-type
Any other trigger combination is unsupported.

Measuring method:
Coil-type: the Camshaft tooth measured to the Tooth count = 0 (first tooth after the missing tooth)
for example cam angle = 15 degree:

Subaru 36-2-2-2: the first Camshaft tooth (after the long gap) measured to the Tooth count = 0 for example cam angle = 15 degree:

Configuring parameters:

The PID parameters and PWM period are common to exhaust and intake camshaft control.
The PWM period can set from 25Hz to 375Hz in 16 steps.
The output channel and reference position can be set separately to each camshaft control.
For exhaust control the third trigger input must enable and reboot ECU to enable position measurement. The target can be set in the target tables (located in the menu under this dialog).

Third trigger input electrical specifications:

The third trigger is a processor input pin without any protection.
To set it up, use Pull-up resistor and protection Diode.