Cov txheej txheem:

Boomstick - Animated LED Driver: 10 Kauj Ruam
Boomstick - Animated LED Driver: 10 Kauj Ruam

Video: Boomstick - Animated LED Driver: 10 Kauj Ruam

Video: Boomstick - Animated LED Driver: 10 Kauj Ruam
Video: Plagiarism and You(Tube) 2024, Kaum ib hlis
Anonim
Image
Image
Cheebtsam thiab Cov Cuab Yeej
Cheebtsam thiab Cov Cuab Yeej

Boomstick yog txoj haujlwm tsim kom muaj txoj hlua ua haujlwm ntawm cov programmable RGB LEDs, siv los ntawm Arduino me me, thiab rov ua suab paj nruag. Phau ntawv qhia no tsom mus rau ib qho kev teeb tsa kho vajtse uas koj tuaj yeem sib sau ua ke txhawm rau ua haujlwm Boomstick software. Cov khoom siv no yog qhov loj me rau kev tso rau hauv cov khoom hnav xws li lub tsho tshaj sab lossis lub kaus mom sab ntsuj plig, lossis teeb pom qhov ntev ntawm tus ncej totem nqa tau. Cov khoom siv suav nrog lub mic (kom khaws suab paj nruag), pob qhov rooj (txhawm rau kho qhov ci) thiab khawm (kom hloov cov duab kos). Tag nrho chav tsev (suav nrog LEDs) tau siv los ntawm ib qho chaw nres nkoj micro USB, uas tuaj yeem txuas rau hauv phab ntsa txuas, lossis lub roj teeb USB nqa tau yooj yim.

Txoj haujlwm no nyuaj me ntsis. Koj yuav tsum tau ua kom xis nyob, thiab muaj lub siab ntev ua haujlwm nrog cov khoom me me. Lub sijhawm ua haujlwm tag nrho yog 2+ teev.

Kauj Ruam 1: Cheebtsam thiab Cov Cuab Yeej

  • Adafruit Perma-Proto Half-sized Breadboard PCB-$ 4.50
  • Adafruit ItsyBitsy 32u4 - 5V 16MHz - 9.95
  • Electret Microphone Amplifier - MAX5566 nrog Adjustable Gain - $ 6.95
  • USB Micro -B Breakout Board - $ 1.50
  • Breadboard Trim Potentiometer - 10K - $ 1.25
  • Tactile khawm hloov (6mm)
  • 10K ohm resistor
  • 3 -pin JST SM Cables - $ 1.50

Txhua qhov txuas yog los ntawm Adafruit, thiab kuv suav nrog tus nqi tam sim no thaum lub sijhawm sau ntawv (yuav raug hloov pauv!) Tus nqi tag nrho yuav tsum qis dua $ 30. Koj tseem yuav xav tau:

  • NeoPixel RGB sawb - xaiv raws li koj qhov kev xav tau, tab sis kuv pom 30LED/m ua haujlwm tau zoo rau kev hnav
  • Cov khoom hnav lossis zoo ib yam los tso cov LEDs
  • Me me ntsuas kab hlau txuas - Kuv pom cov khoom no tau teeb tsa los ntawm Adafruit ua haujlwm zoo kawg nkaus
  • Soldering hlau, solder, flux
  • Yaug kab pheeb ces kaum txiav - zoo tshaj plaws rau kev txiav cov hlau ntau dhau tom qab siv tas
  • Hlau stripper
  • Kub kua nplaum phom
  • Cov ntxhib zeb xuab zeb

Kuv xav kom tuaj nqa pob USB roj teeb yog tias koj tab tom tsim khoom hnav. Kuv tau muaj lub sijhawm ua haujlwm zoo (6+ teev nrog 60 LED txoj hlua ntawm qhov ci ci) los ntawm Anker PowerCore 10000.

Kauj Ruam 2: Npaj PermaProto Board

Npaj Pawg PermaProto
Npaj Pawg PermaProto

Peb xav kom teeb tsa peb cov khoom kom nruj raws li qhov ua tau, thiab hmoov tsis qhov no txhais tau tias peb yuav tsum txiav qee qhov cim tseg ntawm PCB, yog li qhov sib txawv ntawm cov Circuit Court tsis txuas rau ib leeg.

  1. Tuav lub PCB nrog cov ntawv ncaj, tom qab ntawd ntxeev nws saum toj mus rau hauv qab (yog li sab laug tseem nyob ntawm sab laug).
  2. Ua tib zoo txiav cov cim qhia hauv daim duab nrog rab riam ntse. Peb qhov qhab nia hauv kab rov tav yog nyob ntawm #5, 9, thiab 11.
  3. Tej zaum koj yuav tsum tau qhab nia kab ntau zaus, thiab tseem khawb ntawm PCB txhawm rau kom ntseeg tau tias kev so huv. Nco ntsoov tias ob txoj kab kab rov tav saum toj kawg nkaus yog ntxaum thiab xav tau kev txiav ntau dua.
  4. Xaiv tau, siv lub ntsuas ntsuas los tshuaj xyuas tias tsis muaj kev coj ua hla txhua qhov ntawm cov kab txiav.
  5. Xaiv tau, siv cov kab txaij txiav cov kab pheeb ces kaum, txiav tawm lub xwmfab me uas pom hauv daim duab. Koj tuaj yeem ua qhov no los ntawm kev txiav txhua ntawm 4 sab kom tob li koj tuaj yeem ua nrog lub tshuab txiav, tom qab ntawd tig lub rooj tsavxwm thiab txiav los ntawm lwm sab. Lub qhov no muab kev nkag mus rau qhov txiav lub zog ntawm lub microphone board thaum peb ua tiav.

Kauj Ruam 3: Solder First Set of Wiring

Solder Thawj Teeb Ntawm Cov Xov Tooj
Solder Thawj Teeb Ntawm Cov Xov Tooj
Solder Thawj Teeb Ntawm Cov Xov Tooj
Solder Thawj Teeb Ntawm Cov Xov Tooj
Solder Thawj Teeb Ntawm Cov Xov Tooj
Solder Thawj Teeb Ntawm Cov Xov Tooj
Solder Thawj Teeb Ntawm Cov Xov Tooj
Solder Thawj Teeb Ntawm Cov Xov Tooj

Muaj pes tsawg txoj hauv kev uas cov xov hlau thiab cov khoom siv hauv txoj haujlwm no tuaj yeem muab muag ua ke. Txawm li cas los xij, txoj hauv kev hauv phau ntawv qhia no tau ua haujlwm zoo rau kuv, thiab tau dhau los ntawm qee qhov rov ua dua. Lub hom phiaj yuav ua li cas cov kab hluav taws xob tau teeb tsa yog kom tsis muaj ntau dua ob txheej ntawm cov xov hlau sib tshooj ntawm ib qho twg, yog li saib xyuas ua raws txoj haujlwm thiab qhov ntev ntawm cov xov hlau ze. Hauv txhua daim duab rau phau ntawv qhia no, cov xov hlau yog xim xim:

  • Liab qhia txog 5V cov xov hlau zoo.
  • Daj qhia txog 3V cov hlau zoo.
  • Dawb qhia lub teeb liab lossis cov ntaub ntawv xaim.
  • Dub qhia tias yog xaim av.

Qee qhov kev saib xyuas xav tau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhawm rau txhav thiab xaim cov xov hlau. Nov yog kuv li txheej txheem:

  1. Txiav qhov kwv yees ntev ntawm cov xaim uas xav tau.
  2. Sawb ib kawg - qhov ntev tsis tseem ceeb heev, raws li koj yuav txiav qhov tshaj tom qab.
  3. Ntxig cov hlau xaim los ntawm thawj lub qhov, thiab tso cov xaim hauv nws txoj haujlwm zaum kawg.
  4. Khwv tau cov rwb thaiv tsev ncaj qha hla lub qhov thib ob nrog koj tus ntiv tes xoo.
  5. Tshem cov xaim, thiab hle lwm qhov kawg ntawm qhov chaw ntawm tus qhab nia me me.
  6. Re-ntxig cov xaim, thiab txhuam txhua qhov kawg.
  7. Txiav qhov tshaj.

Rau thawj kauj ruam no, peb yuav tso txheej txheej ntawm kab thaiv ua ntej peb ntxiv ib qho ntxiv. Qhov no yuav ua rau peb lub neej yooj yim me ntsis tom qab, vim tias qee qhov yuav nkag tsis tau rau cov laug thiab txiav.

  1. Solder hauv 10K ohm resistor hauv txoj haujlwm qhia.
  2. Muab cov xov hlau txuas ntxiv rau hauv cov haujlwm kwv yees uas tau qhia hauv daim duab. Nco tseg qhov ntev ntxiv thiab nkhaus hauv cov xov dub/liab.
  3. Tig lub rooj tsavxwm hla, thiab rov txheeb xyuas ob qhov chaw ntawm cov chaw muag khoom.

Peb kuj tseem yuav txuas tus txuas LED ntawm theem no. Nws cov ntaub ntawv sib txuas yuav tsis siv tau thaum peb siv ntawm Arduino.

  1. Faib peb lub xov hlau ntawm qhov txuas.
  2. Tuav tus txuas rau lub rooj tsavxwm nrog koj tus ntiv tes xoo, thiab tso cov xov hlau nruab nrab raws li qhia, ncav mus hla tus kab #10.
  3. Txiav cov hlau mus rau qhov ntev uas tsim nyog (tawm me ntsis ntxiv txhawm rau txhawm rau hla lub qhov).
  4. Saj thiab rub lub xaim.
  5. Muab nws tso rau hauv qhov qhia.

Nco ntsoov khaws cov xov hlau ntau dhau nrog koj daim kab xev ntxhua khaub ncaws thaum koj ua haujlwm!

Kauj Ruam 4: Ntxiv Arduino

Ntxiv rau Arduino
Ntxiv rau Arduino
Ntxiv rau Arduino
Ntxiv rau Arduino
Ntxiv rau Arduino
Ntxiv rau Arduino

Nws yog lub sijhawm los laug peb thawj feem! Nco ntsoov tias rau Arduino, lub microphone, thiab micro USB breakout, peb yuav tsum tau ua ntej solder pins rau txhua tus ntawm lawv. Txog rau Arduino tshwj xeeb, peb tsis muab txhua tus koob. Tsuas yog ib pawg me me uas tsim nyog, thiab nws ua rau peb lub neej yooj yim dua yog tias muaj qee qhov khoob ntawm ib sab. Ua raws cov duab kom zoo zoo

  1. Txhawm rau txhawm rau txuas tus pin rau cov khoom siv, Kuv pom nws yooj yim tshaj plaws los thawb tus pin thiab cov khoom sib xyaw ua ke mus rau hauv lub khob cij ua ntej kuv muab lawv tso rau. Qhov no ua kom ntseeg tau tias cov pins tau sib koom ua ke ntsug, thiab square nrog cov khoom siv. Ceev faj tsis txhob hno koj tus kheej! Nws yog qhov yooj yim tshaj plaws los thawb rau ntawm tus pin nrog qee yam ncaj thiab khov kho.
  2. Taw qhia Arduino raws li qhia hauv daim duab. Koj tuaj yeem suav tag nrho kab ntawm tus pin raws ntug pib nrog BAT/G/USB.
  3. Rau RST/5V/ARef ntug, tshem tawm 4 tus pin thiab 6 tus pin. 4 tus pin mus ntawm 5V thiab A0, thiab 6 tus pin mus ntawm A4 thiab 3V.
  4. Solder txhua tus pins ib tus los ntawm ib qho, ua kom ntseeg tau tias Arduino tso dej zoo nrog cov yas dub.
  5. Tshem nws los ntawm lub khob cij, thiab tshawb xyuas hauv qab ib zaug ntxiv kom paub meej tias cov pins zoo li hauv daim duab.

Tam sim no peb tau npaj kom muab nws txuas rau PCB!

  1. Muab tso rau Arduino raws li qhia hauv daim duab.
  2. Nco ntsoov tias cov ntaub ntawv xaim ntawm LED txuas mus rau hauv qab A1/A2/A3 qhov sib txawv.
  3. Siv daim kab xev los tuav cov khoom sib txuas rau PCB yog tias tsim nyog, thiab muab nws txuas rau ntawm lub rooj tsavxwm los ntawm sab hauv qab.
  4. Txiav tawm cov pins ntau tshaj uas siv koj cov kab pheeb ces kaum flush. Ceev faj - qhov no tuaj yeem xa cov khoom me me ntawm tus pin ya ntawm kev nrawm. Kuv xav qhia kom hnav qee yam tsom iav, thiab tsom lub rooj tsavxwm nqes mus rau hauv lub thoob khib nyiab, lossis tejzaum nws mus rau koj txhais tes.

Kauj Ruam 5: Cov Cheeb Tsam Ntau

Ntau Cheeb Tsam!
Ntau Cheeb Tsam!
Ntau Cheeb Tsam!
Ntau Cheeb Tsam!
Ntau Cheeb Tsam!
Ntau Cheeb Tsam!

Tam sim no peb tau npaj rau qhov seem ntawm cov khoom seem rau PCB.

Ua ntej tshaj, peb yuav tsum tau xaim ib qho xaim ntxiv ntawm sab hauv qab ntawm lub rooj tsavxwm. Nco tseg cov xaim daj nyob sab xis ntawm thawj daim duab!

Thaum qhov ntawd ua tiav, thiab qhov txiav ntau dhau, nws yog lub sijhawm rau lub microphone.

  1. Ua ntej tshaj plaws, siv peb tus pin rau lub microphone breakout board. Nco ntsoov tias rau qhov tivthaiv no, nws zoo (txawm tias xav tau) rau nws los teeb ntawm lub kaum sab xis rau PCB - nco ntsoov sab xis ntawm daim duab thib ob. Txoj hauv kev yooj yim tshaj plaws kom ua tiav qhov no yog txhawm rau pins thaum lawv raug nias rau hauv lub khob cij, thiab tso cai rau lub rooj tswj hwm lub microphone tso lub kaum sab xis rau ntawm lub khob cij.
  2. Xaiv tau, txiav lub microphone potentiometer. TSEEM CEEB heev siv lub taub hau me me tig lub hwj chim ntsuas hluav taws xob raws lub moos (qhia hauv daim duab thib peb). Nco ntsoov tias nws yog cov khoom siv sib txuam heev, thiab tuaj yeem tawg yooj yim. Nws yuav tsuas yog ua kev hloov pauv ib nrab, tsis txhob yuam nws ntxiv. Txiav cov potentiometer clockwise tig lub zog ntawm lub tshuab hluav taws xob qis, uas ua rau lub microphone tsis nkag siab, thiab tso cai rau ua kom zoo dua qub hauv ib puag ncig nrov nrov (zoo li hmo ntuj los yog kev lom zem suab paj nruag). Txawm li cas los xij, nco ntsoov tias nws yuav ua rau nyuaj rau cov teebmeem cuam tshuam hauv ib puag ncig uas ntsiag to, xws li mloog nkauj hauv tsev.
  3. Siv rab phom nplaum kub los tso ib lub kua nplaum rau ntawm txoj haujlwm uas tau qhia hauv daim duab thib peb.
  4. Nias lub microphone mus rau PCB ntawm txoj haujlwm qhia - tus pin yuav tsum yog ntawm kab thib ob, hla kab #17-19.
  5. Tig lub PCB hla thiab txuas cov pins. Txiav txhua qhov tshaj.

Tam sim no, cia ua Micro USB tawg.

  1. Tsis zoo li lub microphone, peb xav kom Micro USB pawg thawj coj saib ua ke nrog cov koob. Qhov no yog kom USB cable los tawm ntawm lub rooj tsavxwm thaum txuas, thiab tsis cuam tshuam nrog PCB. Ua tib zoo saib xyuas nws thaum siv cov pins, thiab thaum siv nws rau ntawm lub rooj tsavxwm. Ib zaug ntxiv, saib daim duab thib ob rau qhov kev taw qhia zaum kawg.
  2. Koj tuaj yeem siv cov kua nplaum kub rov los ua ntej qhov chaw tawg hauv qhov chaw raug. Cov koob yuav tsum yog hauv kab hauv qab (TSIS yog ob kab zog), hla kab #15-19.
  3. Txhim kho qhov chaw hauv qab ntawm lub rooj tsavxwm nrog kua nplaum kub ntxiv raws li xav tau. Qhov no muab lub zog xav tau ntau, vim tias qhov chaw nres nkoj tuaj yeem tau txais kev tawm dag zog los ntawm USB txuas txuas.

Thaum kawg, peb yuav tsum tau muab cov laug khawm thiab lub hwj chim tso rau.

  1. Pib nrog khawm. Qhib nws ob txhais ceg me ntsis, thiab ntxig nws rau hauv txoj haujlwm uas qhia hauv daim duab.
  2. Koj tuaj yeem khoov ob txhais ceg sab hauv ntawm sab hauv qab kom pab tuav lub pob nyob hauv qhov chaw.
  3. Muab txhuam ntawm ob txhais ceg los ntawm sab saum toj ntawm lub rooj tsavxwm.
  4. Tam sim no ntxig lub potentiometer raws li qhia. Nco ntsoov tias cov pins nyob saum toj ntawm daim duab.
  5. Ruaj ntseg nws rau ntawm pawg thawj coj saib ib ntus nrog cov kab xev, thiab muab nws tso rau sab hauv qab ntawm lub rooj tsavxwm.

Kauj Ruam 6: Xeem Kawg

Kawg Kawg
Kawg Kawg
Kawg Kawg
Kawg Kawg

Kuv yuav khaws cov lus qhia luv luv, tab sis peb yuav tsum ua kom tiav cov xov hlau nyob hauv qab ntawm pawg thawj coj saib.

  1. Muab cov xaim dub thiab daj tso rau sab laug sab saud hauv thawj daim duab. Cov no muab ntau yam ntawm cov hluav taws xob uas lub zog hluav taws xob yuav tso tawm.
  2. Muab cov xov hlau dub thiab dawb tso rau hauv qab txoj cai hauv daim duab thib ob. Cov no muab cov av thiab cov xov hluav taws xob tso rau lub microphone.
  3. Paub meej tias txhua lub xov hlau nyob tam sim no raws li qhia.

Tam sim no peb tau ua tiav nrog hauv qab! Koj tuaj yeem xaiv qhov pom cov kua nplaum kub txhawm rau tuav cov xov hlau thiab muab kev tiv thaiv tiv thaiv luv - txawm hais tias kuv ib txwm tsis thab.

Kauj Ruam 7: Txuas lub hwj chim txuas LED

Txuas lub hwj chim txuas LED
Txuas lub hwj chim txuas LED
Txuas lub hwj chim txuas LED
Txuas lub hwj chim txuas LED

LED txuas yuav tsum tau rub lub zog ncaj qha los ntawm USB cov tswv yim. Wb tau txais cov khoom siv soldered tam sim no.

  1. Tuav tus txuas mus rau ntawm lub rooj tsavxwm nrog koj tus ntiv tes xoo, hauv nws qhov chaw zaum kawg (saib daim duab 2).
  2. Peb tab tom yuav hle qhov me me ntev (1-2mm) ntawm cov xaim thiab cov kab laug sab uas ncaj qha mus rau sab saum toj ntawm cov khoom siv sib txuas uas twb muaj lawm hauv qhov thib ob los ntawm kab hauv qab.
  3. Txiav thiab hlais txhua qhov ntawm ob lub xov hlau raws li. Raws li tau qhia hauv thawj daim duab, hauv qab xaim yuav tsum txuas rau 5V sib koom, thiab cov xaim saum toj yuav tsum txuas rau GND.
  4. Tin ob qho ntawm qhov chaw uas xaim ntawm xaim.
  5. Cuam tshuam lawv kom zoo rau cov pob qij txha uas twb muaj lawm. Nco ntsoov tias 5V xaim tsis txuas rau kab hauv qab ntawm nws, vim qhov no nqa lub cim 3.3V, thiab ua li ntawd tuaj yeem tua koj Arduino. Nws tau pom zoo kom txheeb xyuas tias tsis muaj kev coj ua ntawm ob qho kab nrog lub multimeter, ua ntej koj lub zog ntawm lub rooj tsavxwm.
  6. Kub kua nplaum lub LED txuas txuas ruaj khov rau lub rooj tsavxwm, thiab txhawb nws nrog cov kua nplaum ntau.

Paub meej tias koj lub rooj tsavxwm zoo li daim duab!

Kauj Ruam 8: Txuas nrog Pawg Thawj Coj

Txuas nrog Pawg Thawj Coj
Txuas nrog Pawg Thawj Coj
Txuas nrog Pawg Thawj Coj
Txuas nrog Pawg Thawj Coj

Muaj ob txoj hauv kev tseem ceeb uas koj yuav txuas rau lub rooj tsavxwm.

  • Rau kev ua haujlwm ntawm Arduino, txuas rau USB chaw nres nkoj ncaj qha rau nws (daim duab 1).
  • Txhawm rau khiav LEDs, txuas rau USB chaw nres nkoj hauv qab, thiab nqes LEDs (daim duab 2).

Kauj Ruam 9: Tiav Touches

Tiav Touches
Tiav Touches
Tiav Touches
Tiav Touches

Cov khoom tau muab tso tawm kom nruj me ntsis li sai tau, yog li qee qhov ntawm PCB tseem tshuav. Koj tuaj yeem ua tib zoo txiav qhov no raws li qhia hauv daim duab. Kuv tsis paub tseeb txog txoj hauv kev zoo tshaj plaws los ua qhov no raws nraim - Kuv siv qee qhov hnyav hlau txiav, tab sis koj kuj tseem tuaj yeem siv hacksaw yog tias koj tau ceev faj. Txiav hla cov qhov uas twb muaj lawm ua rau nws yooj yim dua.

Thaum koj tau txiav tawm qhov ntau dhau, Kuv xav pom zoo kom txhuam cov npoo thiab cov ces kaum nrog qee cov ntxhib ntxhib zeb zeb, vim tias PCB tuaj yeem ntse heev.

Tag nrho chav tsev no tuaj yeem qhwv hauv qee qhov dav heatshrink daim kab xev nrog qhov txiav kom nkag mus rau kev tswj hwm thiab chaw nres nkoj.

Pom zoo: