I am trying to implement a PLL controller to the MCU for tracking single phase line voltage . I get samples via an opamp circuit with a DC offset and the samples' raw values vary between |-244 , +244| when removed the DC offset . The key problem I'm trying to overcome is that the DQ transformation needed in the design requires a made up second orthogonal signal (Beta) other than the alpha . As far as I read the papers written for single phase PLL implementation , we need a 90 degrees time delay of the original signal , so it is our alpha .. Let's say an instant adc value is 128 and that is the alpha , so how to create an imaginary orthogonal Beta signal using that ADC value ? What I need for a park transformation is the alpha and beta , I got the alpha but what is the beta ?
D = Alpha*cosTETA + Beta*sinTETA
Q = Beta*cosTETA - Alpha*sinTETA
Alpha= Instant ADC value
Beta = ?