Cov txheej txheem:

Yuav Siv PowerLed3W Nrog SkiiiD: 9 Kauj Ruam
Yuav Siv PowerLed3W Nrog SkiiiD: 9 Kauj Ruam

Video: Yuav Siv PowerLed3W Nrog SkiiiD: 9 Kauj Ruam

Video: Yuav Siv PowerLed3W Nrog SkiiiD: 9 Kauj Ruam
Video: Siv Yis - Nraugnoog 2024, Kaum ib hlis
Anonim
Image
Image

Txoj haujlwm no yog qhia yuav siv ntu 3642BH nrog Arduino ntawm skiiiD

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

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 'Lub Hwj Chim' ntawm qhov bar tshawb lossis pom PowerLed 3W ntawm cov npe.

Kauj ruam 5: Xaiv PowerLed3W

Xaiv PowerLed3W
Xaiv PowerLed3W

② Xaiv PowerLed3W Module

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 3 tus pin los txuas

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

[Default Pin Indication for PowerLed3WModule] thaum Arduino UNO

S: 3

+: 5V

GND: NCO

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

Kauj Ruam 7: Txheeb Ntxiv Module

Txheeb ntxiv Module
Txheeb ntxiv Module

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

Kauj Ruam 8: SkiiiD Code ntawm PowerLed3W Module

SkiiiD Code ntawm PowerLed3W Module
SkiiiD Code ntawm PowerLed3W Module

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

rau ()

"Qhib lub LED."

tawm ()

"Tua lub LED."

hloov ()

"Toggle. Hloov tig lub xeev kom tawm lossis hloov ua lwm yam. / N Lub teeb ci yuav raug siv thaum LED qhib. (Qhov ci ci: 0 ~ 255)"

ntsais muag ()

"Blink LED. / NVariable ncua sij hawm: Lub sijhawm sib nrug ntawm ntsais LED, lub neej ntawd: 1, 000ms / nVariable ci ntsa iab: Hloov qhov ci ci ntawm LED, lub neej ntawd: 100 (Qhov ci ntau: 0 ~ 255)."

fadeIn ()

Maj mam nce qhov kev siv ntawm lub teeb LED thaum lub sijhawm sib nrug. / N Lub sijhawm hloov pauv: Lub sijhawm sib nrug kom txog thaum LED nce qhov kev siv mus rau qhov siab tshaj, lub neej ntawd: 1, 000ms. / NVariable ci ntsa iab: Hloov qhov ci ntawm LED, lub neej ntawd: 100.

fadeOut ()

"Maj mam txo qhov siv ntawm lub teeb LED thaum lub sijhawm sib nrug. / N Lub sijhawm hloov pauv: Lub sijhawm sib nrug kom txog thaum LED nce qhov kev siv mus rau qhov tsawg kawg, lub neej ntawd: 1, 000ms. / NVariable ci ntsa iab: Hloov qhov ci ntawm LED, lub neej ntawd: 100."

Kauj Ruam 9: Tiv tauj thiab tawm tswv yim

Peb tab tom ua haujlwm ntawm cov tsev qiv ntawv thiab cov laug cam. Xav tias dawb siv nws thiab tawm tswv yim rau peb, thov. Hauv qab no yog kev sib cuag

email: [email protected]

hauv twitter:

Youtube:

Cov lus pom zoo ib yam!

Pom zoo: