Cov txheej txheem:

DIY FFT Audio Spectrum Analyzer: 3 Kauj Ruam
DIY FFT Audio Spectrum Analyzer: 3 Kauj Ruam

Video: DIY FFT Audio Spectrum Analyzer: 3 Kauj Ruam

Video: DIY FFT Audio Spectrum Analyzer: 3 Kauj Ruam
Video: DIY FFT Audio Spectrum Analyzer 2024, Hlis ntuj nqeg
Anonim
DIY FFT Audio Spectrum Analyzer
DIY FFT Audio Spectrum Analyzer

FFT spectrum analyzer yog cov cuab yeej ntsuas uas siv Fourier kev tshuaj xyuas thiab cov txheej txheem ua cov teeb liab los muab kev tshuaj xyuas spectrum. Siv Fourier kev tshuaj xyuas nws muaj peev xwm rau ib tus nqi hauv, piv txwv li, lub sijhawm txuas mus ntxiv los hloov pauv mus rau qhov txuas mus tas li, uas suav nrog qhov ntau thiab theem cov ntaub ntawv.

Kauj Ruam 1: Lub Tsev

Image
Image

Cov cuab yeej piav qhia yog qhov zoo ib yam li Spectral Analyzer uas tau ua nrog kev pab los ntawm Arduino microcontroller. Yous koj tuaj yeem pom lub cuab yeej yooj yim heev thiab tsuas muaj qee qhov khoom siv:

- Arduino nano

- LCD zaub nrog daws teeb meem ntawm 128 los ntawm 64 pixels (ST7920 128x64 LCD)

- Ob tus tiv thaiv (10KOhm)

- potentiometer (10KOhm) thiab

capacitor (1 microF)

Lub suab tawm tswv yim rau Arduino nyob ntawm A0, nrog kev tsis ncaj ntawm qhov nruab nrab ntawm 10K rau hauv av thiab 10K txog +5V. Ntawm cov tswv yim peb tseem tuaj yeem teeb tsa lub hwj chim los tswj qhov dav ntawm lub teeb liab nkag mus. Txoj cai kuj yooj yim thiab nws siv "fix_fft" libray uas tau tsim los rau lub hom phiaj no

Kauj Ruam 2: Xeem

Kev Xeem
Kev Xeem
Kev Xeem
Kev Xeem

Cov vis dis aus piav qhia ntau qhov xwm txheej uas tau txheeb xyuas ntau hom cim:

Thaum txheeb xyuas lub teeb liab sinusoidal, tus neeg nqa khoom tau pom meej thiab Los ntawm kev hloov pauv zaus ntawm lub tshuab hluav taws xob teeb tsa, txoj haujlwm ntawm tus nqa khoom kuj tseem hloov pauv. Yog tias peb nqa lub teeb liab rau lub tswv yim, ntawm lub tshuab tsom teeb pom kev pom meej meej rau lub hauv paus tseem ceeb, nrog rau peb qhov sib txawv sib txawv x3, x5 & x7. Yog tias peb nqa lub suab paj nruag lub suab tso rau hauv lub tswv yim, lub cuab yeej no yog lub tshuab ntsuas lub suab uas tuaj yeem pom hauv cov khoom siv suab kim dua

Kauj ruam 3: Schematic thiab Code

Schematic thiab Code
Schematic thiab Code

Thaum kawg, tag nrho lub rooj sib txoos nyob hauv ib lub thawv uas haum. Qhov no tsis yog cov cuab yeej tshaj lij vim tias nws muaj kev daws teeb meem tsawg thiab ntau zaus, tab sis tuaj yeem ua haujlwm zoo li cov cuab yeej kawm ntawv.

Pom zoo: