Hello guys!
I can measure vibration on my washing machine and can easily get raw data from the accelerometer. My problem here is that , i want to use a freq/amp spectrum , but dont know how to start.
The frequency and the amplitude of the vibration can give me more information which can be used to analyze the data.
Is there any way i can save all my raw data, and do a frequency spectrum ? If so , how do you do it ? Do i need Matlab or simulink to get these frequency spectrum/ amplitude spectrum for that signal.
I want to present it on a graph.
regards.
John Schaizar
For short samples you can calculate the frequency/amplitude spectrum using the FFT or FHT library functions on an Arduino. Google "arduino fft" for more information.
Ah ok.. I was also wondering if i could take raw input data from the analog accelerometer and save the inputs , and write a fft code for matlab or something similiar to that..
Of course you can do that. Simply output the data on the Arduino serial port and read it directly into MATLAB. For that, you will probably need a TTL serial to usb interface, like FTDI.
For continuous data collection, the speed of the serial connection will limit the sample rate. For fastest possible data collection, you are limited to collecting data in chunks that will fit into the limited RAM memory of the Arduino.
Hmm, could you provide a link or something ? I would be very grateful..
Regards,
John Schaizar
Google "arduino accelerometer matlab"