Cov txheej txheem:
- Kauj Ruam 1: Teeb Rau Kev Xeem …
- Kauj Ruam 2: Kev Xeem thiab Teeb …
- Kauj ruam 3: Soldering Up the Pixels…
- Kauj Ruam 4: Teeb Duab Sketch hauv Visuino …
- Kauj Ruam 5: Teeb Duab Sketch hauv Visuino … [txuas ntxiv]
- Kauj Ruam 6: Teeb Duab Sketch hauv Visuino … [txuas ntxiv nrog Neo-Pixel Ntxiv]
- Kauj ruam 7: Ua tiav Video thiab Ua tiav
Video: Yooj Yim Ambient RGB LEDs Teeb Nrog Visuino.: 7 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Qhov haujlwm me me no tsuas yog qee yam uas tau ntab ncig hauv qab ntawm kuv lub taub hau txog 9 lub hlis thiab kuv tuaj yeem qhia nws tam sim no, uas kuv muaj txoj hauv kev kom ua raws.
Yuav tsum yog tus nqi pheej yig los ua ke, ntawm no yog yam koj yuav xav tau:
- Qee qhov me me ntawm Arduino hom board, zoo li Pro Mini lossis Pro Micro.
- Ob peb Neo-Pixel hom RGB LEDs ntawm ib qho PCBs nkaus xwb
- Kwv yees li 6 'ntawm qee cov xov hlau, Kuv tau siv cov xov tooj sib txuas uas kuv tau khaws cia, nws muaj 8 txoj hlua thiab kuv tsuas yog siv qee qhov ntawm lawv.
- 2 txog 6 ping pong pob, los ntawm koj lub khw muag khoom ntaus pob ncaws pob.
- Ob peb Txiv neej rau qee yam jumper xov hlau, yog tias koj xav sim koj qhov kev nce qib ntawm txoj kev.
- Visuino thiab Arduino IDE
Cov Cuab Yeej Xav Tau
Soldering Iron, solder, kab pheeb ces kaum txiav, xaim hluav taws xob hobby, riam hobby, kub kua nplaum phom, thiab USB cable rau programming Arduino.
Kauj Ruam 1: Teeb Rau Kev Xeem …
Ua ntej, Kuv xav sim ib lub pixel nrog kuv lub rooj tsavxwm. Yog li, Kuv txiav tawm qhov xaus ntawm cov xov hlau jumper, uas yog siv rau lub rooj noj mov. Tom ntej soldered 3 ntawm lawv rau ib pixel.
Daim duab 1 qhia txog kev sib txuas. Txiv kab ntxwv yog V, Daj yog Cov Ntaub Ntawv thiab Xiav yog GND
Neo -Pixels thiab kev sib piv xav tau 5V lub zog, yog li, koj yuav tsum saib rau 5V - 16MHz version ntawm Pro Mini lossis Pro Micro. Kuv sim lub Micro, vim qhov yooj yim ntawm kev txuas thiab rub tawm, qhov kawg yuav yog Mini, vim tias lawv pheej yig dua thiab kuv muaj ntau ntawm lawv ntawm tes. Tsis tas li, ntawm kev ceeb toom yog tias koj tsuas yog tsav tsheb txog 2 txog 4 ntawm lawv koj yuav tsum tsis xav tau lub zog ntxiv.
Daim duab 2 qhia kev sib txuas ntawm Pro Micro sab ntawm yam. Siv tus Pin 2 rau Cov Ntaub Ntawv.
Kauj Ruam 2: Kev Xeem thiab Teeb …
Yog li, kuv pib ntsuas Visuino kos duab nrog qee yam yooj yim, ua ntej.
Kuv ntxiv Neo-Pixel ColorGroup. ColorPixel thiab tom qab ntawd Random Xim Generator thiab Clock Generato r. Ntawm no, hauv Daim Duab 2 koj tuaj yeem pom cov khoom sib txuas thiab daim vis dis aus no qhia qhov tshwm sim. Rau kuv qhov kev xav me me nyob ib puag ncig RGB, uas tau mus nrawm me ntsis thiab thaum kuv tuaj yeem ua rau nws qeeb nws tseem me ntsis rau kuv lub zeem muag ntawm qhov no.
Txog qhov kev sim no, thaum kawg kuv tau txais qee lub pob ping pong thiab tom qab ntawd tsuas yog txiav qhov yuav luag lub qhov, nrog rab riam hobby ntse, tab sis nws muaj qhov ntxhib ntawm qhov kawg kuv txiav. Daim duab 3 qhia txog kev txiav tawm tsis xwm yeem, tab sis kuv npaj rau kub-gluing nws mus rau pixel PCB, yog li cov duab tsis zoo yuav tsis pom.
Yog li, thaum koj mus txiav tawm lub xwmfab qhov, koj xav ua kab pixel thiab kwv yees qhov twg los taug qab lub qhov thiab tsuas yog khij nws nrog tus nplua/ntse mem. [Kuv siv cov xaum xim rau cov haujlwm no, 0.5mm] Raws li pom hauv Daim Duab 5. Tom qab ntawd tsuas yog pib ntsuas qhov saum npoo nrog rab riam kom txog thaum koj yuav luag dhau los, tom qab ntawd ua tib zoo lo lo rau hauv thiab maj mam txiav sab saud kom daim tsis ua t poob rau hauv pob. Daim duab 6 qhia nws muab tso rau hauv lub qhov, koj yuav xav tau txiav nws me ntsis kom nws haum rau hauv qhov yooj yim.
Kauj ruam 3: Soldering Up the Pixels…
Rau cov xaim ntev ntawm no kuv xaiv lawv raws qhov dav ntawm kuv lub rooj txee, uas yog li 3 ko taw. Yog li, kuv txiav kuv cov xov hlau ib nrab thiab yuav siv cov nyiaj seem los tso rau Arduino board kom nws nkag tau yooj yim.
Thaum siv cov khoom siv no los, nws yog ib qho tseem ceeb kom tsuas muaj cov hlau ntawm cov ntaub qhwv rau qhov tsawg kawg nkaus ntawm lub sijhawm, kwv yees li 3 vib nas this yog qhov qub thiab sim tsis pub dhau qhov no yam tsis cia nws txias hauv nruab nrab. Hauv Daim Duab 1, Kuv xub nyuam qhuav ntxiv cov kab laug sab txuas rau txhua lub ncoo ntawm DIN [cov ntaub ntawv hauv] sab ntawm thawj lub pixel. Tom qab ntawd cia nws txias txog li ib feeb, Kuv thov cov hlau rau txhua qhov blob ntxiv cov xaim rau nws. Hauv daim duab 2 koj tuaj yeem pom qhov no yog qhov ua tiav thiab kuv qhwv cov xaim 4 nyob ib ncig ntawm lwm tus kom lawv nyob hauv qhov chaw thaum kuv muab lawv pov rau hauv.
Daim duab 3 qhia txog lub pixel thib ob nrog blobs ntawm cov kab ntawm DOUT (cov ntaub ntawv tawm) los ntawm qhov kawg, thiab lub sijhawm no kuv pib ntawm DOUT [cov ntaub ntawv tawm] thiab ntxiv cov xov hlau los ntawm pixel kawg rau nws. Tom qab ntawd hauv Daim Duab 4, koj tuaj yeem pom lub pixel thib ob nrog ob qho kawg txuas nrog.
Tam sim no peb tuaj yeem kub cov kua nplaum rau lub ping pong pob. Cov duab 5 & 6 qhia cov kua nplaum kub, Kuv sim muab nws tso rau hauv 'kaum' yog li nws yuav ruaj khov tshaj plaws.
Kauj Ruam 4: Teeb Duab Sketch hauv Visuino …
Yog li, hauv thawj Visuino Kauj Ruam no koj yuav tsum qhib Visuino lossis rub tawm nws los ntawm no: Visuino.com thiab nruab nws ib zaug ntawm qhov screen hais kom ua.
Tom ntej, hauv lub qhov rai loj, koj yuav tsum xaiv Arduino cov laug cam sib xws uas koj yuav siv rau txoj haujlwm no. Daim duab 1 qhia tias kuv tau xaiv Pro Mini ces nyem "OK"
Tom qab ntawd koj yuav xav mus rau ntawm lub npov Tshawb nrhiav nyob rau sab saud sab xis thiab ntaus hauv 'moos' tom qab ntawv xaiv thiab rub lub Clock Generator (Duab 2) thiab rub mus rau sab laug ntawm Arduino board thiab tso nws tseg ntawm nws, raws li tau hais hauv daim duab 3. Lub tshuab hluav taws xob moos yuav 'zuam' cov khoom siv tom ntej los ntawm tus nqi uas peb muab rau nws. Yog li, txuas ntxiv mus rau "Cov Khoom" thiab nrhiav qhov "Zaus" xaiv thiab ntaus hauv, "0.1", (Duab 4) uas yuav zuam ib zaug txhua 10 vib nas this. Tus nqi no tuaj yeem hloov pauv tom qab raws li koj pom zoo.
Tom ntej no, tshawb rau 'random' hauv tib lub npov tshawb fawb saum cov khoom sib txuas, (Daim duab 5) thiab nrhiav 'Random Color' tivthaiv (Daim duab 6) thiab rub nws mus rau koj lub qhov rai tseem ceeb sab xis ntawm 'Clock' tivthaiv. Saib daim duab 7 thiab txuas nws los ntawm kev rub los ntawm tus lej "Tawm" mus rau "Clock" tus pin ntawm 'Random Color'
Kauj Ruam 5: Teeb Duab Sketch hauv Visuino … [txuas ntxiv]
Tam sim no zoo, txuas ntxiv qhov seem ntawm cov khoom, yog li tshawb rau 'Ramp' thiab rub, 'Ramp rau Xim Tus Nqi' (Daim Duab 1) nyob rau ntawm qhov chaw ua haujlwm rau sab xis ntawm 'Random Color' uas peb nyuam qhuav ntxiv. Hauv "Cov Khoom" rau nws nrhiav "Nqes hav" thiab hloov nws mus rau "0.5" (Daim duab 2) qhov no yuav yog kev hloov maj mam ntawm kev hloov xim. Tom qab ntawd txuas qhov "Tawm" mus rau "Hauv" ntawm 'Ramp' tivthaiv, thov saib daim duab 3. Qhov no yog nyob ntawm yeem, tabsis kuv hloov kuv li xim pib mus rau Ntshav, los ntawm qhov nco rau "Tus nqi pib"
Kauj Ruam 6: Teeb Duab Sketch hauv Visuino … [txuas ntxiv nrog Neo-Pixel Ntxiv]
Tom ntej no yog Neo-Pixel tivthaiv, tshawb rau "neo" thiab lawv yuav tsuas yog ib qho kev xaiv ntawm no, Daim Duab 1, yog li rub nws nyob nruab nrab ntawm 'Ramp' thiab Arduino board. Tam sim no, ob-nias 6on nws los nqa lub "PixelGroups" qhov rai, thiab ntawm sab xis nrhiav thiab nyem ob zaug ntawm 'Pixels'. (Duab 2) Tam sim no, 10 pixels yuav raug ntxiv los ntawm lub neej ntawd, tab sis peb yuav hloov tam sim no mus rau 2, yog li nrog lub qhov rai tseem qhib, hla mus rau "Cov Khoom" lub thawv thiab hloov "Suav Pixels" rau 2, saib Duab 3. Tam sim no koj tuaj yeem kaw "PixelGroups" thiab rub ob qhov kev sib txuas los ntawm 'Ramp Out' rau Pin [0] thiab [1] ntawm NeoPixel. Saib Daim Duab 4. Tom qab ntawd koj tuaj yeem rub qhov kev sib txuas zaum kawg los ntawm 'NeoPixel' mus rau Pin B, hauv kuv qhov xwm txheej, ntawm Arduino Board, zoo li hauv daim duab 5.
Tam sim no upload koj cov duab kos ntawm F9 Key hauv Visuino thiab tom qab ntawd rub mus rau lub rooj tsavxwm los ntawm Arduino IDE nrog CTRL+U. Tom qab ntawd koj yuav muaj qhov ua haujlwm ntawm qhov haujlwm no ib yam.
Kauj ruam 7: Ua tiav Video thiab Ua tiav
Ua si ib puag ncig nrog nws, kom pom dab tsi ntxiv koj tuaj yeem ntxiv txhawm rau txhim kho daim duab no, tom qab ntawv qhia rau kuv paub hauv Cov Lus.
Txaus siab rau !!
Pom zoo:
D.I.Y YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM LOS NTAWM SCRAPS: 4 Cov Kauj Ruam (nrog Duab)
D.I.Y YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM LOS NTAWM SCRAPS: Hnub no kuv xav qhia yuav ua li cas kom pom lub teeb pom kev zoo los ntawm lub zog xa hluav taws xob tsis siv hluav taws xob los ntawm tus txhuam txhuam hniav thiab lub tshuab solenoid valve coils uas tau khaws los ntawm scrapyard.Ua ntej pib, thov saib cov vis dis aus hauv qab no:
Txoj Kev Yooj Yim thiab Yooj Yim Los Hloov Koj Lub Xauv Screen hauv 6 Cov Kauj Ruam Yooj Yim (Windows 8-10): 7 Kauj Ruam
Txoj Kev Yooj Yim thiab Yooj Yim Los Hloov Koj Lub Xauv Screen hauv 6 Cov Kauj Ruam Yooj Yim (Windows 8-10): Xav hloov pauv yam ntawm koj lub laptop lossis PC? Xav tau kev hloov pauv hauv koj qhov chaw? Ua raws cov kauj ruam no yooj yim thiab yooj yim kom ua tiav koj tus kheej lub computer ntsuas phoo
DIY MusiLED, Music Synchronized LEDs Nrog Ib-nias Windows & Linux Application (32-ntsis & 64-ntsis). Yooj Yim Rov Ua Dua, Siv Yooj Yim, Yooj Yim rau Chaw Nres Nkoj: 3 Kauj Ruam
DIY MusiLED, Music Synchronized LEDs Nrog Ib-nias Windows & Linux Application (32-ntsis & 64-ntsis). Yooj Yim Rov Ua Dua, Siv Yooj Yim, Yooj Yim rau Chaw Nres Nkoj: Qhov haujlwm no yuav pab koj txuas 18 LEDs (6 Liab + 6 Xiav + 6 Daj) rau koj lub Rooj Tswjhwm Saib Arduino thiab txheeb xyuas koj lub khoos phis tawj Lub Suab Suab Lub suab lub sijhawm tiag tiag thiab xa lawv mus rau cov LEDs kom pom lawv raws li qhov cuam tshuam (Snare, High Hat, Kick)
YUAV UA LI CAS YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM TSHAJ PLAWS YOOJ YIM: 4 Cov Kauj Ruam
YUAV UA LI CAS YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM YOOJ YIM TSHAJ PLAWS: Nyob zoo txhua tus hauv cov lus qhia no kuv yuav qhia koj yuav ua li cas kom yooj yim " SOIL DRYNESS SENSOR ". Qhuav ntawm cov av tau txheeb xyuas siv qhov taw qhia coj. Lub teeb ci wi
YOOJ YIM YOOJ YIM TSHAJ PLAWS COMPACT LIGHT !! 3 KAUJ RUAM YOOJ YIM !!: 3 Kauj Ruam
YOOJ YIM YOOJ YIM TSHAJ PLAWS COMPACT LIGHT !! 3 KAUJ RUAM YOOJ YIM !!: Koj Yuav Tsum Tau Li Cas - Tin ntawv ci 1 AA roj teeb (qee lub roj teeb AAA yuav ua haujlwm) 1 Mini Lub Teeb Pom Kev (lub teeb siv rau feem ntau lub teeb nyem; xa mus rau daim duab) Tus Tswj (yog xav tau)