Cov txheej txheem:

LED Sequential Light Nrog 7 Txawv Txaus Nyiam!: 8 Cov Kauj Ruam
LED Sequential Light Nrog 7 Txawv Txaus Nyiam!: 8 Cov Kauj Ruam

Video: LED Sequential Light Nrog 7 Txawv Txaus Nyiam!: 8 Cov Kauj Ruam

Video: LED Sequential Light Nrog 7 Txawv Txaus Nyiam!: 8 Cov Kauj Ruam
Video: Yog zoo ces lawv yuav lawm 11/13/2018 2024, Hlis ntuj nqeg
Anonim
Image
Image

Txoj haujlwm no suav nrog 7 qhov cuam tshuam sib txawv ntawm cov teeb ua ntu zus uas yuav raug npog tom qab. Nws yog kev tshoov siab los ntawm ib tus tsim kuv tau pom hauv Youtube ob peb hnub dhau los, thiab kuv pom nws txias heev yog li kuv xav qhia qhov no rau koj thiab ua ib qib zuj zus los ntawm kev qhia ib qib. Nws yog qhov yooj yim heev thiab tuaj yeem ua tiav hauv ib teev. Kuv yuav hais tias qhov no yog qhov lom zem tiag tiag thiab txoj haujlwm yooj yim rau cov pib tshiab, thiab koj tuaj yeem ua rau muaj kev txaus siab rau qee tus ntawm koj cov phooj ywg los ntawm kev qhia lawv qhov no. Tsuav koj ua raws cov kauj ruam, nws yuav tsum yooj yim rau rov ua dua, lossis tseem txhim kho nws.

Kauj Ruam 1: Cov Khoom Siv Hluav Taws Xob+Cov Khoom+Cov Cai

Lub Circuit Court puv+Cov Khoom+Txoj Cai
Lub Circuit Court puv+Cov Khoom+Txoj Cai

Yog tias koj paub nrog Arduino thiab tsis xav tau kev qhia ib qib zuj zus, qhov no yog tag nrho cov Circuit uas koj tsuas xav tau.

Nov yog cov ntaub ntawv:

1 × Arduino board (Kuv yuav siv Leonardo hauv qhov ua qauv qhia.)

1 × Breadboard

12 × 5mm Coj (Kuv xav qhia kom muaj txhua yam xim zoo ib yam lossis ua qauv nrog cov xim sib txawv)

12 × Resistor (220Ω)

12 × Jumper xov hlau (M)

Nov yog cov cai:

create.arduino.cc/editor/zheyuu/3bb8796c-f656-4a9e-8dfe-cbf6c239e68a/preview

Kauj Ruam 2: Teeb LED

LED Teeb
LED Teeb
LED Teeb
LED Teeb

Muab lub teeb coj los tso rau saum daim duab saum toj no. Txuas sab tsis zoo (luv luv) rau kab zoo thiab txuas txuas zoo (qhov ntev) ib kab saum toj qhov uas koj txuas rau sab tsis zoo ntawm LED. Sim ua qhov khoob ntawm cov coj teeb sib npaug. Kuv ua qhov zoo tshaj plaws ntawm no. Kuv xav hais kom txuas sab laug coj teeb mus rau kab 55 thiab sab xis rau kab naj npawb 11 kom txhua qhov khoob ntawm cov teeb coj yuav yog 3 qhov. Koj tuaj yeem luam qhov kuv tau ua hauv kuv tus kheej Circuit. Tsis tas li, tej zaum koj xav siv txhua yam xim tib yam ntawm LED teeb (Kuv siv tag nrho daj) los tsim cov nyhuv. Lossis koj tuaj yeem siv cov xim sib txawv los tsim cov qauv.

Kauj Ruam 3: Txuas cov Resistors

Txuas cov Resistors
Txuas cov Resistors

Raws li tau hais los saum toj no, txhua yam koj yuav tsum ua nrog cov neeg tawm tsam yog txhawm rau txuas qhov kawg ntawm LED teeb mus rau lwm sab ntawm lub khob cij rau tom qab txuas. Yuav tsum tsis muaj teeb meem loj ntawm no.

Kauj Ruam 4: Txuas Cov Hluav Taws Xob rau Txhua Lub Teeb LED

Txuas Cov Hluav Taws Xob rau Txhua Lub Teeb LED
Txuas Cov Hluav Taws Xob rau Txhua Lub Teeb LED
Txuas Cov Hluav Taws Xob rau Txhua Lub Teeb LED
Txuas Cov Hluav Taws Xob rau Txhua Lub Teeb LED

Yog tias koj tab tom noj kuv cov lus pom zoo txuas txuas sab laug LED teeb mus rau kab 55 thiab txuas rau sab xis LED teeb mus rau kab lej 11, zoo rau koj, koj tuaj yeem luam daim phiaj uas kuv tau ua ntawm kuv lub rooj noj mov thiab txuas txhua qhov wite los ntawm cov hauv qab no:

D13 rau kab zauv 55

D12 rau kab naj npawb 51

D11 rau kab naj npawb 47

D10 rau kab lej 43

D9 rau kab naj npawb 39

D8 rau kab zauv 35

D7 rau kab naj npawb 31

D6 rau kab naj npawb 27

D5 rau kab zauv 23

D4 rau kab naj npawb 19

D3 rau kab lej 15

D2 rau kab zauv 11

Tam sim no koj yuav tsum pom koj muaj kev sib koom ua ke zoo ib yam, tsis zoo li lub Circuit Court rau kev ua qauv qhia uas txhua lub xov hlau sib tshuam sib tshuam.

Kauj Ruam 5: Txuas GND mus rau Qhov Zoo Tshaj Plaws LED Teeb

Txuas GND mus rau Qhov Zoo Tshaj Kab LED Teeb
Txuas GND mus rau Qhov Zoo Tshaj Kab LED Teeb

Kuv tab tom txuas GND mus rau sab xis ntawm txoj kab zoo kom tshem tawm peb qhov chaw ntau ntxiv rau cov teeb ci LED. Thiab qhov ntawd yog nws rau hauv Circuit Court, tam sim no peb yuav plam mus rau hauv ntu coding.

Kauj Ruam 6: Txoj Cai

Nov yog tag nrho cov cai ntawm txoj haujlwm no. Kuv tau ntxiv cov lus piav qhia rau yuav luag txhua qhov uas tsis meej pem nrog rau cais txhua qhov cuam tshuam. Qhov no yuav ua rau kev txhim kho ntawm txoj haujlwm no yooj yim dua rau koj.

Kauj ruam 7: Ua tiav

Ua tiav!
Ua tiav!
Ua tiav!
Ua tiav!
Ua tiav!
Ua tiav!

Tam sim no koj tau ua tiav nrog txoj haujlwm, muaj kev lom zem nrog nws. Koj tseem tuaj yeem ntxiv kev kho kom zoo nkauj rau nws kom nws zoo nkauj. Kuv tau ua txoj haujlwm tsis txaus ntseeg tiag tiag los ntawm kev txiav ib lub thawv qub rau hauv kab kom pom kev thiab npog nws nrog ntawv. Kuv ntseeg tias koj tuaj yeem ua tau zoo dua kuv.

Kauj Ruam 8: Cov Lus Qhia Txhim Kho

Ib txwm muaj qee yam los txhim kho hauv qhov project Arduino. Tej zaum koj tuaj yeem txhim kho nws rau kuv thaum koj rov tsim txoj haujlwm no. Nov yog qee qhov kuv lub tswv yim:

  1. Ntxiv cov teebmeem
  2. Tsim cov qauv nrog cov xim sib txawv ntawm cov teeb
  3. Ntxiv ntau lub teeb coj
  4. Ua kom zoo nkauj zoo nkauj (Muab tso rau ntawm koj lub tsheb kauj vab, tsheb, chav dej, lossis txhua yam uas koj tuaj yeem xav txog)
  5. Txuas cov xov hlau mus rau lub teeb coj los rub lawv tawm kom koj tsis pom daim ntawv qhia zaub mov

Pom zoo: