Cov txheej txheem:
- Kauj Ruam 1: Yuav Pib Li Cas
- Kauj Ruam 2: Cia Pib Pib Coding
- Kauj ruam 3: Coding…
- Kauj ruam 4: Tseem Coding …
- Kauj ruam 5: Ib nrab Ua tiav …
- Kauj Ruam 6: Rov Coding …
- Kauj Ruam 7: Me ntsis Ntxiv Coding …
- Kauj Ruam 8: Yuav luag tiav …
- Kauj Ruam 9: Ntxiv Ntxiv …
- Kauj ruam 10: Txaus siab rau…
Video: Microbit Running Assistant Nrog Khawv koob 8 Pob: 10 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Peb tab tom mus rau Txoj Cai Pabcuam Pabcuam nrog Magic 8 Pob,
Tus pab Microbit khiav yog qhov kev pab zoo rau cov tib neeg uas tau siv khiav ntau, rau cov tib neeg uas khiav qee zaum lossis txawm tias rau cov tib neeg uas nyuam qhuav pib khiav. Qee lub sij hawm koj yuav tsum txiav txim siab, piv txwv li- Txhawm rau txiav txim siab, txoj hauv kev twg mus txuas ntxiv, thiab rau qhov peb muaj Khawv koob 8 Pob. Cov lus qhia no tau muab faib ua 10 ntu.
Nco tseg: Txhua kauj ruam yuav muaj daim duab kom ntxaws txog cov kauj ruam uas koj xav tau ua raws rau kev ua tus lej. Please nyeem dhau, qhia tag nrho ua ntej pib ua. () Cov kab ntawv hauv Cov Lus Qhia no yog cov lus thiab ntu uas tseem ceeb. Yog li () cov kab ntawv tsuas yog ib txoj hauv kev qhia, cov lus ntawm cov lus, uas sib npaug. Yog li kuv vam tias, koj tsis txhob poob siab.
Kauj Ruam 1: Yuav Pib Li Cas
Ua ntej tshaj plaws mus rau koj lub vev xaib tshawb nrhiav thiab tshawb rau https://makecode.microbit.org, uas coj koj mus rau nplooj ntawv hauv tsev, rau tus lej Micro ntsis. Tom qab ntawd koj yuav pom Lub Hauv Paus (Kuv Txoj Haujlwm) hauv cov xim dub, thiab hauv qab nws, koj yuav pom qhov kev xaiv hauv Violet uas yuav nthuav tawm (Txoj Haujlwm Tshiab) xaiv nws thiab nplooj ntawv pib yuav tshwm!
Thaum ntawm nplooj ntawv pib, koj yuav pom (Pib) thiab (Mus Ib Txhis) twb tau muab tso lawm.
Kauj Ruam 2: Cia Pib Pib Coding
2) Tam sim no peb tab tom sau kab pib nrog luag nyav, uas yuav tshwm sim thaum twg koj pib koj Microbit. Yog li nyem rau ntawm (qib siab) kev xaiv thiab tshawb rau (Duab) hauv (Duab), tshawb rau (Qhia duab myImages ntawm offset 0).
Tom qab ntawd haum nws sab hauv (ntawm qhov pib) coloumn, tom qab ntawd rov qab mus rau (Duab) thiab thaum nqes mus nrhiav (icon duab), thaum koj pom nws rub nws thiab muab tso rau (myImages) ntawm (Qhia duab myImages ntawm offset 0). Tom qab ntawd hloov lub cim duab los ntawm (lub plawv) mus rau (luag nyav) Koj tuaj yeem hloov nws mus rau qhov koj nyiam!
Tom qab ntawd mus rau (Basic) kev xaiv, uas yog thawj qhov kev xaiv, thiab xaiv nws. Thaum nyob hauv (Yooj Yim), nrhiav (qhia txoj hlua "Nyob Zoo"), uas yuav yog peb qhov pib qhia. Tom qab ntawd haum nws sab hauv (ntawm qhov pib) thaiv hauv qab (Qhia cov duab cim duab ntawm offset 0). Koj tseem tuaj yeem hloov qhov lus qhia rau lwm yam, piv txwv li (Nyob Zoo Sir/Madam).
Kauj ruam 3: Coding…
3) The Step Counter: Tam sim no peb yuav tsum ua (Variable). Yog li koj yuav tsum nrhiav (Variable) uas nyob hauv qab (Logic) thiab tau hais hauv xim liab. Thaum nyob hauv (Hloov pauv) koj yuav pom lub npov npe (Ua kom muaj qhov txawv txav …), xaiv nws thiab lub npov yuav tshwm tawm uas hais tias (Lub npe hloov pauv tshiab:) raws li qhia saum toj no.
Ntaus hauv (Kauj Ruam) raws li lub npe ntawm (Variable), thiab tom qab ntawd nias (ok). Tam sim no koj yuav pom peb qhov kev xaiv, tab sis koj yuav xaiv qhov hais tias (Teeb tsa (kauj ruam) rau (0)), uas yog qhov kev xaiv thib ob. Tom qab ntawd luag thiab haum nws rau (ntawm qhov pib) thaiv. Tsis tas li tsis txhob hnov qab tso (Teeb (kauj ruam) rau (0)) hauv qab txhua lwm tus hauv (thaum pib) xaiv.
Dab tsi (Teeb tsa (kauj ruam) rau (0)) ua li ntawd, nws teeb tsa tus lej pib pib uas yog, tau kawg xoom.
Nco tseg:- Hloov pauv yog qhov tseem ceeb ntawm microbit yuav tsum nco ntsoov
Kauj ruam 4: Tseem Coding …
4) Tam sim no peb tab tom mus rau tus lej, yuav ua li cas lub txee yuav ntes peb cov kauj ruam. Yog li mus rau (Cov tswv yim) thiab nyob ntawd koj yuav pom lub thaiv npe (On co) rub nws tawm thiab tso nws qhov chaw ntawm nplooj ntawv. Tom qab ntawd koj yuav rov qab mus rau (Hloov pauv) thiab tom qab ntawd rub qhov kev xaiv hais tias (Hloov Kauj Ruam los ntawm 1) thiab haum nws sab hauv (On co) thaiv. Yog li ntawd thaum twg los peb tuav peb txhais taw, nws suav lossis ntxiv 1 rau tus lej tam sim no.
Kauj ruam 5: Ib nrab Ua tiav …
5) Tam sim no peb yuav tsum paub pes tsawg kauj ruam kom deb li deb! Yog li rau qhov ntawd mus rau (Yooj Yim) thiab tshawb rau (Qhia Tus Zauv). Thaum koj pom nws rub nws tawm thiab haum nws sab hauv (Ib si) Thaiv. Tom qab ntawd koj yuav rov qab mus rau (Hloov pauv) thiab xaiv qhov kev xaiv hais tias (Kauj Ruam). Tom qab ntawd koj yuav tso (Hloov pauv) Kauj Ruam tsis yog 0 hauv (Qhia tus lej 0). Yog li nws dhau los (Qhia tus lej naj npawb).
Kauj Ruam 6: Rov Coding …
6) Muaj peev xwm tuaj yeem ua lag luam qis, yog li tus lej tau nthuav tawm lig, thiab koj kuj tseem tuaj yeem qee qhov ntawm koj cov kauj ruam tsuas yog vim nws tau nthuav tawm lig. Yog li rau qhov koj yuav mus rau qhov (Tshawb nrhiav) kev xaiv, uas yog qhov kev xaiv saum toj kawg nkaus hauv kab ntawv xaiv. Tom qab ntawd koj yuav tsum ntaus (Nres cov tsiaj ntawv) thaum koj pom nws, rub nws mus (ntawm co) thiab haum nws sab hauv.
Tsis tas li nws tsis tseem ceeb uas koj tso (tso duab tso tseg) hauv qab (Hloov (Kauj Ruam) los ntawm (1)) vim tias nws tsuas yog tsis muaj qhov sib txawv tiag tiag. Tab sis kuv nyiam nws ib txwm nyob hauv qab, vim tom qab ntawd nws dhau los ua qhov tseeb.
Nco ntsoov cais txhua qhov kev xaiv, yog li txhua qhov koj xaiv ntawm nplooj ntawv tsis zoo li tsis tawg ua ke
Kauj Ruam 7: Me ntsis Ntxiv Coding …
7) Tam sim no mus rau (Cov tswv yim) thiab nrhiav (ntawm khawm A nias) thiab tso nws qhov chaw ntawm nplooj ntawv. Tom qab ntawv nyem rau ntawm (A) ntawm (ntawm khawm A nias) thiab xaiv (A+B).
Tom qab ntawd mus rau (Variables) thiab xaiv qhov kev xaiv hais tias (Ua Tus Hloov pauv …) thiab npe nws (Teb) thiab tom qab ntawd xaiv (Ok). Tam sim no los ntawm peb qhov kev xaiv coj (teeb (teb) rau (0) thiab muab tso rau hauv qab (ntawm khawm A+B nias). Tam sim no muab (xaiv random 0 txog 10) hloov ntawm 0 ntawm (teeb teb rau 0). Tam sim no xaiv (10) los ntawm (xaiv random (0) rau (10) thiab hloov mus rau (3) Yog li nws dhau los (xaiv random (0) txog (3)
Kauj Ruam 8: Yuav luag tiav …
8) Tam sim no mus rau (Logic) thiab tshawb rau (Yog tias yog lwm qhov) thiab tom qab ntawd rub nws thiab muab tso rau hauv qab (xaiv random 0 txog 3) hauv (ntawm khawm A+B nias). Tam sim no mus rau (kev xav) thiab tshem tawm (0 = 0) thiab tom qab ntawd muab tso rau ntawm (Tseeb) ntawm (Yog tias lwm qhov) raws li qhia hauv daim duab thawj.
Tom qab ntawd mus rau (Hloov pauv) thiab coj (teb) los ntawm nws thiab rub nws mus rau thawj xoom ntawm (0 = 0), tom qab ntawd mus rau (theem pib) thiab xaiv (qhia txoj hlua "Nyob Zoo") thiab rub nws hauv qab (yog tias teb = 0 ces) thiab ntaus hauv (Tsis muaj txoj hauv kev!) Hauv txoj hlua. Tam sim no nias lub pob (Ntxiv) 3 zaug ntawm (Yog tias yog lwm qhov), uas yog nyob rau ntawm kaum sab laug. Thiab nias ib zaug hauv qab cov cim rho tawm, uas yog ntawm sab xis. Tom qab ntawd nws yuav tsum zoo li koj muaj 3 rau rau sab.
Tam sim no theej tawm (teb = 0) peb zaug thiab muab ib qho rau txhua ntawm rau rau daim duab. Tam sim no hauv qhov thib ob (teb = 0) los ntawm sab saum toj, hloov nws mus rau (1) los ntawm (0), ntawm tus thib peb hloov nws mus rau (2) los ntawm (0) thiab ntawm plaub hloov mus rau (3) los ntawm (0)).
Tam sim no mus rau qhov yooj yim thiab nrhiav (qhia txoj hlua) thiab muab tso rau hauv qab (teb (=) 1) thiab sau (Tej zaum!) Hauv txoj hlua, los ntawm kev hloov nws los ntawm (Nyob Zoo). Tam sim no theej tawm (qhia txoj hlua) 2 zaug los ntawm txoj nyem rau nws thiab muab tso rau hauv qab txhua tus (lwm tus yog tias yog). Ntawm txoj hlua thib peb, ntaus hauv (Tsis yooj yim!) Hloov ntawm (Tej zaum!) Thiab ntawm cov hlua kawg hauv (Tseeb!) Thiab thaum kawg nws yuav tsum zoo li! raws li qhia saum toj no!
Tsis txhob hnov qab nug cov lus nug rau Magic 8 Pob ua ntej nias (A+B).
Kauj Ruam 9: Ntxiv Ntxiv …
9) Tam sim no peb tab tom yuav ntxiv qee lub suab paj nruag- Ua ntej mus rau lub tswv yim thiab tshawb rau (ntawm khawm A nias) thiab tso rau qhov chaw ntawm nplooj ntawv. Tsis tas li tsis txhob hnov qab hloov (A) rau (b) los ntawm kev nyem rau ntawm (A) ntawm (ntawm khawm A nias). Tam sim no mus rau (Loop) thiab nrhiav (Rov ua dua 4 zaug ua), thiab rub nws mus rau (Ntawm khawm B nias). Tam sim no mus rau (Nkauj) thiab nrhiav (Pib suab paj nruag (Dadadum) rov hais dua (ib zaug)) tom qab ntawd rub nws tawm. Tom qab ntawd luam nws plaub zaug los ntawm txoj cai nyem rau (Pib suab paj nruag (Dadadum) rov hais dua (ib zaug)). Yog li ntawd koj muaj tsib (Pib suab paj nruag (Dadadum) rov hais dua (ib zaug)) tam sim no haum rau txhua lub suab nkauj sab hauv (Rov ua dua (4) zaug ua) hauv (Ntawm khawm B nias).
Tom qab ntawd nyem sab laug (Dadadum) thiab xaiv thawj lub suab nkauj rau (txhawb zog) thiab los ntawm txuas ntxiv qhov thib ob mus rau (fais fab tuag), tus thib peb mus rau (dhia qis), tus thib plaub mus rau (dhia nce) thiab thib tsib mus rau (punchline). Nws tuaj yeem tshwm sim uas koj yuav tsum nqes los nrhiav cov nkauj no. Tsis tas li tsis txhob hnov qab hloov qhov kev xaiv rov ua dua (10) los ntawm (4) ntawm (Rov Ua Dua (4) zaug ua). Thiab kom muab qhov rov ua dua ntawm (Melodys) rau (mus ib txhis) los ntawm sab laug nyem rau ntawm (Ib zaug).
Nco tseg- qhov no tsuas yog cov lus qhia, yog li koj tuaj yeem tsim koj lub suab nkauj los ntawm xaiv cov nkauj sib txawv thiab sib xyaw ua ke. Thaum kawg nws yuav tsum zoo li zoo li tau hais los saum no.
Kauj ruam 10: Txaus siab rau…
10.0) Thaum kawg tag nrho nplooj ntawv yuav tsum zoo ib yam li daim duab pom saum toj no. Tam sim no los ntawm txhaj rau (Rub tawm) qhov kev xaiv koj tuaj yeem rub tawm koj qhov program rau koj Micro Bit. Los ntawm rub cov ntawv Hex mus rau Micro Bit lossis tseem txav Hex cov ntaub ntawv mus rau Microbit, tab sis Microbit thawj zaug yuav tsum txuas nrog los ntawm USB cable. Tom qab ntawd koj zoo mus, thiab ntxiv koj tuaj yeem ntxiv cov khoom ntxiv yog tias koj xav tau!
Pom zoo:
Khawv koob Teb Cov Pob Nrog Arduino Pro Mini thiab TFT Zaub: 7 Cov Kauj Ruam
Khawv koob Teb Cov Pob Nrog Arduino Pro Mini thiab TFT Zaub: Ib pliag rov qab, kuv tus ntxhais thiab kuv tau sib cais Magic 8 pob kom nws tuaj yeem hloov nees nkaum lus teb nrog qhov nws xaiv. Qhov no yog khoom plig rau nws tus phooj ywg. Qhov ntawd ua rau kuv xav txog yuav ua li cas ntawm qhov loj dua. Peb puas tuaj yeem muaj ntau
"Khawv Koob" Luav hauv Lub Koob Yees Duab Trick: 7 Kauj Ruam (nrog Duab)
"Khawv Koob" Luav hauv Lub Hnab Liab Liab: Yog li ntawm no yog "khawv koob" dag. Luav ua los ntawm cov dej khov zaum saum lub kaus mom ua khawv koob. Tus luav dej khov yaj ploj mus thiab ploj mus ib txhis … lossis yog vim li cas hauv tus kws yees duab lub kaus mom nws tau qhia tawm muaj daim duab ntawm tus luav zoo li nws muaj r
Khawv koob khawv koob. Tesla Coil: 3 Kauj Ruam
Khawv koob khawv koob. Tesla Coil: Nyob zoo txhua tus. Kuv pib ua Tesla coil raws li cov txheej txheem qub uas koj pom nyob txhua qhov hauv internet thiab kuv tau xaus nrog qhov muaj hluav taws xob ntau dhau uas nres kuv lub Circuit Court los ntawm kev ua haujlwm tom qab 1 thib ob. Kuv tau hloov kho qhov Circuit Court los ntawm kev siv
Khawv koob 8 Pob: 5 Kauj Ruam (nrog Duab)
Khawv koob 8 Pob: Cov Lus Qhia no tau tsim los ua kom tiav ntawm txoj haujlwm xav tau ntawm Makecourse ntawm Tsev Kawm Qib Siab South Florida (www.makecourse.com). Nyob zoo thiab txais tos rau kuv qhov MakeCourse project. Rau kuv qhov phiaj xwm zaum kawg kuv tau xaiv rov tsim hluav taws xob & ld
Cia Ua Khawv Koob Crystal Pob Nrog Khawv Koob Magic! ~ Arduino ~: 9 Cov kauj ruam
Cia Ua Khawv Koob Crystal Ball With Magic Spells! ~ Arduino ~: Hauv qhov no, peb yuav ua Magic Ball uas siv lub suab txav thiab lub tshuab ntsuas RFID los tswj cov duab ntawm LED teeb sab hauv