I want to build a harmonic current meter for power supply testing,I use AD converter to sample AC input current ,but how can i calculate harmonic current ? what is the formulate? how to use FFT?
I have seen a hardware version of this with a notch filter at the main frequency and high pass and low pass filters as well. The output was amplified and rectified. The source of the signal was from a clamp on current transformer.
I suspect that you could do the same thing in DSP.