Cov txheej txheem:

CRAZY L.O.L SPECTRUM ANALYZER: 6 Kauj Ruam (nrog Duab)
CRAZY L.O.L SPECTRUM ANALYZER: 6 Kauj Ruam (nrog Duab)

Video: CRAZY L.O.L SPECTRUM ANALYZER: 6 Kauj Ruam (nrog Duab)

Video: CRAZY L.O.L SPECTRUM ANALYZER: 6 Kauj Ruam (nrog Duab)
Video: $50 spectrum analyzer! Now i can test all my bad baofengs lol 😆 ham radio 2024, Kaum ib hlis
Anonim
CRAZY L. O. L SPECTRUM ANALYZER
CRAZY L. O. L SPECTRUM ANALYZER
CRAZY L. O. L SPECTRUM ANALYZER
CRAZY L. O. L SPECTRUM ANALYZER

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.
Duab
Duab
  • 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

SCHEMATIC
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:

Duab
Duab

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:

Duab
Duab

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.

Duab
Duab

Ѽ PCBWay txhawb kuv cov LoLShield luam tawm cov laug cam nrog kev xa khoom sai thiab zoo PCB.

Duab
Duab

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

Duab
Duab

Ѽ 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

Duab
Duab

BOTTOM LoLSHIELD

Duab
Duab

Ѽ Ua tiav ib LoLShield thiab txuas ntxiv txuas ntxiv 3 seem LoLShield.

Duab
Duab

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.
Duab
Duab

Ѽ Aligning & mounting 4 x Arduino Uno ntawm cov phaj acrylic.

Duab
Duab

Ѽ Plugging 4 x LoLShield rau 4 x Arduino Uno.

Duab
Duab

Ѽ Kua nplaum nqa lub txhab nyiaj hluav taws xob thiab lub suab tso rau ntawm phaj acrylic

Duab
Duab

Ѽ Ua tiav!

Duab
Duab

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:

Duab
Duab

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

KAWG
KAWG
KAWG
KAWG
KAWG
KAWG
KAWG
KAWG

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: