I want to calculate power supply THD (Total Harmonics Distrotion) using microcontroller.
My current sampling rate is 5000 samples per second to measure other parameters.
I have followed some formulas like using FFT but it is not showing results near by to industrial meters.
If anyone have some methodology or way to find please suggest.
Thanks in advance
-Abhishek