Cov txheej txheem:

LED qhib lub suab: 8 Kauj Ruam
LED qhib lub suab: 8 Kauj Ruam

Video: LED qhib lub suab: 8 Kauj Ruam

Video: LED qhib lub suab: 8 Kauj Ruam
Video: Tswv Yexus lub neej thaum pib txug thaum xaus 2024, Hlis ntuj nqeg
Anonim
Lub suab qhib LEDs
Lub suab qhib LEDs

Webduino siv Chrome internet browser los tswj txhua yam ntawm cov khoom siv hluav taws xob, yog li peb yuav tsum muaj peev xwm siv tau tag nrho lwm cov haujlwm uas Chrome tau muab. Hauv qhov piv txwv no peb yuav siv Chrome's Speech API. Siv Google lub suab lees paub, peb tuaj yeem tswj tau lub teeb ci LED. Tib txoj hauv kev tuaj yeem siv nrog kev xa tawm, tso cai rau peb tswj lub teeb, kaw qhov rooj, lossis khoom siv hauv tsev.

Cov ntawv nyeem tag nrho ntawm txoj haujlwm no:

Webduino Blockly:

Kauj Ruam 1: Kev thaiv thiab xyaum

Kev tiv thaiv thiab kev kho mob
Kev tiv thaiv thiab kev kho mob

Cov ceg ntev mus rau qhov muaj peev xwm loj (pins uas muaj tus lej) thiab ceg luv mus rau qhov muaj peev xwm qis (GND). Txog qhov kev qhia no, txuas txuas ceg ntev dua rau 10 thiab ceg luv dua rau GND.

Kauj Ruam 2: Qhib Webduino Blockly thiab Siv Web Demo Area

Qhib Webduino Blocky Editor, thiab nyem rau ntawm "Web Demo Area" khawm, nyem rau ntawm cov ntawv qhia zaub mov nco thiab xaiv "Qhia Cov Ntawv".

Kauj Ruam 3: Muab "Pawg Thawj Coj" rau hauv Chaw Ua Haujlwm, Sau lub Npe ntawm Pawg Thawj Coj. Tso qhov "LED" Thaiv rau hauv Pawg

Qhov chaw a
Qhov chaw a

Kauj Ruam 4: Nyem rau "Tswj Lub Suab" thiab Tso "Pib Paub" Thaiv rau hauv Pawg

Nyem rau
Nyem rau

Kev paub lub suab tuaj yeem ua haujlwm nrog ib hom lus ib zaug (ntawm no peb tuaj yeem xaiv Mandarin lossis Askiv).

Kauj Ruam 5: Txheeb xyuas qhov "interimResults" ntawm "Voice Control" Thaiv kom tswj tau li cas Peb Xav Kom Lub Suab Pom Zoo Nyeem Peb Cov Lus Hais

Txhais lub
Txhais lub

Yog tias nws tau teeb tsa "rau" nws yuav lees paub txhua lo lus hais, thiab yog tias nws tau teeb tsa rau "tawm" nws yuav lees paub ncua kev tsim kab lus. Yog tias koj siv lub browser ntawm lub khoos phis tawj, peb pom zoo teeb tsa nws "rau", yog li koj yuav tau txais txiaj ntsig zoo dua. Yog tias koj siv lub xov tooj ntawm tes, teeb nws rau "tawm". Kev lees paub kev hais lus tsuas yog ua haujlwm rau cov xov tooj uas khiav ntawm Android.

Kauj Ruam 6: Muab "Qhia Cov Ntawv" Thaiv Nrog "Cov Ntawv Paub" thiab teeb tsa Txoj Cai ntawm Kev Paub

Qhov chaw a
Qhov chaw a

Tom qab ntawd muab qhov "yog lo lus suav nrog / ua" thaiv sab hauv "Kev lees paub" thaiv rau kev ua haujlwm. Hauv qhov piv txwv, peb ua LED qhib thiab tua thaum peb hais "qhib lub teeb" thiab "tua lub teeb". Lossis, yog tias peb hais "ntsais" LED yuav nyem.

Kauj Ruam 7: Yog tias Koj Xav Tau Ntau Cov Lus txib, Siv "List" Block

Yog tias Koj Xav Tau Ntau Cov Lus txib, Siv a
Yog tias Koj Xav Tau Ntau Cov Lus txib, Siv a

Kauj Ruam 8: Txheeb xyuas yog tias Pawg Neeg Saib Xyuas Online thiab "Run Blocks". Tom qab ntawd "Tso Cai" Chrome Siv Koj Lub Microphone

Txheeb xyuas yog tias Pawg Thawj Coj Hauv Online thiab
Txheeb xyuas yog tias Pawg Thawj Coj Hauv Online thiab

Nyeem ntau cov lus qhia ntawm Webduino ntawm no.

Pom zoo: