Hi to all ,
I have some doubts about the FFT using ADC values .
- I want to know , when the FFT is calculated and returned vector magnitude and phase , the relationship between the amplitude of the input signal and the
amplitude of the output signal vector magnitude.
- And my other question is , in the phase vector, which is the angles origin ? because I have problems in the calculation of total harmonic distortion and reactive power , active power and power factor .
I set the ADC mode dual sample and hold , to acquire voltage and current simultaneously , and when assigned to the tension is the reference , the calcul is not correct, because the phase that brings me to the position of the fundamental frequency is -1.64 rad and should be 0 or 2pi.
The FFT takes as input 64 values , the fundamental frequency of the input signal is 50Hz and the sampling frequency that is 3K2 Hz .
Thank you. hope to answer