Cov txheej txheem:

DIY Arduino Audio Signal Spectrum Analyzer: 3 Kauj Ruam
DIY Arduino Audio Signal Spectrum Analyzer: 3 Kauj Ruam

Video: DIY Arduino Audio Signal Spectrum Analyzer: 3 Kauj Ruam

Video: DIY Arduino Audio Signal Spectrum Analyzer: 3 Kauj Ruam
Video: Arduino Audio Analyzer (Tutorial for Beginners, SSD1306 OLED, u8g2, Arduino UNO) 2024, Kaum ib hlis
Anonim
DIY Arduino Audio Signal Spectrum Analyzer
DIY Arduino Audio Signal Spectrum Analyzer

Qhov no yog lub tshuab ntsuas suab yooj yim heev nrog kev hloov pauv pom kev.

Kauj ruam 1: Kev piav qhia

Image
Image

Lub tshuab ntsuas hluav taws xob ntsuas qhov ntau ntawm cov teeb liab nkag mus rau zaus hauv qhov ntau zaus ntawm qhov ntsuas. Hauv txoj haujlwm no tau nthuav tawm txoj hauv kev yooj yim heev uas cov khoom siv no tuaj yeem ua nrog kev pab ntawm tsuas yog qee qhov khoom siv:

- Arduino Nano microcontroller

- 16X2 LCD zaub

- capacitor 47 nF thiab

- trimer potentiometer 10 kOhm

- hloov ib ntus

Kauj Ruam 2: Lub Tsev

Tsev
Tsev
Tsev
Tsev
Tsev
Tsev

Txoj haujlwm "FHTSpectrumAnalyzer" tau raug xaiv los ua lub hauv paus rau kev tsim lub tshuab ntsuas hluav taws xob thiab hloov pauv me me tau ua rau txoj cai. Cov zaub txuas ntawm I2C tau hloov mus rau 4-ntsis hom, ADC qhov ntsuas hluav taws xob tau hloov mus rau sab hauv 1.1 V. Koj tseem yuav xav tau FHT.h lub tsev qiv ntawv. Lub teeb liab lub suab ncaj qha los ntawm 47 nF capacitor tau pub rau analog input A1, lub tshuab ntsuas hluav taws xob muaj qhov tsis siv neeg tau txais los ntawm lub teeb liab nkag, uas txhim kho cov duab pom ntawm cov ntsuas hluav taws xob. Koj kuj tseem tuaj yeem siv lub pob los xaiv ib qho ntawm rau rau hom kev pom.

Kauj ruam 3: Schematic thiab Code

Schematic thiab Code
Schematic thiab Code

Thaum kawg, lub cuab yeej nyob hauv lub thawv yooj yim uas kuv kuj siv rau ntau yam khoom siv. Txwv tsis pub, lub cuab yeej tuaj yeem siv los ua qhov pom kev pom tau zoo hauv DIY lub tshuab ua kom nrov lossis lub tshuab ua ntej.

Schematic thiab Arduino code thiab Libraries tau muab rau hauv qab no

Pom zoo: