Cov txheej txheem:

LED Christmas Teeb (nrog On/Off): 3 Kauj Ruam
LED Christmas Teeb (nrog On/Off): 3 Kauj Ruam

Video: LED Christmas Teeb (nrog On/Off): 3 Kauj Ruam

Video: LED Christmas Teeb (nrog On/Off): 3 Kauj Ruam
Video: DIY 3D star|How to make 3d star at home|DIY paper Star|3d star with paper|Christmas decoration ideas 2024, Kaum ib hlis
Anonim
LED Christmas Teeb (nrog On/Off)
LED Christmas Teeb (nrog On/Off)

Txoj haujlwm no yog hloov kho

Khoom siv

9 LED teeb qhov muag (random lossis xim)

10 220-ohm resistors

Arduino Leonardo

USB cable

12 M-M xov hlau

Ib lub pob

Ib qho Breadboard

Kauj Ruam 1: Tsim Koj Lub Teeb thiab Khawm

Tsim Koj Teeb thiab Khawm
Tsim Koj Teeb thiab Khawm
Tsim Koj Teeb thiab Khawm
Tsim Koj Teeb thiab Khawm

Kuv ua raws kuv lub teeb pom kev zoo hauv kab ncaj, tawm ntawm qhov nruab nrab ntawm txhua lub teeb kom lawv tsis sib tsoo. Rau cov teeb pom kev zoo ntawm LED, Kuv ntseeg tias siv 220-ohm resistor haum rau kuv lub qhov muag vim tias cov teeb ci LED tau ci dhau thaum siv lwm qhov tsis muaj zog tiv taus. Ib qho ntxiv, kuv tau hloov LED lub teeb xim rau xim liab, ntsuab, thiab dawb, uas kuv ntseeg tias muab ntau dua ntawm Christmas vibe. Tom qab ua haujlwm nrog lub teeb, txuas lub pob rau ntawm lub khob cij, txuas ib ntawm ob txhais ceg ntawm lub pob rau 5V thiab lwm ceg mus rau txoj kev tsis zoo suav nrog 220-ohm resistor ib yam nkaus (raws li daim duab qhia).

Kauj ruam 2: Hloov kho lossis Muab Tshuaj Txhuam

Hloov kho lossis Muab Tshuaj Txhuam
Hloov kho lossis Muab Tshuaj Txhuam

Tom qab tsim lub teeb thiab khawm, qhib daim ntawv thov Arduino thiab muab cov lej no tso rau nws.

Txog kuv qhov kev hloov kho, kuv tau ntxiv yog yog/lwm txoj cai hauv ntu ntu nrog teeb tsa ntawm cov tswv yim ntawm D2, uas yog qhov uas kuv khawm txuas nrog ib yam nkaus. Nrog qhov kev hloov pauv no, tus neeg siv yuav tuaj yeem khiav lub teeb thaum lawv xav tau los ntawm nias lub pob. Txoj kev no, peb tuaj yeem txuag lub zog thiab tiv thaiv kev siv lub zog tsis xav tau.

Pom zoo: