Got the FFT running on the emonTX

I wanted to share that I was able to get the fast fourier transform running on the emonTX. From this I built a dashboard showing the total harmonic distortion on one of the lines. I am only pulling out the 3rd and 5th harmonics but also will extract the 7th and 9th just for fun. Then I will also get my other CTs to run it as well and have a nice power quality module for the open energy monitor project.

FFT and emoncms

 

Robert Wall's picture

Re: Got the FFT running on the emonTX

I am most impressed.

MartinR's picture

Re: Got the FFT running on the emonTX

Yes, that's really neat - well done!

Are you going to release your code at some point? It might be interesting to use it to compare the various methods of generating the voltage signal.

millertech's picture

Re: Got the FFT running on the emonTX

Yes I will absolutely be releasing my code once I have it a bit more cleaned up. If anyone wants it in the raw state just let me know.

I am using this library called PlainFFT and I developed an interrupt based sampler to grab the waveforms. This is defiantly pushing the limits of my Uno. Might have to get a Mega to do what I want it to do but that will be at a later time.

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.