Cov txheej txheem:
- Kauj Ruam 1: YUAV UA LI CAS
- Kauj ruam 2: SCHEMATIC
- Kauj Ruam 3: LOL SHIELD PCB & LED SOLDERING
- Kauj Ruam 4: Kev sib txuas thiab sib koom ua ke
- Kauj ruam 5: PROGRAMMING
- Kauj Ruam 6: Ua tiav
Video: CRAZY L.O.L SPECTRUM ANALYZER: 6 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Hnub no kuv xav qhia yuav ua li cas thiaj ua lub tshuab ntsuas lub suab - 36 pawg los ntawm kev sib txuas 4 LoL Shields ua ke. Txoj haujlwm vwm no siv FFT lub tsev qiv ntawv los txheeb xyuas lub suab tso suab tso tawm, hloov nws mus rau qhov zaus, thiab tso tawm qhov dav ntawm cov zaus no ntawm 4 x LoL Shields.
Ua ntej pib, thov saib cov vis dis aus hauv qab no:
Kauj Ruam 1: YUAV UA LI CAS
Cov khoom siv hluav taws xob tseem ceeb muaj raws li hauv qab no:
- 4pcs x Arduino Uno R3.
- 4pcs x LoLShield PCB. PCBWay (Cov yam ntxwv tshwj xeeb kev cai PCB kev pabcuam ua ntej) txhawb kuv cov LoLShield luam tawm cov laug cam.
- 504pcs x LED, 3 hli. Txhua LoLShield xav tau 126 LEDs thiab peb tuaj yeem xaiv 4 qhov sib txawv coj xim & hom (nthuav lossis tsis nthuav tawm).
- 1pcs x Portable Charger Power Bank Roj teeb 10000/20000mAh.
- 4pcs x Txiv neej Header 40pin 2.54mm.
- 2pcs x USB Hom A/B cable. Ib qho yog siv rau Arduino cov phiaj xwm, lwm qhov yog rau ua kom lub zog Arduino los ntawm lub txhab nyiaj.
- 1pcs x 3.5mm Poj Niam Lub tso suab suab Jack.
- 1pcs x 3.5mm 1 Txiv neej rau 2 Poj Niam Suab Splitter Adapter lossis Ntau Lub Pob Ntseg Lub Suab Suab Splitter.
- 1pcs x 3.5mm Lub tso suab suab Jack Txiv neej-Txiv neej Connector Cable.
- 1m x 8P Rainbow Ribbon Cable.
- 1m x Ob Qhov Tub Ntxhais Hluav Taws Xob.
- 1pcs x Clear Acrylic, loj A4.
Kauj ruam 2: SCHEMATIC
LoLShield yog 9x14 charlieplexing LED matrix rau Arduino thiab qhov kev tsim no TSIS suav nrog ib qho kev txwv tam sim no. Cov LEDs yog tus kheej tuaj yeem hais qhia tau, yog li peb tuaj yeem siv nws los tso saib cov ntaub ntawv hauv 9 × 14 coj cov lej.
LoL Shield tawm D0 (Rx), D1 (Tx) thiab analog pins A0 rau A5 dawb rau lwm daim ntawv thov. Daim duab hauv qab no qhia Arduino Uno pins siv rau txoj haujlwm no:
Kuv lub tshuab ntsuas lub suab muaj 4 x (Arduino Uno + LoLShield). Lub zog hluav taws xob thiab lub tso suab tso suab 3.5mm tau txuas nrog hauv qab no schematic:
Kauj Ruam 3: LOL SHIELD PCB & LED SOLDERING
1. LoL SHIELD PCB
Ѽ Koj tuaj yeem xa mus rau PCB tsim ntawm: https://github.com/jprodgers/LoLshield los ntawm Jimmie P. Rodgers.
Ѽ PCBWay txhawb kuv cov LoLShield luam tawm cov laug cam nrog kev xa khoom sai thiab zoo PCB.
2. LED SOLDERING
Ѽ Txhua LoLShield xav tau 126 leds thiab kuv siv hom sib txawv & xim rau 4x LoLShields raws li hauv qab no:
- 1 x LoLShield: diffused coj, xim liab, 3mm.
- 1 x LoLShield: diffused coj, xim ntsuab, 3mm.
- 2 x LoLShield: tsis nthuav dav (meej) coj, xim xiav, 3mm.
Ѽ Npaj LoLShield PCB thiab LED
Ѽ Soldering 126 LED mus rau LoLShield PCB. Peb yuav tsum txheeb xyuas cov LEDs los ntawm roj teeb tom qab soldering txhua kab - 14 LEDs
TOP LoLSHIELD
BOTTOM LoLSHIELD
Ѽ Ua tiav ib LoLShield thiab txuas ntxiv txuas ntxiv 3 seem LoLShield.
Kauj Ruam 4: Kev sib txuas thiab sib koom ua ke
Ѽ Siv lub zog siv hluav taws xob thiab lub teeb liab rau 4xLoLShield. Lub tso suab tso suab siv ob lub suab: sab laug thiab sab xis uas txuas nrog Arduino Uno ntawm tus pin analog A4 & A5.
- A4: Sab laug Suab Channel.
- A5: Txoj Cai Suab Suab.
Ѽ Aligning & mounting 4 x Arduino Uno ntawm cov phaj acrylic.
Ѽ Plugging 4 x LoLShield rau 4 x Arduino Uno.
Ѽ Kua nplaum nqa lub txhab nyiaj hluav taws xob thiab lub suab tso rau ntawm phaj acrylic
Ѽ Ua tiav!
Kauj ruam 5: PROGRAMMING
Koj yuav tsum xa mus rau LoLShield ua haujlwm raws li Charlieplexing txoj kev thiab Fast Fourier Transform (FFT) ntawm:
en.wikipedia.org/wiki/Charlieplexing
github.com/kosme/fix_fft
Txog Charlieplexing, peb ua tib zoo mloog rau "peb lub xeev" ntawm Arduino digital pins: "HIGH" (5V), "LOW" (0V) thiab "INPUT". Hom "INPUT" tso Arduino tus pin rau hauv lub xeev tsis muaj zog. Siv ntawm:
www.arduino.cc/en/Tutorial/DigitalPins
Hauv kuv qhov haujlwm, cov suab ntau zaus tau tshwm ntawm 4 x LoL Shield thiab lawv tau piav raws li qhia hauv qab no:
Txhua Arduino nyeem lub teeb liab ntawm sab laug/ sab xis thiab ua FFT.
rau (i = 0; i <64; i ++) {Audio_Input = analogRead (RIGHT_CHANNEL); // Nyeem lub teeb liab ntawm txoj cai A5 - ARDUINO 1 & 2 // Audio_Input = analogRead (LEFT_CHANNEL); // Nyeem lub teeb liab ntawm sab laug channel A4 - ARDUINO 3 & 4 Real_Number = Audio_Input; Imaginary_Number [kuv] = 0; } fix_fft (Real_Number, Imaginary_Number, 6, 0); // Ua kom nrawm Fourier Hloov pauv nrog N_WAVE = 6 (2^6 = 64) rau (i = 0; i <32; i ++) {Real_Number = 2 * sqrt (Real_Number * Real_Number +Imaginary_Number * Imaginary_Number [kuv]); }
Ѽ Arduino 1 - Zaub ntau zaus bands 01 ~ 09 ntawm txoj cai channel (A5).
rau (int x = 0; x <14; x ++) {rau (int y = 0; y <9; y ++) {if (x <Real_Number [y]) // Zaub ntau zaus 01 txog 09 {LedSign:: Teeb (13-x, 8-y, 1); // LED ON} lwm {LedSign:: Teeb (13-x, 8-y, 0); // LED tawm}}}
Ѽ Arduino 2 - Zais cov zaus ntau zaus 10 ~ 18 ntawm txoj cai channel (A5).
rau (int x = 0; x <14; x ++) {rau (int y = 0; y <9; y ++) {if (x <Real_Number [9+y]) // Zaub zaus zaus 10 txog 18 {LedSign:: Teeb (13-x, 8-y, 1); // LED ON} lwm {LedSign:: Teeb (13-x, 8-y, 0); // LED tawm}}}
Ѽ Arduino 3 - Zaub amplitude zaus band 01 ~ 09 ntawm sab laug channel (A4).
Cov cai yog tib yam li Arduino 1 thiab lub suab tawm sab laug txuas rau Arduino ntawm analog pin A4.
Ѽ Arduino 4 - Zaub ntau zaus bands 10 ~ 18 ntawm sab laug channel.
Cov cai yog tib yam li Arduino 2 thiab lub suab tawm sab laug txuas rau Arduino ntawm analog pin A4.
Kauj Ruam 6: Ua tiav
Lub tshuab ntsuas hluav taws xob nqa tau no tuaj yeem txuas ncaj qha rau lub khoos phis tawj/ lub desktop, lub xov tooj ntawm tes, ntsiav tshuaj lossis lwm lub tshuab ntaus nkauj ntawm 3.5mm lub tso suab tso suab. Txoj haujlwm no zoo li vwm, Kuv vam tias koj nyiam nws!
Ua tsaug rau koj nyeem !!!
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
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
Dancing Dej: Arduino Nrog MSGEQ7 Spectrum Analyzer: 8 Kauj Ruam
Dancing Fountain: Arduino Nrog MSGEQ7 Spectrum Analyzer: Txais tos ntawm lub teeb liab thiab hloov nws mus rau hauv kev pom lossis cov tshuaj tiv thaiv kab mob yog qhov nthuav heev. Hauv qhov haujlwm no peb yuav siv Arduino Mega los txuas nrog lub tshuab ntsuas hluav taws xob MSGEQ7 uas siv lub suab tso tawm suab thiab ua suab paj nruag
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
RGB Matrix + Spectrum Analyzer: 10 Kauj Ruam (nrog Duab)
RGB Matrix + Spectrum Analyzer: Hlub LEDs? Kuv ib yam! Tias yog vim li cas, hauv phau ntawv qhia no, kuv yuav qhia koj yuav ua li cas thiaj ua tau zoo txaus RGB LED Matrix, uas tuaj yeem hloov pauv mus rau Spectrum Analyzer nrog nyem ntawm lub pob. Tom qab nyeem ntawv , yog tias koj xav tias Cov Lus Qhia no tau txais nws, thov pov npav