I'm trying to implement a single-phase PLL, for which operation I need an orthogonal component of the grid voltage.
Let the grid voltage be:
$$v_g(t)=A\sin(\omega t) + \tilde{v}(t),$$
where the latter component is a noise.
I need an estimator that would produce:
$$v_\alpha (t) = A \sin (\omega t), \quad v_\beta (t) = A \cos (\omega t)$$
Now, I've read that it is really challenging to estimate the orthogonal component. Can you tell me why a 1st order filter is not a good idea:
$$G_\alpha(s) = \frac{1}{1+sT}, \quad G_\beta (s) = \frac{1}{\omega}\frac{s}{1+sT},$$
where the filter time constant should be (at least):
$$\frac{1}{T} \geq 10\omega.$$
Note that I have to implement these filters on a microcontroller.
I've simulated the system in PLECS, and everything seems fine.
Here is a response of the estimation error: