Cov txheej txheem:

LED Tsuav Nrog Buzzer: 6 Kauj Ruam
LED Tsuav Nrog Buzzer: 6 Kauj Ruam

Video: LED Tsuav Nrog Buzzer: 6 Kauj Ruam

Video: LED Tsuav Nrog Buzzer: 6 Kauj Ruam
Video: Женская Casio G-Shock GMDS6900MC-7 | G Shock S Series 6900 Белый Топ 10 вещей С... 2024, Kaum ib hlis
Anonim
Image
Image
Sib dhos LEDs
Sib dhos LEDs

Cov lus qhia no yuav qhia koj yuav ua li cas thiaj ua lub tsuav LED nrog lub suab nrov thaum nias lub pob.

Thawj qhov chaw:

Khoom siv

-jumper xov hlau

-7 LEDs

-1 daim ntawv qhia zaub mov

-1 Arduino Leonardo

-1 USB cable rau Arduino

-1 khawm

-1 lub suab nrov

-1 tus resistor

Kauj Ruam 1: Teeb LEDs

Teem koj cov LEDs hauv H tsim qhia saum toj no. Kev tsim H yuav ua kom ntseeg tau tias koj qhov txiaj ntsig zoo li tsuav.

Kauj Ruam 2: Txuas cov LEDs

Tam sim no siv cov xov hlau jumper los txuas cov LEDs. Txuas:

LED 1 pin 1

LED 2 hauv tus pin 2

LED 3 hauv tus pin 3

LED 4 pin 7

LED 5 hauv tus pin 4

LED 6 hauv tus pin 5

LED 7 hauv tus pin 6

Thiab txuas txhua LEDs rau cov channel tsis zoo.

Kauj ruam 3: Lub Buzzer

Txuas qhov zoo ntawm tus zauv mus rau tus pin 11 thiab lwm ceg rau qhov tsis zoo.

Kauj ruam 4: Khawm

Khawm
Khawm

Ua raws li qhov tsim tawm hauv daim duab no. Cov kab grey mus rau 5V tus pin thiab kab kab kab liab mus rau tus pin 8.

Kauj ruam 5: Coding

Nov yog tus lej kuv siv rau txoj haujlwm no:

create.arduino.cc/editor/vin0617/e85b4ec8-…

Kauj ruam 6: Qhib & Ua tiav

Qhwv thiab kho koj cov haujlwm kom nws zoo dua yog tias koj xav tau. Yog tag nrho!

Pom zoo: