This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I am working on Total Harmonics Distrotions calculation on MSP430f6779. I am developing my own code for meter. My sampling frequency is 5000 samples per second. I have gone through the TI MSP documentation for calculation of THD and tried accordingly but it didn't worked out.
Can I have flow daigram or some formula which will be helpful in calculation of THD.
Thanks
Regards
Abhishek Parikh
Hello Ryan,
Thank you for your reply.
I have already gone through TIDM-THDREADING.
Please find this Calculation XLS file in which my sampled data and pure sinewave is there.
According to IEC formula I'm getting 16% voltage harmonics in excel also same in controller and I have checked in Harmonics Analyzer that 4% voltage harmonics are present in my wave.
I know I'm making mistake please help me out.
Thanks
Regards
Abhishek
Hello Ryan Brown1 (3460875) ,
According to formula given in TIDM-THDREADING.
Please can help me out with following things
1>Vrms = Kv * (sqrt (SUM (Vph)^2 / Sample Count))
Page 10 in TIDM-THDREADING Formulea (3.2.2.1.1(1))
Vrms = 230 V in normal case and also I've obtained the same. You can check in excel file on above message.
2> Formulea 3.2.2.1.2(17) Page no. 12
V fund,ph = Kv *(SUM(Vpure(n) ́* Vph(n))) / Sample Count
Here V fund,ph = 47260.1348892729
One question is 1] V fund,ph = Kv *(SUM(Vpure(n) ́* Vph(n))) / Sample Count
OR
2] V fund,ph = Kv *sqrt((SUM(Vpure(n) ́* Vph(n))))/ Sample Count
3> Formulea 3.2.2.1.2 (21) Page no. 13
IEC : V _ THD ph = sqrt(Vrms^2 - V fund,ph^2)/V fund,ph
IEEE : V _ THD ph = Vrms^2 - V fund,ph^2/V fund,ph ^2
In Case 2] mentioned in 2> if that formula is correct I am getting THD nearby IEEE value.
Please help
Thanks
Abhishek Parikh
ABHISHEK PARIKH said:I was doing 16 point FFT so I select 16 samples from 100 samples wave like (1st,6th,13th..etc) So I get 16 point FFT response.
That means your effective sampling rate is actually 5000*(16/100)=800 samples/second. You have collected but discarded the other 5000-800=4200 samples/second.
The 7th and higher harmonic is 7*50=350 Hz and higher. You are destined to get unacceptable results when you only use 800 samples/second.
**Attention** This is a public forum