Cov txheej txheem:

Yuav Siv Buzzer HW-508 Nrog SkiiiD: 8 Kauj Ruam
Yuav Siv Buzzer HW-508 Nrog SkiiiD: 8 Kauj Ruam

Video: Yuav Siv Buzzer HW-508 Nrog SkiiiD: 8 Kauj Ruam

Video: Yuav Siv Buzzer HW-508 Nrog SkiiiD: 8 Kauj Ruam
Video: Sib Hawm Dhau (Time Passed) Music Video by: Deeda/Dib Xwb 2024, Kaum ib hlis
Anonim
Image
Image

Txoj haujlwm no yog qhia yuav siv Buzzer HW-508 (siv rau KY-006) nrog Arduino ntawm skiiiD

Ua ntej pib, hauv qab no yog cov lus qhia yooj yim rau kev siv skiiiD

www.instructables.com/id/Getting-Started-W…

Kauj ruam 1: Tua tawm SkiiiD

Xaiv Arduino UNO
Xaiv Arduino UNO

Tua tawm skiiiD thiab xaiv khawm tshiab

Kauj Ruam 2: Xaiv Arduino UNO

Xaiv ① Arduino Uno thiab tom qab ntawd nyem ② OK khawm

*Nov yog Tutorial, thiab peb siv Arduino UNO. Lwm cov laug cam (Mega, Nano) muaj cov txheej txheem tib yam.

Kauj Ruam 3: Ntxiv Cheeb Tsam

Ntxiv Cheeb Tsam
Ntxiv Cheeb Tsam

Nyem '+' (Ntxiv Cheeb Tsam khawm) txhawm rau tshawb nrhiav thiab xaiv cov khoom siv.

Kauj Ruam 4: Tshawb lossis Nrhiav Ib Cheeb Tsam

Nrhiav lossis Nrhiav Ib Cheeb Tsam
Nrhiav lossis Nrhiav Ib Cheeb Tsam

① Ntaus 'Buzzer' ntawm qhov bar tshawb lossis nrhiav Buzzer module ntawm cov npe.

Kauj ruam 5: Xaiv Buzzer

Xaiv Buzzer
Xaiv Buzzer

② Xaiv Buzzer

Kauj Ruam 6: Tus Pin Qhia thiab Kho

Pin Qhia thiab Kho
Pin Qhia thiab Kho

tom qab ntawd koj tuaj yeem pom ③ tus lej cim. (Koj tuaj yeem teeb tsa nws.)

*Cov qauv no muaj 2 tus pin los txuas

skiiiD Editor txiav txim siab qhia tus pin teeb *teeb tsa muaj

[Default Pin Indication for HW-508 (lossis KY-006) Passive Buzzer] thaum Arduino UNO

Teeb liab: 3

NC: TSIS MUAJ (Tsis tas yuav txuas)

GND: NCO

Tom qab teeb tsa tus pin, nyem ADD khawm ntawm sab xis hauv qab

Kauj Ruam 7: Kauj Ruam 7: Txheeb Ntxiv Module

Kauj Ruam 7: Txheeb Ntxiv Module
Kauj Ruam 7: Txheeb Ntxiv Module

⑤ Ntxiv Module tau tshwm sim ntawm lub vaj huam sib luag sab xis

Kauj Ruam 8: SkiiiD Code of Passive Buzzer HW-508 (lossis KY-006)

SkiiiD Code of Passive Buzzer HW-508 (lossis KY-006)
SkiiiD Code of Passive Buzzer HW-508 (lossis KY-006)

skiiiD Code yog kev paub ua haujlwm raws cov lej. Qhov no yog ua raws skiiiD cov tsev qiv ntawv.

skiiiD auto -complete feature qhia skiiID cov lej ntawm () - Qhib Buzzer ("Sau Ntawv", Octave, Ncua Sijhawm)

Piv txwv - ("C", 4, 200); = Ua si C Cim 4 octave thaum 200ms

off () - Tua Buzzer

piv txwv () - Ua suab paj nruag ua piv txwv.

Muaj ob daim ntawv sau ua ntej ntawm cov nkauj. Muab 1 lossis lwm tus lej rau ntawm kab lus.

Pom zoo: