Cov txheej txheem:

Tog LED Kab: 3 Kauj Ruam
Tog LED Kab: 3 Kauj Ruam

Video: Tog LED Kab: 3 Kauj Ruam

Video: Tog LED Kab: 3 Kauj Ruam
Video: Tus Neeg Ruam - R-Lin Thoj | New Song [ Official MV ] Nkauj Tawm Tshiab 2023 Hmong Song 2023 2024, Kaum ib hlis
Anonim
Party LED Kab
Party LED Kab
Party LED Kab
Party LED Kab
Party LED Kab
Party LED Kab
Party LED Kab
Party LED Kab

Koj puas tau xav tau lub teeb txias ntawm ib tog neeg hauv tsev, stroboscope lossis teeb liab tus neeg caij nkoj? Nov yog qhov chaw rau koj kom kawm paub tsim kho Arduino tswj Party LED kab. Koj tsuas yog xav tau ob peb yam los tsim lub teeb nrig no, thiab muaj tag nrho pawg siv rau nws. Nws tuaj yeem ci hauv lub qhov cub zoo li lub tswm ciab ntawm txhua qhov kev ua si sab nraum zoov. Tej zaum koj yuav muaj qee qhov me me, uas koj tuaj yeem siv rau txoj haujlwm no. Koj tuaj yeem sau koj tus kheej lub teeb qauv lossis siv cov uas kuv tsim.

Khoom siv

Yam uas koj xav tau:

- Arduino board (Kuv siv nano clone, koj tuaj yeem siv yuav luag txhua yam)- WS2812B qhov chaw nyob RGB LED sawb (xav tau qhov ntev, kuv muaj 29 LEDs)- 5V phab ntsa adapter (9V zoo ib yam)- Aluminium LED profile (xav tau ntev)- Pushbutton (ib txwm qhib)- Lub thawv hlws ris (ib qho me me)- Hlau- Heatshrink tubing (yeem)

Yam uas koj yuav siv:

- Soldering hlau thiab cov laug- Scalpel lossis riam siv hluav taws xob- Cov cua sov lossis rab ntais- Sab tshuab txiav- Hlau pom lossis tes tuav

Kauj ruam 1: Tsim

Tsim
Tsim
Tsim
Tsim
Tsim
Tsim

Ua ntej koj yuav tsum txiav txim siab qhov ntev ntawm koj kab teeb. Nws tuaj yeem yog ib lub 'meter', ib lub tiaj, kuv qhov siab txog 50 cm. Koj tuaj yeem txiav cov hlua LED ntawm ib qho LEDs. Kuv muaj 52cm ntev txhuas profile, yog li tsuas yog 29 LEDs haum rau hauv. Yog tias koj txiav txim siab qhov ntev ntawm kab txaij, txiav nws. Tom qab ntawd koj yuav tsum txiav aluminium profile. Nws raug qhia kom txiav qhov profile me ntsis ntev dua (kwv yees li 2cms ntev dua), yog li yuav muaj qee chav rau cov xov hlau thiab daim kawg. Siv daim kab xev ob sab nyob tom qab ntawm kab hlua LED kom ruaj ntseg rau hauv qhov profile.

Koj yuav xav tau 3 xov hlau rau kab txaij LED.- 5V- GND- Cov Ntaub Ntawv InSolder cov 3 xov hlau no rau kab txaij. Nco ntsoov txhawm rau txhawm rau sab sab ntawm lub pluaj (Ib daim duab peb sab me me qhia qhov kev taw qhia ntawm cov ntaub ntawv ntws).

Txiav lossis tho qhov rau sab saum toj ntawm lub thawv sib txuas, yog li koj lub pob haum zoo (lossis yuav luag zoo (lossis tsis zoo))). Siv ob txoj hlua txuas rau lub khawm txuas. Koj tuaj yeem siv cov raj cua sov lossis kab xev hluav taws xob ntawm no.

Txiav lossis tho 2 qhov me me rau ntawm ob sab ntawm lub thawv, yog li peb tuaj yeem nqa lub zog thiab cov xov hlau los ntawm LEDs. Cov laug txuas rau cov xaim xaus. (Siv poj niam lub taub hau yog koj tseem siv Nano).

Txuas cov xov hlau txuas rau phab ntsa rau GND thiab VIN. Yog tias koj siv 5V kev tswj fais fab, koj tuaj yeem txuas nws mus rau 5V hloov VIN. Txuas lub laub khawm rau GND thiab D4 (koj tuaj yeem siv lwm tus GPIO pins, yog tias koj hloov kho txoj cai). Txuas cov hlua LED mus rau GND, 5V thiab D3 (koj tuaj yeem siv lwm tus GPIO koob, yog tias koj hloov kho txoj cai). Koj yuav tsum tau siv GND tus pin ntawm ISP lub taub hau yog tias koj khiav tawm ntawm GND pins.

Koj tuaj yeem ruaj ntseg tus tswj nrog h… nrog hhh….hoooot…..gl… glu… kua nplaum kub. Lau li koj tuaj yeem tso nws li nws yog (ib yam li kuv tau ua qhov no).

Kauj ruam 2: Coding

Cov kauj ruam no yuav tsum yooj yim haum. Muaj ntau ntau cov lus qhia ntawm Arduino lub cajmeem. Koj yuav xav tau tus tsav tsheb rau Arduino nano clone los ua haujlwm, tab sis koj tuaj yeem nyeem ntawm cov ncauj lus no nyob ib puag ncig ntawm no.

Zaj dab neeg luv luv:- Rub lub tsev qiv ntawv thiab chaws- Tsiv lub tsev qiv ntawv thiab chaws mus rau hauv daim nplaub tshev raug cai- Txuas- Upload- ???- Cov txiaj ntsig Koj tuaj yeem hloov qhov tsis nyob hauv kuv tus lej kom haum rau koj cov kev xav tau, lossis koj tuaj yeem sau koj tus qauv. Lossis koj tuaj yeem rub tawm qee cov qauv tshiab los ntawm lwm qhov kev qhia. Lossis koj tuaj yeem siv lub tsev qiv ntawv piv txwv. Los yog … Koj tau txais lub tswv yim.

Kauj ruam 3: Ua tiav

Aaaaaa thiab koj ua tiav. Tau kawg unconnect koj suav clone lossis koj zoo nkauj Arduino los ntawm koj lub computer, ntsaws rau hauv phab ntsa adapter thiab sim nws. Nrog lub laub khawm koj tuaj yeem xaiv koj qhov program. Nws tuaj yeem yog stroboscope, tus neeg caij nkoj lub teeb, teeb zaj sawv, qhov cub, taws tswm ciab, lossis ib yam dab tsi ua dag. Yog tias koj siv kuv tus lej, nws yuav ua rau lub cev qeeb thiab nrawm dua, lub qhov cub taws, tswm ciab, teeb liab thiab ntsuab sib tw (nws yog peb lub teeb ci rau Christmas) thiab lub qhov cub tawg, uas yuav tsis tuag, tab sis yuav tsis muaj qhov kaj ntau kawg.

Nws tsis yog lus qhia ntev, tab sis nws yuav yog qhov lom zem rau tus pib.

Pom zoo: