Luca Sorrentino
Member
Hello all and happy new year,
some time ago I published on this forum results of my experiments with an educational sensor. This time I'm glad to share the python script and the procedure to use it, I've also did an *.exe file you can use without install a python environment and the necessary libraries I link in my code.
This is the sensor positioned on the turntable, the rod bar that came with is good enough to put the center of gravity 'exactly' in correspondence of the axis of the spindle, lucky for us.
And this is the output after five minutes acquisition, in a couple of turntables, just to invite you to go further...
First step: download and install the BASIC app interface for windows, or whatever you're able to prefer:

Open it and follow the instructions to connect your sensor, please select the only z-axis gyroscope data, this is what we need to acquire, 300 seconds @ 1000 samples per second. This large amount of data is good enough to filter out the random noise of the sensor by achieving a good FFT gain. By the way the screenshots are in Italian, the app use the OS language and I can't modify this setting sorry.
Some more settings:
Let's start the measure pressing the upper centered button, however appears in your language, and wait five minutes till the end of the acquisition!
OK, now it's the time to export the *.csv file with the raw data:
And then select CSV as a format. In my PC, a ultimate workstation with i7 processor, it lasts a lot of time (many seconds) to save this data, don't know why, with multiple advice "this app do not respond, what you want to do? " ---> WAIT please!
OK the last steps... You have a nice CSV file with two columns of data, time and angular speed, first of all, open it with i.e. Notepad++ and delete the first header raw (and then save):
Here you have the script, code and some of my measurement file to play even if you have not the sensor, it's included the IEC386 file to calculate as per the old fashioned weighting curve:
<<it's at the end of my post, I was not able to put it here!
>>
Here, in my google drive, you can directly download the exe file, it's an 80MB one, be patient. As I begin to share it I realize some antivirus sw detect it as a malware, I didn't know about this behavior, just type on google "phyton exe detected as a virus" you can find lots of info, it's a known problem, I didn't know. A false positive in my understanding, but check by yourself, I have a corporate very "robust" PC and had no alerts about security treats.

How to execute the program? Here you have an example:
You can analyze as many files as you want in one command, I have to say that more than two or three at a time make the plots too "overcrowded", this are few parameters you can optionally use:
The program also output a text file with the dB value of the harmonics of the angular speed:
In the prompt shell you have the w&f linear and weighted as per IEC386, and sorry for the Italian "pesato" is weighted and "non pesato" is not weighted.
A couple of notes before saying goodbye, I'm not a professional programmer and this was the first time I used python, so be kind with me. To write this program I was helped by Copilot, yes something like ChatGPT, it was a great discovery to me.
Last but not least, use it at your own risk!!!
Cheers,
Luca
some time ago I published on this forum results of my experiments with an educational sensor. This time I'm glad to share the python script and the procedure to use it, I've also did an *.exe file you can use without install a python environment and the necessary libraries I link in my code.
This is the sensor positioned on the turntable, the rod bar that came with is good enough to put the center of gravity 'exactly' in correspondence of the axis of the spindle, lucky for us.
And this is the output after five minutes acquisition, in a couple of turntables, just to invite you to go further...
First step: download and install the BASIC app interface for windows, or whatever you're able to prefer:
Open it and follow the instructions to connect your sensor, please select the only z-axis gyroscope data, this is what we need to acquire, 300 seconds @ 1000 samples per second. This large amount of data is good enough to filter out the random noise of the sensor by achieving a good FFT gain. By the way the screenshots are in Italian, the app use the OS language and I can't modify this setting sorry.
Some more settings:
Let's start the measure pressing the upper centered button, however appears in your language, and wait five minutes till the end of the acquisition!
OK, now it's the time to export the *.csv file with the raw data:
And then select CSV as a format. In my PC, a ultimate workstation with i7 processor, it lasts a lot of time (many seconds) to save this data, don't know why, with multiple advice "this app do not respond, what you want to do? " ---> WAIT please!
OK the last steps... You have a nice CSV file with two columns of data, time and angular speed, first of all, open it with i.e. Notepad++ and delete the first header raw (and then save):
Here you have the script, code and some of my measurement file to play even if you have not the sensor, it's included the IEC386 file to calculate as per the old fashioned weighting curve:
<<it's at the end of my post, I was not able to put it here!

Here, in my google drive, you can directly download the exe file, it's an 80MB one, be patient. As I begin to share it I realize some antivirus sw detect it as a malware, I didn't know about this behavior, just type on google "phyton exe detected as a virus" you can find lots of info, it's a known problem, I didn't know. A false positive in my understanding, but check by yourself, I have a corporate very "robust" PC and had no alerts about security treats.
How to execute the program? Here you have an example:
.\WowFlutterPolar_1.00.exe --fstart 0.2 --fend 10 SansuiXP99_20250101.csv Lenco5min.csv
You can analyze as many files as you want in one command, I have to say that more than two or three at a time make the plots too "overcrowded", this are few parameters you can optionally use:
("--fstart min frequency to analyze ie: --fstart 0.15")
("--fend MAX frequency to analyze ie: --fend 200")
("--peakh minimum peak high to detect as periodic fluctuation ie: --peakh 10")
("--nturns revolutions to analyze in polar plot and speed var plot: --nturns 10")
("example of typical command: --fstart 0.15 --fend 10 LencoL75.csv")
The program also output a text file with the dB value of the harmonics of the angular speed:
In the prompt shell you have the w&f linear and weighted as per IEC386, and sorry for the Italian "pesato" is weighted and "non pesato" is not weighted.
A couple of notes before saying goodbye, I'm not a professional programmer and this was the first time I used python, so be kind with me. To write this program I was helped by Copilot, yes something like ChatGPT, it was a great discovery to me.
Last but not least, use it at your own risk!!!
Cheers,
Luca