Tech이야기~!
welcom 자세히보기

Mechanical/Vibration Mechanical

Python with Vibration Test

Enhold 2018. 7. 26. 16:03

Simple Vibration data processing using python code

Python is powerful tool. due to very useful moduls.



Sensor : Acceleration sensor

Operation : 60Hz, Normal(Balancing & alignment)

Vibration Simulator (Normal)

진동 시뮬레이터 구조에 대한 이미지 검색결과


Code

01.zip

rate,data = wave.read('01.wav')
spectre = np.fft.fft(data)
freq = np.fft.fftfreq(data.size, 1/rate)
mask=freq>0

plt.plot(freq[mask],np.abs( spectre[mask]))
datacursor()
plt.show()

Result

you can See the FFT graph by 30Hz(1x) higher than frequency component. Very good result output.

* wav file is Data processing by all time : dont think sampling, window size, etc

* mp3 file dont used. because possible raw range for human Frequency Response.



source 

http://www.logtech.co.kr/comp/comp_01.asp

http://dylab.kr/product/mvs-100/