LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Arduino analog read pin to frequency

Hi.

I am trying to convert the digital voltage (read from the analog pin on my arduino mega from an accelerometer) and perform FFT/Spectral analysis to convert it into a Magnitude vs. Frequency output waveform.

I am having some issues accomplishing this, with my output from the Arduino Read Pin Vi as a double 64-real 16 precision data, which I convert to a single waveform. The output from the FFT (RMS) from my spectral measurement via is a 1D cluster of 3 elements. When I wire this to a waveform graph it just changes the Y values (magnitude) but frequency is not updating the X axis at all.

Please help here is a screen shot of my setup so far:

http://i.imgur.com/WrzbX.png

I also attached the VI below.

0 Kudos
Message 1 of 4
(6,755 Views)

tried some more revamping still no luck!

http://i.imgur.com/lSYMu.png

would appreciate some feedback!!! thanks so much!!

0 Kudos
Message 2 of 4
(3,768 Views)

*bump* no help?

0 Kudos
Message 3 of 4
(3,768 Views)

You are performing the FFT on a single data point in both your posts.  In the second post, remove the build array function and then change the tunnel to auto indexing.  This is one needed step but I'm not all that familiar with the FFT functions beyond that point.

0 Kudos
Message 4 of 4
(3,768 Views)