I am pretty new to Arduino and using it for the first time. I am not much aware of Arduino IDE. I am working with MPU 6050 for my project. MPU is mounted on an object with oscillatory motion. The output of the serial plotter is shown in the image below. I want to find the frequency of the oscillations and amplitude of the waveform as shown in the image. Can anyone please suggest how to find frequency and amplitude from that serial plotter graph? The serial plotter is showing roll pitch and yaw changing with time and I am only interested in roll data. So in nuts, I am interested in roll amplitude and frequency.
Another way would be to put the data[*] into Excel or other app with math tools[**]. Once in Excel, or whatever other program, you can analyze it to your heart's content.
Yet another way would be to write code for your Arduino to do that sort of processing.
[*] Of course each data point needs to include a time stamp.
[**] IMHO, the simplest way to get numbers into Excel is to cut from the serial monitor (NOT the plotter) and paste into Excel; then use Excel's text->columns feature. Another is to use PLX-DAQ (see link below). Or save to an SD card, or save to SPIFFS/littleFS if on an ESP.
What I would do is use Serial Monitor rather than Serial Plotter. The data can then be copied from Serial Monitor and pasted into a text file or a spreadsheet for analysis. The amplitude shouldn't be a problem (max - min) but I don't know how to get frequency data from a spreadsheet. You may need time data, so print millis() on each line.
For a spreadsheet it is usually best to separate the data columns with commas or tabs: