Cov txheej txheem:

DIY Arduino LED Tsuav: 5 Kauj Ruam (nrog Duab)
DIY Arduino LED Tsuav: 5 Kauj Ruam (nrog Duab)

Video: DIY Arduino LED Tsuav: 5 Kauj Ruam (nrog Duab)

Video: DIY Arduino LED Tsuav: 5 Kauj Ruam (nrog Duab)
Video: How to make a STEEL MARBLE TRACK with basic tools! step by step guide 2024, Kaum ib hlis
Anonim
DIY Arduino LED Tsuav
DIY Arduino LED Tsuav

Ua si board game uas yuav tsum tau tsuav? Tsis ntshai, koj tuaj yeem ua koj tus kheej hauv tsawg dua 15 feeb! Koj tsuas yog xav tau qee qhov feem ntau, ua siab ntev me ntsis thiab 35-kab Arduino code!

Txhua qhov siv tau yog los ntawm Kuman's Arduino UNO Starter Kit

Kauj Ruam 1: Qhov Yuav Tsum Tau

Qhov Yuav Tsum Tau
Qhov Yuav Tsum Tau
  • 16 Jumper Xov
  • Ib lub pob
  • Ib pawg Arduino
  • Ib daim ntawv qhia zaub mov
  • Ib tug USB cable
  • 6 coj (xim tsis muaj teeb meem)
  • 6 220 ohm resistors
  • Ib 10k ohm resistor

Allchips yog cov khoom siv hluav taws xob hauv online pabcuam platform, koj tuaj yeem yuav txhua yam khoom siv los ntawm lawv

Kauj ruam 2: Txuas Khawm

Txuas khawm
Txuas khawm

Ua ntej, cia pib nrog khawm. Ntawm txhua qhov xovxwm, "lub tsuav raug dov" (tsim tus lej tsis raug thiab teeb pom kev zoo ntawm tus lej coj) Lob lub pob thiab ntxig nws rau hauv lub khob cij thiab xaiv ib qho ntawm nws sab. Koj yuav pom 2 tus pin. Ib qho ntawm sab laug (koj tuaj yeem sib pauv lawv ib yam) txuas rau hauv av ntawm Arduino (dhau ntawm lub khob cij) nrog 10k resistor. Txuas tib kab rau tus lej digital 13 ntawm Arduino (txhais hauv txoj cai, tuaj yeem hloov pauv). Tus pin ntawm sab xis ntawm lub pob txuas rau 5V. Koj tuaj yeem siv daim duab saum toj no rau kev siv.

Kauj Ruam 3: Txuas Cov Led

Txuas cov Led
Txuas cov Led
Txuas cov Led
Txuas cov Led
Txuas cov Led
Txuas cov Led

Qhov no yog qhov nyuaj tshaj plaws vim tias qhov kev tsis sib haum uas koj tau nrog tom qab yog li liab qab nrog kuv thiab txuas ntxiv mus. Kuv xav tias koj twb tau ntxig cov coj mus rau hauv lub khob cij. Yog tsis yog, tam sim no nws yog lub sijhawm zoo tshaj plaws;)

Kuv tsis paub yuav ua li cas koj yuav tso lawv tab sis qhov yooj yim, ua raws txoj cai dav dav - txhua ntawm 6 cathodes yuav tsum txuas nrog ua ke thiab tom qab ntawd mus rau hauv av (GND). Saib cov duab saum toj no yog tias koj muaj teeb meem!

Tam sim no, peb yuav tsum txuas cov anodes. Cia kuv piav qhia koj: koj yuav tsum txuas rau lwm tus coj ntawm txhua tus coj mus rau tus lej digital sib xws ntawm Arduino, txhua tus siv 220 ohm resistor! Kuv tab tom hloov mus rau lwm qhov kawg ntawm cov neeg tawm tsam mus rau qee kab khoob ntawm lub khob cij uas tom qab ntawd txuas nrog cov pins siv cov xov hluav taws xob.

Kuv pib txuas lawv los ntawm hauv qab sab laug coj mus rau tus pin 2, tom ntej no - rau tus pin 4, txoj cai ib - rau tus pin 6 thiab ntawm kab saum toj no, pib ntawm sab xis mus rau sab laug.

Kauj Ruam 4: Tiav Touches

Tiav Touches
Tiav Touches

Txuas lub zog fais fab ntawm lub khob cij rau koj Arduino. Tom qab ntawd, ntsaws rau hauv pawg thawj coj saib thiab xa cov cai uas kuv tau sau, uas tuaj yeem pom ntawm no. Tseeb hauv siab, tsis muaj ib yam dab tsi hauv ntiaj teb uas peb nyob hauv yog qhov xwm txheej! Txawm tias tus lej "random". Yog li tau txais cov lej zoo ib yam hauv ib kab yog qhov ua tau! Kuv tau sim kho qhov no hauv cov cai, tab sis nws tsis tuaj yeem ua tiav!

Pom zoo: