Cov txheej txheem:
- Kauj Ruam 1: Tau Txais Cov Khoom
- Kauj Ruam 2: Npaj Txheej Txheem Txheej Txheem
- Kauj ruam 3: Sib dhos
- Kauj Ruam 4: Sau thiab thauj khoom Firmware
- Kauj Ruam 5: Nkag Siab Lub Circuit Court
- Kauj Ruam 6: Khiav Cov Khoom Siv
Video: MSP430 Breadboard Audio Spectrum Analyzer: 6 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Txoj haujlwm no yog lub microphone thiab xav tau cov khoom sab nraud tsawg. 2 x LR44 npib hlwb tau siv yog li kuv tuaj yeem muaj tag nrho cov qauv ua haujlwm hauv qhov txwv ntawm 170 khi-point mini breadboard. ADC10, TimerA cuam tshuam LPM sawv los, TimerA PWM zoo li tso zis, siv khawm, suav cov lej suav tau siv thiab qhia tawm.
Nta
- 8 ntsis integer FFT 16 kuaj ntawm 500Hz sib cais
- qhia 8 qhov nthuav dav ntawm 1K, 1.5K, 2K, 3K, 4K, 5K, 6K, 7.5K tsis-tawm
- ib feem logarithm daim ntawv qhia kom pom qhov dav, txwv raws li kev daws teeb meem tau raug txo rau 8 ntsis FFT
- TLC272 ib theem mic amplifys ntawm 100x zaug 100x nce (koj tuaj yeem ntsib w/ 2 theem)
- ntawv qhia zaub mov xaiv tau xaiv Hamming window
- ntawv qhia zaub mov kho 4 qib ci ntsa iab
- cov ntawv qhia zaub mov hloov 8 qib piv txwv tus nqi / sijhawm teb
- 2 x LR44 npib cell siv "ntawm lub nkoj"
Kauj Ruam 1: Tau Txais Cov Khoom
Cov hauv qab no yog yam xav tau rau txoj haujlwm no
- MSP430G2452 (nti ntxiv los ntawm TI Launchpad G2, lossis ib qho 4K 20 tus pin MSP430G series MCU)
- lub 170 khi-taw tes mini qhob cij los yog lub rooj ua kom zoo rau kev tsim ua ntej amp
- TLC272 Dual op-amp
- mini electret microphone
- 47k (rub tawm), 100k, 2 x 10k, 1k resistors
- 1 x0f1 ua
- jumper cov xov hlau
- ob kab txiv neej tus pin header kom siv rau lub roj teeb tuav
- 2 x LR44 npib cell roj teeb
Kauj Ruam 2: Npaj Txheej Txheem Txheej Txheem
Txoj haujlwm no yuav tsum tsim ntawm 170 khi-point mini breadboard. Cov txheej txheem ntawm cov khoom siv yog raws li qhia hauv qab no. Ntawm qhov tshwj xeeb yog tias 8x8 LED matrix yuav tsum tau muab tso rau saum MSP430 MCU. Sib nrug los ntawm cov khoom siv, kuj tseem txuas cov xov hlau txuas los ntawm "+------+" cov cim.
G V + Gnd (1 theem kev teeb tsa) Peb tab tom siv cov lus no + ==================================== =================+ c0 ………… c7 | MIC……. + -----++--+…. | r0 o o o o o o o o | o || o + ----- [100k] --------------- +….. | r1 X o o o o o o o |. +--------------+-+. C7 C6 R1 C0 R3 C5 C3 R0 |. o o o o o o o o o |…… |.. | b6a7 ib | c0 thiab r1 koom tib tus pin thiab yuav tsis qhia | +. +-+-+-++| +-+-+-+-+-+-+-+-+-+|+ *ua ntawv thov kom muaj c6 + c0 + r1 | | | V+ | | | G b6b7 T R a7 a6 b5 b4 b3 | | qhov no yuav pub dawb b6 rau 32khz xtal moos | | | TXL 272 | | | | | | | tawm - + G | | |+ a0 a1 a2 a3 a4 a5 b0 b1 b2 | | | +. +-+-+-++| +-+-+-+-+-+-+-+-+-+-+|+ | o || o o o. +-+.. R4 R6 C1 C2 R7 C4 R5 R2 | |…. o- [10k] -o……… | |. o- [1k] o
peb siv ib theem ntawm TLC272 nkaus xwb
Kauj ruam 3: Sib dhos
Koj tuaj yeem pib tso cov khoom sib xyaw raws li txheej txheej ntawm lub khob cij. Raws li nws yog ASCII kos duab yog li tej zaum yuav tsis meej heev. Koj tuaj yeem ua ke nrog cov duab hauv qib no txhawm rau txheeb xyuas txhua qhov kev sib txuas.
Kev saib xyuas yuav tsum tau muab tso rau hauv IC chips. Feem ntau muaj cov cim nyob ntawm ib ntawm cov ces kaum los qhia tus pin 1 ntawm lub cuab yeej.
Kuv tau siv CAT5 ethernet cable xov hlau thiab lawv tau yooj yim heev los ua haujlwm ntawm cov phiaj xwm phiajcim. Yog tias koj muaj CAT5 cov xov tooj qub, koj tuaj yeem txiav nws qhib thiab koj yuav pom muaj 6 txoj hlua sib txuas sab hauv. Lawv zoo meej rau daim ntawv qhia zaub mov.
Kauj Ruam 4: Sau thiab thauj khoom Firmware
Cov peev txheej feem ntau nyob ntawm kuv qhov chaw cia khoom github.
Txog qhov haujlwm tshwj xeeb no, ib qho C cov ntaub ntawv nfft.c tau ntim rau hauv kuv lub khob cij ntim khoom khaws cia. Koj tsuas xav tau nfft.c
Kuv tab tom siv mps430-gcc los sau cov firmware tab sis nws yuav tsum mus zoo nrog TI CCS. Koj tuaj yeem zam txhua qhov teeb meem ntawm kev teeb tsa IDEs lossis cov sib sau ua ke los ntawm TI CCS huab, uas yog lub vev xaib raws IDE. Nws tseem yuav rub tawm lub firmware rau koj lub hom phiaj ntaus ntawv.
Nov yog qhov piv txwv suav sau ua ke w/ keyboards
msp430 -gcc -Os -Wall -function -sections -fdata -section -fno -inline -small -functions -Wl, -Map = nfft.map, --cref -Wl, -Relax -Wl, --gc- ntu -I/lub zog -0101E0016/kho vajtse/msp430/cores/msp430 -mmcu = msp430g2553 -o nfft.elf nfft.c
Kuv tab tom siv TI Launchpad G2 ua tus programmer rau program MCU.
Kauj Ruam 5: Nkag Siab Lub Circuit Court
Cov txheej txheem hluav taws xob tau nthuav tawm hauv qab no
MSP430G2452 lossis zoo sib xws, xav tau 4K Flash TLC272 Dual Op-Amp, GBW @1.7Mhz, @x100 nce, bandwidth txog 17Khz
* peb tab tom siv ib theem ntawm TLC272 nkaus xwb
._.
| MSP430G2452 | Vcc | | | + ----------------------- 2 | ADC0 | 1-+ | | | |. | Vcc | | | | rub tawm (47k) Vcc Vcc | --------------- | ib | | | _ | | | +-1 |------ ib. Vcc | 8-+ | | | |. |. |. | ^.--- | 7 | | 16-+ | | 10k | ib | 10k | ib | | / / ^ | | | | _ | | _ | 100k | _ | | / _+\ / / | | /| --- (saib daim phiaj qhia chaw) |.1u | | | | | /_+\ | | / | ------ _+-|| --- |-[1k]-+-2 | ---+| | | | | 15 GPIO | | | | +---------- 3 | ----- + +-|-| 6 | P1.1-P1.7 | | 8 x8x | | +-4 | Gnd +-| 5 | P2.0-P2.7 | | LED | Cov |+ | | --------------- | ib | | matrix | Cov ((O)) |. | | / | | _ | | MYOB | | 10k | ib +-20 | Gnd / | -------- | | _ | | | | _ | _ | _ _ | _ _ | _ _ | _ /// /// /// ///
LED Tsav
LED matrix yog ntawm 8 x 8 ntsiab. Lawv tau tsav los ntawm 15 GPIO pins. Lawv yog multiplexed w/ 8 kab thiab 8 kab phiaj. Txij li tsuas muaj 15 tus pin tom qab peb siv 1 tus pin rau ADC cov tswv yim, qhov sib txuam muaj kab 1 thiab kab 0 sib koom ib tus pin nkaus xwb. Qhov no txhais tau tias qhov tshwj xeeb LED ntawm kab 1 thiab kab 0 tsis tuaj yeem taws. Qhov no yog kev pom zoo vim tias tsuas yog tsis txaus GPIO pins los tsav txhua lub ntsiab lus LED.
Suab ntes
Lub suab tau ntes los ntawm lub tshuab tso dej tso rau ntawm lub microphone ntawm Kev Kawm BoosterPack. Raws li lub cim hluav taws xob me me, peb yuav tsum tau nthuav nws mus rau qib uas msp430 ADC10 tuaj yeem siv w/ kev daws teeb meem tsim nyog. Kuv tau siv ob-theem op-amp amplifier rau lub hom phiaj no.
Op-amp amplifier yog suav nrog ob theem, txhua w/ kwv yees li 100x nce. Kuv tau txais TLC272 vim nws tseem yog ib qho uas feem ntau thiab nws ua haujlwm w/ 3V. Qhov nce bandwidth yog kwv yees li 1.7Mhz txhais tau tias rau peb qhov tau txais ntawm 100x, peb tsuas tuaj yeem lav nws yuav ua haujlwm zoo (piv txwv li tswj hwm qhov peb xav tau) hauv qab 17Khz. (1.7Mhz / 100).
Thaum xub thawj kuv npaj siab yuav ua qhov ntsuas ntsuas ntsuas no txog 16-20Khz, tab sis thaum kawg kuv pom txog 8Khz yog qhov zoo txaus los tso nkauj. Qhov no tuaj yeem hloov pauv los ntawm kev hloov LM358 w/ qee yam ntawm kev ntsuas suab thiab hloov pauv tus nqi piv txwv. Tsuas yog saib rau qhov nce bandwidth ntawm op-amps koj xaiv.
Sampling thiab FFT
FFT txoj haujlwm siv yog "fix_fft.c" txoj cai uas ntau txoj haujlwm tau txais, nws tau ntab ncig hauv internet rau qee xyoo. Kuv tau sim 16 ntsis version thiab 8 ntsis version. Thaum kawg kuv tau txiav txim siab rau 8 ntsis version raws li rau kuv lub hom phiaj, Kuv tsis pom qhov ua ntej loj ntawm 16 ntsis version.
Kuv tsis muaj kev nkag siab zoo ntawm FFT cov txheej txheem tshwj tsis yog tias nws yog lub sijhawm siv rau kev hloov pauv zaus. Qhov ntawd txhais tau tias tus nqi (sijhawm) ntawm cov suab piv txwv, tom qab pub mis rau FFT kev suav ua haujlwm, yuav cuam tshuam qhov zaus ntawm qhov dav kuv tau txais los ntawm qhov tshwm sim. Yog li los ntawm kev kho tus nqi rau cov qauv suab, Kuv tuaj yeem txiav txim siab zaus zaus raws li qhov tshwm sim.
TimerA 0 CCR0 yog siv los khaws sijhawm ua piv txwv. Peb xub txiav txim siab qhov suav peb xav tau kom ua tiav cov qhab nia (sib raug rau peb DCO moos tus nqi ntawm 16Mhz). xws li TA0CCR0 teeb tsa rau (8000/(BAND_FREQ_KHZ*2))-1; qhov twg BAND_FREQ_KHZ yog 8 rau kuv. Nws tuaj yeem hloov pauv yog tias koj tau txais op-amp zoo dua thiab / lossis xav kom nws txawv.
Zaus Bands thiab Amplitude Scaling
Cov txheej txheem firmware 16 pawg ntawm ib qho cheb, thiab lub sijhawm ntes ua 500Hz sib cais ntawm cov tsev txhab nyiaj no. LED matrix yog ntawm 8 kab thiab tsuas yog tso tawm 8 bands / amplitudes. Hloov chaw ntawm ib qho ntawm txhua ob pab pawg, cov npe uas tsis yog kab tawm zaus tau siv los qhia ntau zaus ntau zaus (raws li suab paj nruag). Cov npe yog 500Hz qhov khoob ntawm qhov qis kawg, 1KHz qhov khoob hauv nruab nrab thiab 1.5Khz bands hauv qhov siab.
Qhov dav ntawm cov pab pawg ib leeg tau raug txo qis mus rau 8 qib, uas tau sawv cev los ntawm tus lej kab rov tav 'dots' ntawm LED matrix zaub. Qhov siab theem tau raug txo qis ntawm daim ntawv qhia tsis-kab uas txhais cov txiaj ntsig FFT rau hauv ib ntawm 8 cov teev Kev txheeb xyuas qhov sib txawv ntawm logarithmic yog siv nws zoo tshaj plaws sawv cev rau peb kev nkag siab txog qib suab.
Muaj built-in AGC cov laj thawj thiab cov ntsuas ntsuas yuav sim txo qis qhov ntau ntxiv thaum muaj ntau qib nce qib pom nyob rau yav dhau los. Qhov no yog ua tiav nrog tus swb uas piv cov lus sib tham.
Kauj Ruam 6: Khiav Cov Khoom Siv
- Qhov tseem ceeb luv nias hauv cov zaub hom mus los ntawm tsis muaj tus lej, ib qho, 2 teev, thiab 3 teev tso saib.
- Xovxwm ntev nkag mus rau hom teeb tsa, tom qab ntawv nias ntev tig los ntawm cov ntawv qhia zaub mov.
- Cov ntawv qhia zaub mov mus los ntawm 'Hamming Window Option', 'Dimmer', 'Sampling / Refresh Rate'.
- Hauv 'Hamming Window' teeb tsa hom, luv nias mus los tsis muaj hamming, hamming 1, hamming 2, hamming 3, ntev xovxwm lees paub qhov chaw.
- Hauv 'Dimmer' teeb tsa hom, luv nias mus los ntawm qhov muaj qhov ci ci ntawm 0 txog 3, xovxwm ntev lees paub qhov teeb tsa.
- Hauv 'Sampling / Refresh rate' teeb tsa hom, luv nias mus los ntawm qhov muaj qhov hloov tshiab los ntawm 0 txog 7, 0 txhais tau tias tsis muaj ncua, ntev xovxwm lees paub qhov chaw.
- Led segment multiplexing suav nrog lub sijhawm qeeb los them rau qhov sib txawv qhov ci rau ib kab.
Pom zoo:
Yuav Ua Li Cas Ua Lub Suab Suab Spectrum Analyzer: 7 Kauj Ruam (nrog Duab)
Yuav Ua Li Cas Siv Lub Suab Suab Spectrum Analyzer: LED Audio Spectrum Analyzer tsim cov qauv teeb pom kev zoo nkauj raws li kev siv suab paj nruag.There muaj ntau ntau DIY LED Music Spectrum cov khoom siv muaj nyob hauv khw, tab sis ntawm no peb tab tom yuav ua LED Audio Spectrum Tus kws tshuaj ntsuam siv NeoPixe
Yuav Ua Li Cas DIY 32 Band LED Suab Nkauj Spectrum Analyzer Siv Arduino Nano hauv Tsev #arduinoproject: 8 Kauj Ruam
Yuav ua li cas DIY 32 Band LED Suab Nkauj Spectrum Analyzer Siv Arduino Nano hauv Tsev #arduinoproject: Hnub no peb yuav ua 32 band LED Suab Suab Suab Spectrum Analyzer hauv Tsev siv Arduino, nws tuaj yeem qhia pom ntau zaus thiab ua si ntau lub sijhawm. yuav tsum tau txuas nrog ua ntej ntawm 100k resistor, txwv tsis pub lub suab nrov
Super Sized Acryllic Spectrum Analyzer: 7 Kauj Ruam (nrog Duab)
Super Sized Acryllic Spectrum Analyzer: Vim li cas koj thiaj xav saib cov duab me me lossis cov LCD me yog tias koj tuaj yeem ua nws loj? coj ib daim kab xev los tsim chav sau lub teeb
DIY FFT Audio Spectrum Analyzer: 3 Kauj Ruam
DIY FFT Audio Spectrum Analyzer: FFT spectrum analyzer yog cov cuab yeej ntsuas uas siv Fourier tsom xam thiab teeb liab cov txheej txheem ua haujlwm los muab kev tshuaj xyuas spectrum. Siv Fourier kev tshuaj xyuas nws tuaj yeem ua rau ib tus nqi hauv, piv txwv li, lub sijhawm txuas mus ntxiv los hloov
DIY Arduino Audio Signal Spectrum Analyzer: 3 Kauj Ruam
DIY Arduino Audio Signal Spectrum Analyzer: Qhov no yog lub tshuab ntsuas suab yooj yim heev nrog kev hloov pauv pom kev