Ehh... forget that PLL... It is probably way smarter than I am and judging from this forum, they are not for the faint-hearted. So no Judgement!!!!!!!!!!
I installed a PID lib for my Arduino named ... PID
For the reference signal, I am sending 400hz from my function generator. I am also sending the pulses from the Sync wheel (hall effect) in. Of course, the difference between the pulses is 2,500us, and with the basic settings for the PID...
setPoint = 10; Kp = 3;Ki = 2;Kd = 1; Pidmode set to AUTOMATIC
Which I stole from a basic example.
https://github.com/JeremySCook/PropPID/blob/master/PID-Driver.inoWhile testing with these settings, I seem to be able to keep the disk about 200us off of the video sync. I am sure that could be tweaked down with settings but I need to mount my Lamp assembly to see if it is even necessary.
I will try that tonight and this weekend I am sure. I am trying to work out how to get the line counts in sync. I can only imagine I could add the difference between the line counts to the difference between the sync pulses ... maybe the PID would speed the motor up and get those together too.
Pretty happy with the results for the hour I spent on it this morning.
More to come.