Klaas Robers wrote:Well done. I hear a sound when the disc is held on speed, that is familiar to me. This looks good.
However I see that the disc speed has an enormeous overshoot. That is: the disc is running far too fast shortly after starting up. And then it goes to an enormeous undershoot, too slow. That should not be needed. This is caused by the Integrating effect of the PID. Can you not spin up the disc by a simpler routine and switch over to the PID when the disc is almost at speed? Then you will skip the large overshoots. Or can you minimise the integrating effect of the PID during start up? So: when the deviation of the speed is larger than a certain amount have a PD, and when the deviation is less introduce the I and continue with a PID?
And then realise that synchronising the digital video to the IR-pulses is much easier and faster than the other way around.
Yes, I will have a play with the things you suggest. But I will just point out that under 15 seconds from a complete standstill to synchronised isn't really that bad, and I could happily live with it as it is now. But I will come back to the startup time a bit later. I'm very happy right now to have an extremely stable 12.5Hz lock on the disc and rapid correction when there are perturbations. The PID code is incredibly simple - amazing that it can behave so nicely when tuned properly (apart from the startup issues you point out).