Cov txheej txheem:
- Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau:
- Kauj Ruam 2: 3D Luam Ntawv:
- Kauj Ruam 3: Ua Push Buttons KeyPad:
- Kauj Ruam 4: Kev Sib Txuas Hauv Circuit:
- Kauj ruam 5: Code:
- Kauj Ruam 6: Cov Cai Ua Si:
Video: DIY Arduino Tic Toc Toe Game: 6 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Tic Tac Toe game yog ob tus neeg ua si classic. Nws dhau los ua kev lom zem thaum koj ua si nrog koj cov menyuam, tsev neeg thiab cov phooj ywg. Ntawm no kuv tau qhia yuav ua li cas Tic Tac Toe game siv Arduino Uno, Laub khawm thiab Pixel LEDs. Qhov no Arduino raws 4 los ntawm 4 Tic Tac Toe zoo ib yam li Tic Tac Toe qub, tsuas yog qhov sib txawv yog X thiab O's tau sawv cev hauv ob qho xim sib txawv. kos qhov phiaj xwm no yog qhov 4 los ntawm 4 RGB Matrix nrog txhua lub pixel muaj lub laub khawm hauv nws. Yog tias lub pixel raug thawb ces nws yuav tsum teeb nrog nws cov xim txheej. Qhov kev ua si no tau teeb nrog ob xim Ntuj Xiav Xim sawv cev rau Player 1 thiab Xim Xim sawv cev rau Player 2. Yog tias tus neeg ua si yeej ces tag nrho cov LEDs yuav tsum ua kom muaj xim nrog tus neeg uas ua ntawv ntawd. Yog tias kev ua si yog kos ces txhua lub LEDs yuav tsum ua kom muaj xim liab. Tom qab ua tiav ib qho kev ua si, qhov kev ua si yuav tsum tau rov pib ua qhov ntawd peb muaj lub pob pib dua txuas nrog Arduino.
Kauj Ruam 1: Cov Cheeb Tsam Yuav Tsum Tau:
- Arduino Ib (1)
- WS2812B LEDs lossis NeoPixel LEDs (16)
- Laub Khawm (17)
- 3.7V/5V Roj Teeb (1)
- ON/OFF Hloov (1)
- 3D Luam Tshooj
Kauj Ruam 2: 3D Luam Ntawv:
- 3D luam tawm txhua qhov uas tau muab hauv qhov txuas hauv qab no.
- 3D Luam 16 lub pob me me hauv PLA dawb thiab seem uas seem tuaj yeem luam tawm 3D hauv txhua xim uas koj xav tau.
- Txuas rau STL Cov Ntaub Ntawv:
- Tom qab luam tawm tag nrho cov ntu nruab tag nrho 16 lub khawm dawb hauv kab uas siv qee cov kua nplaum nrawm.
Kauj Ruam 3: Ua Push Buttons KeyPad:
- Nqa ib daim duab los qhia, kos cov haujlwm nrog hwm 3D luam tawm ntawm daim duab los qhia.
- Kuaj tag nrho 16 lub laub khawm ntawm daim duab los qhia ntawm txoj haujlwm.
- Ua txhua qhov kev sib txuas los ntawm kev siv cov khawm khawm nrog kev pab ntawm qee cov xov hlau.
Kauj Ruam 4: Kev Sib Txuas Hauv Circuit:
- Txuas lub laub khawm keypad mus rau Arduino Uno raws li qhia hauv kab duab kab lus. (R1 ~ A0, R2 ~ A1, R3 ~ A2, R4 ~ A3, C1 ~ A4, C2 ~ A5, C3 ~ Pin 2, C4 ~ Pin 3).
- Kuj tseem siv lub laub khawm ntxiv (Pib dua Khawm) thiab txuas rau Arduino. (Pib dua, GND).
- Txuas txhua lub pixel LEDs. (-Ve/GND ~ GND, +Ve/5V ~ 5V, Cov Ntaub Ntawv Hauv ~ Pin 5).
- Kuv tau siv WS2812b LEDs, Koj tuaj yeem siv cov hlua coj uas yuav yooj yim dua rau siv.
- Txuas 3.7V/5V Roj teeb nrog ON/OFF Hloov.
- Ntxig Tag nrho cov LEDs hauv txhua lub pob 3D luam tawm dawb, ib qho LED ntawm txhua lub khawm.
Kauj ruam 5: Code:
- Qhib cov cai hauv Arduino IDE:
- Nruab KeyPad lub tsev qiv ntawv thiab FastLED lub tsev qiv ntawv rau hauv Arduino IDE.
- Txuas Arduino Uno rau koj lub PC.
- Xaiv Pawg Hom thiab Chaw Nres Nkoj.
- Upload cov cai.
Kauj Ruam 6: Cov Cai Ua Si:
- Ntuj Blue sawv cev rau Player 1.
- Pink sawv cev rau Player 2.
- Cov neeg ua si yuav tsum tsis thawb lub pob uas twb raug thawb lawm.
- Yog tias ib tus neeg twg uas yeej qhov matrix yuav ua rau nws cov xim.
- Yog Game yog kos ces matrix yuav ua kom xim liab.
Pom zoo:
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
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
3D4x Game: 3D 4x4x4 Tic-Tac-Toe: 5 Kauj Ruam (nrog Duab)
3D4x Game: 3D 4x4x4 Tic-Tac-Toe: Koj puas nkees ua si ib yam, qub, tho txawv, 2-seem tic-tac-toe ?? Zoo peb muaj cov tshuaj rau koj! Tic-tac-ntiv taw hauv 3-qhov loj me !!! Rau 2 tus neeg ua si, hauv 4x4x4 lub voos xwmfab, tau txais 4 LEDs uake (hauv ib qho kev qhia) thiab koj yeej! Koj ua nws. Koj plam
Yuav Ua Li Cas Tic Tac Toe Game Siv Swift Nrog Xcode: 5 Kauj Ruam
Yuav Ua Li Cas Tic Tac Toe Game Siv Swift Nrog Xcode: Hauv qhov kev qhia Swift no kuv yuav qhia koj yuav tsim Tic Tac Toe App li cas. Cov app no yooj yim heev thiab yog txoj haujlwm zoo rau txhua tus pib. Kuv yuav tawg qhov kev qhia ua peb theem: 1. Tsim cov khoom 2. Txuas cov khoom rau hauv txoj cai 3. Cov c
Sib tham sib Tic-Tac Toe Game Tswj Nrog Arduino: 6 Cov Kauj Ruam
Sib tham sib Tic-Tac Toe Game Tswj Nrog Arduino: Lub hom phiaj ntawm Lub Cev Lub Cev Tic-Tac-Toe yog txhawm rau txav kev ua si uas paub zoo mus rau hauv lub cev tiag tiag. Thaum xub thawj, qhov kev ua si yog ua los ntawm ob tus neeg ua si ntawm ib daim ntawv - los ntawm kev tso 'X' thiab 'O' cov cim sib dhos. Peb lub tswv yim yog los tshuaj xyuas cov neeg ua yeeb yam