Cov txheej txheem:

Arduino Blue LED Tsuav: 8 Kauj Ruam
Arduino Blue LED Tsuav: 8 Kauj Ruam

Video: Arduino Blue LED Tsuav: 8 Kauj Ruam

Video: Arduino Blue LED Tsuav: 8 Kauj Ruam
Video: $600 NYIAJ PAB CA * $3600 CHILD TAX * BIDEN SPEECH * INDIA KAB MOB HNYAV * TOP NEWS+ 04/29/2021 2024, Hlis ntuj nqeg
Anonim
Arduino Blue LED Tsuav
Arduino Blue LED Tsuav

Ua tsaug rau nick_rivera rau qhov credit

www.instructables.com/id/Arduino-Dice/

Nov yog Arduino tsuav uas tuaj yeem siv tau hauv hom kev ua si hauv pawg thawj coj saib thiab cov lej tau tshwm sim tsis raug.

Kauj ruam 1: Cov ntaub ntawv

Koj yuav xav tau dab tsi: 18 Jumpers

7 LEDs (Kuv siv xiav)

Pushbutton

Resistor (Kuv siv 100ohm, 10 ohm yuav ua haujlwm ib yam)

Solderless breadboard

Arduino Leonardo (+usb cable rau kev txuas)

Cov Cuab Yeej:

Khoos phis tawj

Shoebox

Riam kom khawb qhov

Daim kab xev

Kauj Ruam 2: Teem cov LEDs

Teem cov LEDs
Teem cov LEDs

Pib npaj lawv mus rau ntawm lub rooj tsavxwm, muaj qhov tsis zoo ntawm LEDs taw tes rau sab laug.

LED 1 mus nruab nrab ntawm tus pin (1-, 2+)

LED 2 mus rau (5-, 6+)

LED 3 ntawm (9-, 10+)

LED 4, nyob nruab nrab, yuav tsum tau ncab nruab nrab ntawm (4-, 7+).

3 LEDs kawg mus ncaj qha hauv qab thawj 3 LEDs, tab sis nyob rau lwm sab ntawm lub khob cij.

Kauj Ruam 3: Txuas cov LEDs rau hauv av

Txuas cov LEDs rau hauv av
Txuas cov LEDs rau hauv av

Coj koj cov neeg dhia thiab txuas txhua qhov tsis zoo (-) sab ntawm LEDs rau hauv av tsheb nqaj hlau.

Kauj Ruam 4: Jumpers Txuas rau Arduino

Jumpers Txuas rau Arduino
Jumpers Txuas rau Arduino

Tawm koj cov neeg dhia dhia loj, thiab tso lub jumper mus rau txhua qhov zoo (+) sab ntawm LEDs. Nws yog qhov yooj yim dua yog tias koj tso xim rau cov lej dhia, nws yuav pab tom qab. Tsis tas li, txuas lub jumper loj rau hauv av tsheb nqaj hlau, thiab uas yuav txuas rau hauv av ntawm Arduino.

Tam sim no, peb txuas cov dhia mus rau Arduino board nws tus kheej.

LED1/Tus Pin 12

LED2/Pin ~ 11

LED3/Pin ~ 10

LED4/Pin ~ 9

LED5/Tus Pin 8

LED6/Tus Pin 7

LED7/Pin ~ 6

GND/GND: aw

Kauj ruam 5: Lub Pushbutton

Lub Pushbutton
Lub Pushbutton

Tam sim no, peb txuas lub laub khawm. Pib los ntawm kev tso lub pob loj thiab dub rau ntawm lub rooj tsavxwm. (saib daim duab kom nkag siab ntxiv).

Kauj Ruam 6: Arduino Code

Arduino Txoj Cai
Arduino Txoj Cai

create.arduino.cc/editor/albertliu123/1881…

Kuv hloov lub sijhawm ncua ntawm 5 vib nas this mus rau 1 thib ob.

Kauj Ruam 7: Teeb Lub Tawb

Teem Cage
Teem Cage

Npaj ib lub tsom iav thiab rab riam txhawm rau khawb lub qhov rau LEDs thiab lub laub khawm. Ceev faj thaum koj txiav lub thawv. Koj tsis xav ua phem rau koj tus kheej !!!

Kauj ruam 8: Daim Video

Yees duab!
Yees duab!

Txuas:

Pom zoo: