Cov txheej txheem:

Ukelele Tuner Siv LabView thiab NI USB-6008: 5 Cov Kauj Ruam
Ukelele Tuner Siv LabView thiab NI USB-6008: 5 Cov Kauj Ruam

Video: Ukelele Tuner Siv LabView thiab NI USB-6008: 5 Cov Kauj Ruam

Video: Ukelele Tuner Siv LabView thiab NI USB-6008: 5 Cov Kauj Ruam
Video: Rudrashtakam with lyrics - Pujya Rameshbhai Oza 2024, Kaum ib hlis
Anonim
Ukelele Tuner Siv LabView thiab NI USB-6008
Ukelele Tuner Siv LabView thiab NI USB-6008
Ukelele Tuner Siv LabView thiab NI USB-6008
Ukelele Tuner Siv LabView thiab NI USB-6008

Raws li qhov teeb meem-raws txoj kev kawm rau kuv LabVIEW & Kev Ntsuas Kev Kawm ntawm Humber College (Electronics Engineering Technology), Kuv tsim lub tshuab ukulele uas yuav siv cov lus sib piv (ukulele string tone), nrhiav qhov yooj yim siv, txiav txim siab dab tsi tau sim yuav tsum tau mloog, thiab qhia rau tus neeg siv yog tias txoj hlua xav tau hloov kho lossis nce. Cov cuab yeej kuv siv los txhais cov lus sib piv rau hauv cov tswv yim digital yog National Instruments USB-6008 DAQ (cov cuab yeej nrhiav tau cov ntaub ntawv), thiab kev siv tus neeg siv tau ua tiav nrog LabVIEW.

Kauj Ruam 1: Tus Qauv Ukelele Tuning

Txuj Ci Ukelele Tuning
Txuj Ci Ukelele Tuning
Txuj Ci Ukelele Tuning
Txuj Ci Ukelele Tuning

Thawj kauj ruam tau tshawb pom qhov tseem ceeb ntawm cov suab paj nruas sau tseg, thiab ntau yam ntawm cov hlua ukulele feem ntau tau mloog ntawm. Kuv siv ob daim duab no, thiab txiav txim siab tias kuv yuav ua rau kuv lub suab nrov ntawm 262 Hz (C) thiab 494Hz (Siab B). Ib yam twg tsawg dua 252 Hz yuav raug txiav txim siab qis rau txoj haujlwm txhawm rau txiav txim siab qhov ntawv tau sim ua si, thiab txhua yam uas ntau dua 500 Hz yuav suav tias yog siab dhau. Qhov kev zov me nyuam, txawm li cas los xij, tseem qhia rau tus neeg siv pes tsawg Hz lawv nyob deb ntawm qhov kev txiav txim siab ze tshaj plaws, thiab yog tias txoj hlua yuav tsum tau kho dua (ceeb toom qis dhau) lossis qis (nco siab dhau) kom mus txog qhov sau tseg.

Ib qho ntxiv, kuv tau tsim cov kab ntawv rau txhua daim ntawv, tsis yog ib zaug xwb, yog li nws yuav yooj yim dua rau txoj haujlwm kom pom cov ntawv twg uas tau ua. Piv txwv li, txoj haujlwm yuav qhia rau tus neeg siv C yog ua si yog tias daim ntawv muaj qhov siv zaus ntawm 252 Hz (ib nrab mus rau B) thiab 269Hz (ib nrab mus rau C#), tab sis txhawm rau txiav txim siab yog tias nws xav tau kho dua lossis qis dua, nws tseem yuav piv cov ntawv sau ua si rau qhov siv zaus ntawm C uas yog 262Hz.

Kauj Ruam 2: Tsim Tus Qauv Ntshiab Digital Theoretical

Tsim kom muaj Kev Ntseeg Siab Zoo Theoretical Model
Tsim kom muaj Kev Ntseeg Siab Zoo Theoretical Model
Tsim kom muaj Kev Ntseeg Siab Zoo Theoretical Model
Tsim kom muaj Kev Ntseeg Siab Zoo Theoretical Model

Ua ntej dhia dej mus rau qhov sib piv ntawm qhov haujlwm, kuv xav pom yog tias kuv tuaj yeem tsim qhov LabVIEW program uas yuav tsawg kawg ua lub ntsiab ntawm cov qauv piv txwv, xws li nyeem lub suab.wav piv txwv, nrhiav qhov yooj yim, thiab ua qhov yuav tsum tau sib piv rau daim ntawv qhia zaus kom pom tias lub suab yuav tsum tau nce lossis nqis.

Kuv siv SoundFileSimpleRead. VI muaj nyob hauv LabVIEW los nyeem ib qho.wav cov ntaub ntawv los ntawm txoj hauv kev uas kuv tau xaiv, muab lub teeb liab tso rau hauv qhov ntsuas qhov ntsuas, thiab pub lub teeb liab ntawd rau hauv HarmonicDistortionAnalyzer. VI txhawm rau txhawm rau nrhiav qhov yooj yim. Kuv kuj tau coj lub teeb liab los ntawm SoundFileSimpleRead. VI thiab txuas nws ncaj qha mus rau hauv daim ntawv qhia kev yoj yoj kom cov neeg siv tuaj yeem pom cov nthwv dej ntawm cov ntawv ntawm lub vaj huam sib luag.

Kuv tsim 2 qhov teeb meem: ib qho los tshuaj xyuas cov ntawv uas tau ua, thiab lwm qhov los txiav txim siab yog tias txoj hlua xav tau tig los lossis nqis. Rau thawj rooj plaub, Kuv tau tsim kab lus rau txhua qhov kev ceeb toom, thiab yog tias lub hauv paus zaus teeb liab los ntawm HarmonicDistortionAnalyzer. VI nyob hauv thaj tsam ntawd nws yuav qhia rau tus neeg siv paub tias tau sau dab tsi. Thaum daim ntawv tau txiav txim siab, tus lej sau ua si tau raug rho tawm los ntawm daim ntawv qhov tseeb qhov tseem ceeb, thiab tom qab ntawd cov txiaj ntsig tau hloov mus rau hauv rooj plaub thib ob uas txiav txim siab hauv qab no: yog tias qhov txiaj ntsig tau siab dua xoom, ces txoj hlua yuav tsum tau kho dua; yog qhov txiaj ntsig tsis raug (tsis siab dua xoom), tom qab ntawv rooj plaub tshuaj xyuas yog tias tus nqi sib npaug rau xoom, thiab yog qhov tseeb, tom qab ntawv qhov kev zov me nyuam yuav ceeb toom rau tus neeg siv tias daim ntawv nyob hauv qhov qhib; yog tias tus nqi tsis sib npaug rau xoom, ces nws txhais tau tias nws yuav tsum tsawg dua xoom thiab cov hlua yuav tsum tau kho dua. Kuv coj tus nqi meej ntawm qhov tshwm sim los qhia rau tus neeg siv ntau npaum li cas Hz lawv nyob deb ntawm qhov tseeb sau tseg.

Kuv txiav txim siab lub ntsuas ntsuas yuav yog qhov zoo tshaj plaws los ua kom pom kev rau tus neeg siv yam yuav tsum tau ua kom ua rau daim ntawv sau tseg.

Kauj Ruam 3: Tom ntej no, Circuit Analog

Tom ntej no, Analog Circuit
Tom ntej no, Analog Circuit
Tom ntej no, Analog Circuit
Tom ntej no, Analog Circuit
Tom ntej no, Analog Circuit
Tom ntej no, Analog Circuit

Lub microphone kuv siv rau txoj haujlwm no yog CMA-6542PF condenser electret mic. Cov ntaub ntawv rau lub mic no yog hauv qab no. Tsis zoo li feem ntau cov condenser microphones ntawm hom no, Kuv tsis tas yuav txhawj xeeb txog qhov sib txawv. Cov ntawv qhia pom tias kev siv hluav taws xob rau lub mic no yog 4.5 - 10V, tab sis 4.5 V tau pom zoo, thiab nws tam sim no noj yog 0.5mA max yog li ntawd yog qee yam yuav tsum tau ceev faj thaum tsim lub preamp Circuit Court rau nws. Kev khiav hauj lwm zaus yog 20Hz txog 20kHz uas zoo rau lub suab.

Kuv ua qhov yooj yim preamp Circuit tsim nyob rau ntawm lub khob cij thiab hloov kho qhov hluav taws xob nkag, ua kom ntseeg tau tias tsis muaj ntau dua 0.5mA hla lub mic. Lub tshuab hluav taws xob tau siv los lim lub suab nrov DC uas tuaj yeem ua ke nrog cov teeb liab hluav taws xob (tso tawm), thiab lub tshuab hluav taws xob muaj qhov sib xws yog li nco ntsoov txuas qhov zoo kawg rau lub microphone tso tus pin.

Tom qab qhov kev ua tiav tiav, kuv txuas cov khoom siv hluav taws xob mus rau thawj tus lej sib txuas tus lej nkag (AI0, tus pin 2) ntawm USB-6008, thiab txuas rau hauv av ntawm lub khob cij rau hauv tus pin piv (GND, tus pin 1). Kuv txuas USB-6008 rau PC nrog USB thiab nws yog lub sijhawm los hloov kho rau LabVIEW txoj haujlwm kom ua qhov tseeb teeb liab.

Kauj Ruam 4: Nyeem Cov Teeb Meem Analog Nrog DAQ Tus Pabcuam

Nyeem Analog Teeb Nrog DAQ Assistant
Nyeem Analog Teeb Nrog DAQ Assistant
Nyeem Analog Teeb Nrog DAQ Assistant
Nyeem Analog Teeb Nrog DAQ Assistant

Hloov chaw ntawm kev siv SoundFileSimpleRead. VI thiab HarmonicDistortionAnalyzer. VI, Kuv siv DAQ Assistant. VI thiab ToneMeasurements. VI los daws cov lus sib piv. DAQ Pab teeb tsa ncaj ncaj rau pem hauv ntej, thiab VI nws tus kheej coj koj mus rau theem. ToneMeasurements. VI muaj ntau qhov kev xaiv los xaiv (qhov dav, zaus, theem), yog li kuv siv cov zaus tso tawm uas muab qhov tseem ceeb ntawm cov suab tawm tswv yim (los ntawm DAQ Assistant. VI). Qhov tso tawm ntawm ToneMeasurements. VI yuav tsum tau hloov dua siab tshiab thiab muab tso rau hauv ib qho ua ntej nws tuaj yeem siv rau hauv cov ntaub ntawv teeb tsa, tab sis qhov seem ntawm LabVIEW cov phiaj xwm/ntsuas tseem nyob zoo ib yam.

Kauj Ruam 5: Xaus

Xaus
Xaus

Txoj haujlwm tau ua tiav tab sis muaj qhov tsis txaus ntseeg ntau. Thaum kuv tau ua haujlwm tuner hauv chav kawm nrov nrov, nws nyuaj heev rau txoj haujlwm kom txiav txim siab tias lub suab nrov yog dab tsi thiab lub suab nrov tau ua dab tsi. Qhov no yuav zoo li vim tias preamp Circuit yog qhov yooj yim heev, thiab lub microphone yog pheej yig heev. Thaum nws nyob ntsiag to, txawm li cas los xij, txoj haujlwm tau ua haujlwm nrog kev ntseeg tau zoo los txiav txim siab qhov kev ceeb toom uas tau sim ua si. Vim yog lub sijhawm txwv kuv tsis tau hloov pauv dab tsi ntxiv, tab sis yog tias kuv yuav rov ua txoj haujlwm no kuv yuav yuav lub microphone zoo dua thiab siv sijhawm ntau dua ntawm kev npaj ua ntej.

Pom zoo: