Cov txheej txheem:

Cine Sided Digital Tsuav: 7 Kauj Ruam
Cine Sided Digital Tsuav: 7 Kauj Ruam

Video: Cine Sided Digital Tsuav: 7 Kauj Ruam

Video: Cine Sided Digital Tsuav: 7 Kauj Ruam
Video: Txiv tsev ua dev nqov ntuj.10/26/2017 2024, Kaum ib hlis
Anonim
Cine Sided Digital Tsuav
Cine Sided Digital Tsuav

Siv:

Kuv tau ntxiv ob lub LEDs ntxiv.

Cov Lus Qhia yuav qhia koj yuav ua li cas thiaj tsim tau lub tswb tshwj xeeb digital uas tuaj yeem nthuav tawm tus lej ib mus rau cuaj los ntawm kev siv Arduino. Nws yog txoj haujlwm yooj yim, thiab nws haum rau cov pib thiab cov uas xav pib nrog Arduino.

Kauj Ruam 1: Yam Koj Xav Tau

Yam Koj Xav Tau
Yam Koj Xav Tau
Yam Koj Xav Tau
Yam Koj Xav Tau

Qhov:

Arduino 9x LEDs ntawm txhua yam

Ib 10k Resistor

9x 220 lossis 330 Resistor

Khawm me ntsis

Cov qhob cij

Qee cov xov hlau rau lub khob cij

Cov Cuab Yeej:

Tus programmer Arduino

Usb Cable A-B.

Kauj Ruam 2: Muab lub LED tso rau ntawm Breadboard

Muab cov LED tso rau ntawm Breadboard
Muab cov LED tso rau ntawm Breadboard
Muab cov LED tso rau ntawm Breadboard
Muab cov LED tso rau ntawm Breadboard

Muab cov LEDs zoo li 3x3 square. Nws yog qhov nyuaj tiag tiag los nrhiav qhov teeb tsa uas raug yam tsis muaj lub teeb ci LED. Txawm li cas los xij, muaj cov duab yooj yim uas qhia qhov twg koj yuav tsum tso lub luv luv ntawm LEDs (cathodes) thiab qhov twg koj yuav tsum tso tus ceg ntev (anode). Kuv muab lawv faib ua 6 pawg. Thawj pab pawg yog sab saud sab laug thiab sab xis ib sab. Pawg thib ob yog nruab nrab txoj cai ib thiab nruab nrab sab laug. Pab pawg thib peb yog sab xis ib sab thiab sab laug ib sab. Pawg thib plaub yog ib nrab. Pawg thib tsib yog ib nrab sab saud. Thiab pawg kawg yog qis dua ib nrab.

Kauj Ruam 3: Tso tus Resistor

Tso tus Resistor
Tso tus Resistor

Txuas tag nrho cov cathodes ntawm LEDs rau hauv av nrog resistors.

Kauj Ruam 4: Tso lub Khawm

Muab khawm
Muab khawm

Muab lub laub khawm rau ntawm lub khob cij thiab txuas nws hauv av nrog tiv thaiv.

Kauj Ruam 5: Txuas Anode Nrog Arduino

Txuas Anode Nrog Arduino
Txuas Anode Nrog Arduino
Txuas Anode Nrog Arduino
Txuas Anode Nrog Arduino

Txuas rau hauv av Arduino nrog kab hauv av ntawm lub khob cij.

Txuas cov LEDs rau Arduino. Qhov no yog qhov nyuaj heev. Txawm li cas los xij, tseem muaj daim duab yooj yim rau qhov ntawd.

Txuas 5v ntawm Arduino nrog lub pob, thiab txuas lub pob nrog tus pin 6 ntawm Arduino … ua tib zoo saib hauv ntu no thiab ua raws daim duab.

Kauj ruam 6: Code

create.arduino.cc/editor/erniechen904/7f5e26d6-785b-40b1-aac0-67f6c387d4c1/preview

Pom zoo: