Cov txheej txheem:
- Kauj ruam 1: Pib
- Kauj Ruam 2: Ntxiv LEDs
- Kauj Ruam 3: Digital Pins
- Kauj ruam 4: PushButtons
- Kauj Ruam 5: Digital thiab Analog Pins
- Kauj Ruam 6: Photoresistors
- Kauj Ruam 7: Txheeb cais Variables
- Kauj Ruam 8: Tshaj Tawm Cov Hloov Pauv
- Kauj ruam 9: Chaw thau khoom
- Kauj Ruam 10: LED On/Off
- Kauj Ruam 11: Tawm Khawm
- Kauj Ruam 12: Txaus Siab Ua Si
Video: Tic Tac Toe: 12 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Tinkercad Cov Haujlwm »
Hnub no peb yuav ua Tic Tac Toe game ntawm TinkerCad siv Arduino. Peb tab tom yuav siv ntau yam yooj yim thiab siv cov cai los khi lawv txhua tus ua ke. Lub hauv paus tseem ceeb ntawm cov kab ke no uas coj txhua qhov no ua ke yog cov cai. Txoj haujlwm no muaj ntau txoj hauv kev thiab tuaj yeem hloov pauv mus rau txawm li cas los xij tus neeg siv pom zoo. Qhov kev ua si no tseem muaj kev xaiv siv RGB teeb, tab sis yog tias leej twg xav tau ua ntej ntawm txoj haujlwm no lawv yuav xav tau txuas 2 arduinos rau ib leeg.
Khoom siv
- Arduino
- Breadboard (loj)
- Hlau
- Pushbutton
- LEDs
- Resistors (10k thiab 150)
- Photoresistors
Kauj ruam 1: Pib
Yog li peb yuav pib qhov no nrog lub thawv ntim khoom loj thiab Arduino microcontroller.
Kauj Ruam 2: Ntxiv LEDs
Cov kauj ruam tom ntej yog ntxiv LEDs thiab khawm lub pob rau ntawm lub khob cij. Peb tseem tsis tau txuas lawv tab sis tsuas yog muab lawv tso rau hauv lub rooj tsav xwm kom tsis muaj cov xov hlau cuam tshuam nrog lwm lub khawm. Muaj ntau yam khoom siv yog li peb yuav tsum tso lawv tawm zoo li no yog li tsis muaj leej twg kov. Daim ntawv qhia zaub mov loj tau pom zoo rau txoj haujlwm no.
Kauj Ruam 3: Digital Pins
Yog li ua ntej peb ntxiv lwm yam cia ua ntej txuas cov pins digital rau LEDs. Hauv txoj haujlwm no, peb tab tom yuav siv tag nrho cov analog thiab digital pins uas Arduino muaj.
Kauj ruam 4: PushButtons
Rau cov kauj ruam no peb yuav txuas lub zog thiab hauv av rau lub khawm. Hauv cov kauj ruam no peb yuav siv 10k resistors txhawm rau txwv lub zog. 2 lub nyees khawm ntawm sab xis tsis siv los tig lub LED qhib lossis kaw, tab sis lawv tau siv los pib qhov kev ua si tshiab, thiab rau lwm yam peb yuav pom thaum peb pib qhov chaws.
Kauj Ruam 5: Digital thiab Analog Pins
Hauv cov kauj ruam no peb yuav txuas cov nyees khawm rau digital thiab analog pins. Cov pins analog tuaj yeem siv tau hauv qhov no vim tias lawv tuaj yeem siv tib txoj kev siv cov koob digital.
Kauj Ruam 6: Photoresistors
Hauv theem no, peb yuav txuas cov photoresistors mus rau LEDs. Lub ntsiab lus ntawm qhov no yog kom cov neeg sib txawv tau txais qib sib txawv ntawm qhov ci ntsa iab thiab qhov no tso cai rau cov players sib txawv ntawm lawv tus kheej. Hauv qib no koj pom yog vim li cas kev sib nrug ntawm cov qib sib nrug yog qhov tsim nyog.
Kauj Ruam 7: Txheeb cais Variables
Hauv cov kauj ruam no, peb tab tom yuav pib qhov chaws. Thawj feem ntawm qhov no yuav tau txhais cov nyees khawm sib txawv thiab LEDs, tab sis kuj tseem muaj lwm qhov sib txawv uas sib npaug rau 0. Qhov sib txawv no yuav pab peb tig LEDs rau thiab tawm nrog nias lub pob.
Kauj Ruam 8: Tshaj Tawm Cov Hloov Pauv
Hauv cov kauj ruam no, peb tab tom ua kom tiav qhov kev tshaj tawm ntawm cov kev hloov pauv no thiab teeb tsa cov nyees khawm raws li kev nkag, thiab LEDs raws li kev tso tawm.
Kauj ruam 9: Chaw thau khoom
Ib feem ntawm txoj cai no tuaj yeem pom ua "thau khoom npo". Feem ntau cov kev ua si feem ntau muaj qee qhov pib ua ntu zus thaum pib tab sis ntu no yog nyob ntawm yeem thiab tsuas yog ua tiav rau cov yeeb yam. Nov yog qhov lwm lub pob uas nyob ntawm sab xis tuaj yeem siv rau. Nws tuaj yeem tso tawm qhov pib ua ntu zus kom txog rau thaum "pib khawm" raug nias.
Kauj Ruam 10: LED On/Off
Cov kauj ruam no tsom mus rau cov cai tseem ceeb ntawm yuav ua li cas qhib LED qhib thiab tawm nrog cov nyees khawm. Hauv txoj cai no, peb yuav siv qhov sib txawv uas sib npaug 0 uas peb tau tsim thaum xub thawj thaum txiav txim siab peb cov kev hloov pauv. Raws li txoj cai no, LED yuav qhib thaum lub pob nyem, tab sis yuav tig rov qab thaum nws nias dua.
Kauj Ruam 11: Tawm Khawm
Cov kauj ruam no qhia tus lej khawm lossis khawm game tshiab. Qhov no yog siv thaum tus neeg uas ua ntawv yeej lossis ua tiav qhov kev ua si, thiab qhov kev ua si yuav rov pib dua thiab tuaj yeem rov pib dua. Lub pob no yog qhov pib dua khawm uas rov pib lub voj kom cov game tuaj yeem ua si ntau thiab ntau dua.
Kauj Ruam 12: Txaus Siab Ua Si
Qhov ntawd yog qhov kawg ntawm qhov kev qhia no thiab kuv vam tias koj yuav muaj kev lom zem ua si ib puag ncig nrog cov kab ke no thiab cov cai thiab hloov pauv ntau ntxiv rau hauv Circuit Court no vim tias qhov muaj peev xwm tsis muaj qhov kawg vim qhov no yog qhov qhib qhov program.
Pom zoo:
Python Tic Tac Toe Game: 4 Kauj Ruam
Python Tic Tac Toe Game: nab nab tic tac ntiv taw kev ua si qhov kev ua si no yog tsim los ntawm nab nab uas yog lub khoos phis tawj siv kuv tau siv tus kws kho mob nab nab hu ua: pycharm koj kuj tseem tuaj yeem siv tus nab npawb sej code editor ib yam nkaus
Arduino Touch Tic Tac Toe Game: 6 Kauj Ruam (nrog Duab)
Arduino Touch Tic Tac Toe Game: Nyob zoo cov phooj ywg zoo siab txais tos rau lwm qhov kev qhia Arduino! Hauv qhov kev qhia ntxaws no peb tab tom tsim Arduino Tic Tac Toe game. Raws li koj tuaj yeem pom, peb tab tom siv lub vijtsam kov thiab peb tabtom tawm tsam lub computer. Qhov kev ua si yooj yim zoo li Tic Tac Toe yog
Electronic Tic-Tac-Toe Game in a Wood Box: 5 Kauj Ruam
Electronic Tic-Tac-Toe Game in a Wood Box: Nyob zoo Kuv qhia qhov kev lom zem Tic-Tac-Toe game hauv kev tshaj tawm tshiab.Kuv tshawb xyuas lub vev xaib rau qhov haujlwm zoo sib xws, tab sis lub tswv yim ntawm no yog qhov tshwj xeeb
Microbit Tic Tac Toe Game: 4 Kauj Ruam (nrog Duab)
Microbit Tic Tac Toe Game: Rau qhov haujlwm no, kuv tus neeg ua haujlwm ua haujlwm - @descartez thiab kuv tau tsim qhov txaus ntshai tic tac ntiv taw kev ua si siv xov tooj cua ua haujlwm ntawm microbits. Yog tias koj tsis tau hnov txog microbits ua ntej, lawv yog qhov txaus microcontroller tsim los qhia cov menyuam txoj haujlwm. Lawv
RG LED Tic Tac Toe: 9 Kauj Ruam
RG LED Tic Tac Toe: RG Tic Tac Toe yog cov kev ua si hauv chav kawm tuaj yeem ua rau ntau yam sib txawv. Tab sis, Kuv txiav txim siab los tsim nws nrog cov cathode RG LEDs ntawm 5mm raws li saib xyuas cov txiaj ntsig yog li ntawd ib zaug ua raws qhov kev hloov pauv, LED qhia qhov tshwm sim hauv xim liab lossis ntsuab hauv