Cov txheej txheem:
- Kauj Ruam 1: Txhua Qhov
- Kauj Ruam 2: Yuav Txuas Li Cas Rau Arduino
- Kauj Ruam 3: Flow Chart ntawm Txoj Haujlwm
- Kauj Ruam 4: Programming Joystick
- Kauj Ruam 5: Thawj Qib
- Kauj Ruam 6: Kev Tshawb Fawb Txog Kev Sib Tsoo
- Kauj Ruam 7: Ob Qib Kawg
Video: Rov Tsim Kho Ntiaj Teb Cov Kev Ua Si Nyuaj Tshaj ntawm Arduino: 7 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Qhov haujlwm no yog tsim los ntawm kev ua si hauv computer uas koj tuaj yeem pom hauv online. Nws lub npe yog, "Lub Ntiaj Teb Nyuaj Tshaj Game." Kuv muaj peev xwm rov tsim nws ntawm Arduino siv plaub qhov qauv LED Matrix. Hauv cov lus qhia no kuv qhia koj yuav tsim nws tus kheej li cas. Ua ntej peb nkag mus rau ntau cov ntsiab lus Kuv xav muab cov lus qhia nrawm ntawm cov kauj ruam uas kuv tau hla los tsim qhov kev ua si no.
- Kuv tau sau txhua qhov uas xav tau.
- Kuv txuas cov ntu ua ke.
- Kuv tau sau ib daim duab uas siv lub joystick txav cov players LED hla txhua qhov qauv.
- Kuv tsim thawj qhov teeb meem thiab ntxiv lawv mus rau qhov kos duab kom lawv ua raws li Worlds Hardest Game.
- Tom qab ntawd kuv ntxiv cov lej txhawm rau txhawm rau txheeb xyuas qhov sib tsoo nrog cov teeb meem, uas yuav rov pib ua si.
- Thiab tom qab ntawd kuv tsim ob qib ntxiv ntawm cov teeb meem.
Kauj Ruam 1: Txhua Qhov
Nov yog cov npe ntawm txhua ntu koj xav tau:
- Ib qho Arduino UNO thiab usb txuas: https://www.banggood.com/Wh Wholesale-Arduino-Compati.
- Plaub qhov qauv 8x8: LED matrix
- Joystick:
- 10 tus txiv neej rau poj niam xaim:
Kauj Ruam 2: Yuav Txuas Li Cas Rau Arduino
Yuav Ua Li Cas Txuas LED Matrix rau Arduino
- GND mus rau GND
- VCC mus rau 5V
- DataIn mus rau tus lej digital 12
- CLK mus rau tus lej digital 11
- CS lossis LOAD mus rau tus lej digital 10
Yuav Ua Li Cas Txuas Tus Joystick
- GND mus rau GND
- 5V mus rau 5V
- VRx mus rau analog pin A0
- VRy mus rau analog pin A1
- SW tsis siv
Lub roj teeb txuas rau 9v nkaus kom muab lub zog Arduino
Kauj Ruam 3: Flow Chart ntawm Txoj Haujlwm
Lub oval qhia txog qhov pib ntawm txoj haujlwm.
Thawj kauj ruam yog txhawm rau txheeb xyuas txhua yam teeb meem.
Ob kauj ruam tom ntej qhia txog teeb tsa qhov hloov pauv thiab tig rau txhua qhov ntawm cov qauv.
Cov kauj ruam tom ntej, yog teeb tsa LED rau thawj qib thiab lwm yam kev hloov pauv.
Tom ntej tso saib qib uas tus neeg uas ua ntawv tam sim no nyob.
Lub rhombus qhia txog kev nyeem Joystick kom pom cov lus qhia uas nws raug thawb.
Tom qab ntawd txav tus neeg uas ua ntawv mus rau qhov kev taw qhia uas Joystick tau thawb.
Txheeb xyuas thiab saib yog tias tus neeg uas ua ntawv sib tsoo nrog qhov teeb meem.
Yog tias tus neeg uas ua ntawv tsoo qhov teeb meem, rov qab mus rau qib thawj. Yog tias tsis txheeb xyuas seb tus neeg uas ua ntawv mus txog qhov kawg ntawm qib.
Yog tias tus neeg ua si yog qhov kawg ntawm qib, teeb tsa mus rau qib tom ntej ces rov qab mus rau, "Zaub Tam Sim No." Yog tias lawv tsis yog qhov kawg, txav cov teeb meem thiab rov qab mus rau, "Nyeem Joystick."
Kauj Ruam 4: Programming Joystick
Tau kawg txhawm rau txav tus me me uas yog tus neeg ua si, peb xav tau tus joystick. thiab txhawm rau tso cai rau tus joystick txav tus neeg ua si peb yuav tsum tau sau nws hauv Arduino IDE. Koj yuav tsum suav nrog LedControl lub tsev qiv ntawv uas koj tuaj yeem nrhiav tau los ntawm kev mus rau cov duab kos duab> suav nrog Tsev Qiv Ntawv> tswj cov tsev qiv ntawv, thiab tshawb rau LedControl. Nov yog qhov chaws rau tus joystick zoo li cas.
#suav nrog "LedControl.h"
int DataIn = 12; int CLK = 11; int DIN = 10; LedControl lc = LedControl (DataIn, CLK, DIN, 4); // Tsim cov khoom rau plaub tus qauv int ncua sijhawm = 50; // nrawm uas qhov kev ua si sau int joystick_RtLt, joystick_UpDn; int players_x = 0; // players txoj haujlwm kab rov tav los ntawm 0 txog 31 int players_y = 3; // players txoj haujlwm ntsug ntawm 0 txog 7 int kab, kem, qauv; teeb tsa tsis muaj dabtsis () {initialize_modules (); // qhib thiab teeb tsa tag nrho plaub qhov kev coj ua} void loop () {move_player (); // pib lub voj los ntawm kev txheeb xyuas yog tias tus neeg ua si txav qeeb (ncua sijhawm); } void initialize_modules () {lc.shutdown (0, tsis tseeb); // pib qhov module 0 lc.setIntensity (0, 1); lc.shutdown (1, tsis tseeb); // pib qhov module 1 lc.setIntensity (1, 1); lc.shutdown (2, tsis tseeb); // pib qhov module 2 lc.setIntensity (2, 1); lc.shutdown (3, tsis tseeb); // pib qhov module 3 lc.setIntensity (3, 1); lc.clearDisplay (0); // tshem qhov module 0} void move_player () {module = players_x/8; // txhais qhov twg tus qauv uas tus neeg uas ua ntawv nyob ntawm kab = players_x%8; // txhais kab lus uas tus neeg uas ua ntawv nyob ntawm kab kab = players_y; lc.setLed (module, kab, kab, cuav); // tua tawm ntawm tus neeg ua haujlwm txoj haujlwm tam sim no joystick_RtLt = analogRead (A0)/204 - 2; // nyeem X -joystick thiab daim duab qhia chaw los ntawm 2 txog -2 yog (joystick_RtLt> 0) // thaum joystick yog rau tus players_x ++; // mus rau lwm txoj cai yog (joystick_RtLt 0) // yog joystick nyob rau sab laug thiab tsis yog thaum pib players_x--; // txav mus rau sab laug joystick_UpDn = analogRead (A1)/204 - 2; // nyeem Y-joystick thiab daim duab qhia chaw ntawm 2 txog -2 yog (joystick_UpDn 0) // yog joystick poob qis thiab cov neeg ua si tsis nyob hauv qab players_y--; // txav mus rau lwm qhov yog (joystick_UpDn> 0 && players_y <7) // yog joystick tau nce thiab cov neeg ua si tsis nyob rau sab saum toj players_y ++; // nce mus module = players_x/8; // teeb tsa tus qauv rau cov players tshiab txoj haujlwm kem = players_x%8; // teeb kem rau cov neeg ua haujlwm tshiab kab = players_y; // teeb kab rau cov neeg ua haujlwm tshiab lc.setLed (module, kab, kab, qhov tseeb); // qhib coj ntawm tus neeg ua haujlwm txoj haujlwm tshiab}
Tam sim no koj tau ntxiv cov joystick cia ua haujlwm ntawm thawj qhov teeb meem!
Kauj Ruam 5: Thawj Qib
Zoo, yog li tam sim no nws yog lub sijhawm kom nkag mus rau qhov tseem ceeb ntawm txoj haujlwm, cov teeb meem! Cov teeb meem yog dab tsi tiag tiag ua qhov no, "Ntiaj Teb Cov Kev Ua Si Nyuaj Tshaj." Yog li yog tias koj xav ua qhov kev ua si tom qab ntawd koj yuav tsum ntxiv qhov no rau koj cov cai:
byte teeb meem [LEVELS] [SCENES] [COLUMNS] [ROWS] = {// peb qib, 8 scenes, 8 collums, 8 row
{{{{1, 1, 1, 1, 1, 1, 1, 0, 0},} thawj qib, thawj qhov tshwm sim {0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 1, 1, 1, 1, 1}, { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}, {{1, 1, 1, 1, 1, 0, 0, 1}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, // qib thib ib, qhov xwm txheej thib ob {0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {1, 0, 0, 1, 1, 1, 1, 1, 1 }, {0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}}, {{1, 1, 1, 1, 0, 0, 1, 1}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, // qib thawj, thib peb scene {0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {1, 1, 0, 0, 1, 1, 1, 1}, {0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}}, {{1, 1, 1, 0, 0, 1, 1, 1}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, // thawj qib, plaub qhov xwm txheej {0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {1, 1, 1, 0, 0, 1, 1, 1}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}}, {{1, 1, 0, 0, 1, 1, 1, 1}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, // qib thawj, qhov chaw thib tsib {0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {1, 1, 1, 1, 0, 0, 1, 1}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0}}, {{1, 0, 0, 1, 1, 1, 1, 1, 1}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, // qib thib ib, qhov tshwm sim thib rau {0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0}, { 1, 1, 1, 1, 1, 0, 0, 1}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}}, {{0, 0, 1, 1, 1, 1, 1, 1, 1}, // qib thib ib, tshwm sim zaum xya {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 }, {1, 1, 1, 1, 1, 1, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}}, {{0, 1, 1, 1, 1, 1, 1, 1, 1}, // thawj qib, yim scene {0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {1, 1, 1, 1, 1, 1, 1, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0}}}, tsis muaj teeb meem teeb tsa () {initialize_modules (); // qhib thiab teeb tsa tag nrho plaub qhov coj ua qauv pib_level (0); lub voj void () {move_player (); // pib lub voj los ntawm kev txheeb xyuas yog tias tus neeg ua si txav yog (sib tsoo ()) {// txheeb xyuas qib sib tsoo = 0; // yog kev sib tsoo muaj tseeb, pib dua qib pib_level (qib); // rov pib game} lwm qhov yog (ncua sij hawm_count == teeb meem_delay) {// yog tias tsis muaj kev sib tsoo txav teeb meem txhua lwm qhov ncua kev txav chaw (); ncua_count = 0; } lwm yam delay_count ++; ncua (ncua sijhawm); // ncua los ntawm kev ua si nrawm}
Thiab qhov ntawd yog thawj qhov teeb meem! Yog tias koj tau dhuav ntawm qhov no ua koj thawj qib ces koj ib txwm tuaj yeem hloov pauv bytes, tsuas yog nco ntsoov koj yuav tsum muaj yim qhov xwm txheej sib txawv! Cia peb mus txuas ntxiv mus rau cov kauj ruam tom ntej, nrhiav kev sib tsoo!
Kauj Ruam 6: Kev Tshawb Fawb Txog Kev Sib Tsoo
Cov kauj ruam no yog lwm qhov tseem ceeb ntawm qhov kev ua si, nrog nws nws yuav tsis muaj kev sib tw ntau! koj tuaj yeem tsuas yog xaws koj txoj hauv kev hla cov teeb meem nrog tsis muaj qhov tshwm sim! uas yuav tsis lom zem ntau txoj cai? yog li cia peb ua qhov kev sib tw nyuaj dua (thiab lom zem dua!) los ntawm kev ntxiv ntu ntu ntawm txoj haujlwm:
void voj () {
move_player (); // pib lub voj los ntawm kev txheeb xyuas yog tias tus neeg ua si txav yog (sib tsoo ()) {// txheeb xyuas qib sib tsoo = 0; // yog kev sib tsoo muaj tseeb, pib dua qib pib_level (qib); // rov pib game} lwm qhov yog (ncua sij hawm_count == teeb meem_delay) {// yog tias tsis muaj kev sib tsoo txav teeb meem txhua lwm qhov ncua kev txav chaw (); ncua_count = 0; } lwm yam delay_count ++; ncua (ncua sijhawm); // ncua los ntawm kev nrawm ntawm game} int kev sib tsoo () {// txheeb xyuas yog tias tus neeg uas ua ntawv tsoo qhov teeb meem hauv qhov module = players_x/8; kem = players_x%8; kab = players_y; yog (module> 0) yog (teeb meem [qib] [xwm txheej] [kab ntawv] [kab] == 1) // yog tias tus neeg ua haujlwm txoj haujlwm zoo ib yam li kev rov qab los khuam kev (1); // kev sib tsoo kuaj pom qhov tseeb rov qab los (0); // tsis muaj kev sib tsoo rov qab tsis tseeb}
Thiab koj mus! tam sim no koj tuaj yeem txaus siab rau qhov kev ua si ntau ntxiv! Tam sim no kuv yuav qhia koj yuav ua li cas rau program ob qib kawg ntawm qhov kev ua si! koj yuav luag tiav nrog cov lus qhia no, thiab kuv paub tseeb tias koj npaj tau sim nws!
Kauj Ruam 7: Ob Qib Kawg
Tau los txog qhov kawg ntawm kev qhia, ob qib kawg no yog txhua yam koj xav tau kom ua tiav qhov kev ua si no. Tom qab ntawd koj tuaj yeem sim nws rau koj tus kheej! nov yog qhov chaws:
byte teeb meem [QAUV] [SCENES] [COLUMNS] [ROWS] = {// qib thib ob thiab thib peb, 8 ntu, 8 kab, 8 kab
{{{1, 0, 0, 0, 0, 0, 0, 0, 1}, // theem ob, thawj qhov xwm txheej {0, 1, 0, 0, 0, 0, 0, 1, 0}, {0, 0, 1, 0, 0, 1, 0, 0}, {0, 0, 0, 1, 1, 0, 0, 0}, {0, 0, 0, 1, 1, 0, 0, 0}, { 0, 0, 1, 0, 0, 1, 0, 0}, {0, 1, 0, 0, 0, 0, 1, 0}, {1, 0, 0, 0, 0, 0, 0, 1}}, {{1, 1, 0, 0, 0, 0, 0, 1}, // qib thib ob, qhov xwm txheej thib ob {0, 0, 1, 0, 0, 0, 0, 1}, {0, 0, 0, 1, 0, 0, 1, 0}, {0, 0, 0, 1, 1, 1, 0, 0}, {0, 0, 1, 1, 1, 0, 0, 0 }, {0, 1, 0, 0, 1, 0, 0, 0}, {1, 0, 0, 0, 0, 0, 1, 0, 0}, {1, 0, 0, 0, 0, 0, 0, 1, 1}}, {{0, 1, 0, 0, 0, 0, 0, 0, 0}, // qib thib ob, qhov xwm txheej thib peb {0, 0, 1, 1, 0, 0, 0, 1,}, 0, 0}, {0, 1, 0, 0, 1, 0, 0, 0}, {0, 1, 0, 0, 0, 1, 1, 0}, {0, 0, 0, 0, 0, 0, 1, 0}}, {{0, 0, 1, 0, 0, 0, 0, 0, 0}, // theem thib plaub ntu {0, 0, 0, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 1, 0, 0, 1}, {0, 1, 1, 1, 1, 1, 0, 1, 0}, {0, 1, 0, 1, 1, 1, 1, 0}, {1, 0, 0, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 1, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0}}, {{0, 0, 0, 1, 0, 0, 0, 0, 0}, // qib thib ob, tsib th scene {0, 0, 0, 0, 1, 0, 0, 0}, {0, 0, 1, 0, 0, 1, 0, 0}, {0, 1, 0, 1, 1, 0, 0, 1}, {1, 0, 0, 1, 1, 0, 1, 0}, {0, 0, 0, 0, 1, 0, 0, 1, 0}, {0, 0, 0, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 0, 0, 0}}, {{0, 0, 0, 0, 0, 1, 0, 0, 0}, // qib thib ob, qhov tshwm sim thib rau {0, 0, 0, 0, 0, 1, 0, 0}, {0, 1, 1, 0, 0, 1, 0, 0}, {1, 0, 0, 1, 1, 0, 0, 0}, {0, 0, 0, 1, 1, 0, 1, 1}, {0, 0, 1, 0, 0, 1, 1, 0}, {0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 1, 0, 0, 0, 0, 0}}, {{0, 0, 0, 0, 0, 1, 0, 0}, // qib thib ob, qhov tshwm sim zaum thib {0, 0, 0, 0, 0, 1, 0, 0}, {1, 1, 1, 0, 0, 1, 0, 0}, {0, 0, 0, 1, 1, 0, 0, 0}, {0, 0, 0, 1, 1, 0, 0, 0}, {0, 0, 1, 0, 0, 1, 1, 1}, {0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 1, 0, 0, 0, 0, 0, 0}}, {{0, 0, 0, 0, 0, 0, 0, 1,, 0}, // theem thib yim yim tshwm sim {1, 1, 0, 0, 0, 0, 1, 0}, {0, 0, 1, 0, 0, 1, 0, 0}, {0, 0, 0, 1, 1, 0, 0, 0}, {0, 0, 0, 1, 1, 0, 0, 0}, {0, 0, 1, 0, 0, 1, 0, 0}, {0, 1, 0, 0, 0, 0, 1, 1}, {0, 1, 0, 0, 0, 0, 0, 0, 0, 0}}}, {{{0, 1, 0, 0, 0, 0, 0, 0, 1}, // qib peb, thawj qhov xwm txheej {0, 0, 0, 1, 0, 0, 1, 0}, {0, 0, 1, 0, 0, 1, 0, 0}, {0, 1, 0, 0, 0, 1, 0, 0}, {1, 0, 0, 1, 0, 0, 1, 0}, {0, 0, 1, 0, 0, 1, 0, 0}, {0, 1, 0, 0, 1, 0, 0, 1}, {0, 0, 0, 1, 0, 0, 0, 0, 0} }, {{0, 0, 0, 0, 1, 0, 0, 1}, // qib thib peb, qhov xwm txheej thib ob {1, 0, 0, 0, 0, 0, 0, 1, 0}, {0, 0, 1, 0, 0, 1, 0, 0}, {0, 1, 0, 0, 1, 0, 0, 1}, {1, 0, 0, 1, 0, 0, 0, 0}, {0, 0, 1, 0, 0, 1, 0, 0}, {0, 0, 0, 0, 1, 0, 0, 0, 0}, {1, 0, 0, 1, 0, 0, 1, 0}}, {{0, 1, 0, 0, 1, 0, 0, 1}, // qib thib peb, peb qhov xwm txheej {0, 0, 0, 1, 0, 0, 1, 0}, { 0, 0, 0, 0, 0, 1, 0, 0}, {0, 1, 0, 0, 1, 0, 0, 1}, {1, 0, 0, 1, 0, 0, 1, 0}, {0, 0, 0, 0, 0, 0, 0, 0}, {0, 1, 0, 0, 0, 0, 0, 0, 1}, {1, 0, 0, 1, 0, 0, 0, 0}}, {{0, 0, 0, 0, 1, 0, 0, 1}, // qib peb, plaub qhov xwm txheej {1, 0, 0, 1, 0, 0, 1, 0 }, {0, 0, 1, 0, 0, 1, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0, 1}, {1, 0, 0, 0, 0, 0, 0, 1, 0}, {0, 0, 1, 0, 0, 1, 0, 0}, {0, 1, 0, 0, 0, 0, 0, 0, 0}, {1, 0, 0, 1, 0, 0, 1, 0}}, {{0, 1, 0, 0, 1, 0, 0, 1}, // qib peb, ntu thib tsib {0, 0, 0, 1, 0, 0, 1, 0}, {0, 0, 1, 0, 0, 1, 0, 0}, {0, 1, 0, 0, 0, 0, 0, 0, 1}, {0, 0, 0, 1, 0, 0, 1, 0}, {0, 0, 1, 0, 0, 1, 0, 0}, {0, 1, 0, 0, 1, 0, 0, 1}, {1, 0, 0, 0, 0, 0, 0, 0, 0}}, {{0, 0, 0, 0, 0, 1, 0, 0, 1}, // qib thib peb, qhov tshwm sim thib rau {1, 0, 0, 1, 0, 0, 1, 0}, {0, 0, 1, 0, 0, 0, 0, 0}, {0, 0, 0, 0, 1, 0, 0, 1}, {1, 0, 0, 1, 0, 0, 1, 0}, {0, 0, 1, 0, 0, 1, 0, 0}, {0, 1, 0, 0, 0, 0, 0, 0, 0}, {1, 0, 0, 1, 0, 0, 1, 0}}, {{0, 1, 0, 0, 1, 0, 0, 1}, // qib thib peb, qhov tshwm sim zaum thib {0, 0, 0, 1, 0, 0, 0, 0}, {0, 0, 0, 0, 0, 1, 0, 0}, {0, 1, 0, 0, 1, 0, 0, 1}, {1, 0, 0, 1, 0, 0, 1, 0}, {0, 0, 1, 0, 0, 0, 0, 0, 0}, {0, 1, 0, 0, 1, 0, 0, 1}, {1, 0, 0, 1, 0, 0, 0, 0}}, {{0, 0, 0, 0, 0, 1, 0, 0, 0, 0}, // qib thib peb, qhov xwm txheej thib yim { 1, 0, 0, 0, 0, 0, 1, 0}, {0, 0, 1, 0, 0, 1, 0, 0}, {0, 1, 0, 0, 1, 0, 0, 1}, {1, 0, 0, 1, 0, 0, 0, 0}, {0, 0, 1, 0, 1, 0, 1, 0, 0}, {0, 1, 0, 0, 1, 0, 0, 0}, {1, 0, 0, 1, 0, 0, 1, 0}}}};
Thiab qhov ntawd yog nws! koj txhua tus tau npaj siab ua kom tiav Worlds Hardest Game. Tsis tas li ntawd tag nrho Arduino code tau txuas hauv qab no.
Pom zoo:
GlobalARgallery - Thoob Ntiaj Teb Kev Tshaj Tawm Kev Tshaj Tawm: 16 Cov Kauj Ruam
#GlobalARgallery - Thoob Ntiaj Teb Tshaj Qhia Kev Muaj Peev Xwm: #GlobalARgallery yog lub sijhawm rau cov tsev kawm ntawv (thiab lwm tus) txhawm rau sib txuas tsis sib xws thoob plaws ntiaj teb thiab sib qhia kev paub, kos duab, dab neeg, sijhawm, nthuav tawm, nthuav tawm, thiab lwm yam uas koj tuaj yeem xav. Tag nrho cov no tshwm sim hauv A
Tsim Kev Tsim Kho - Kev Hloov Kho ntawm Digital Bonsai Tree: 15 Cov Kauj Ruam (nrog Duab)
Kev Tsim Tsim Tsim - Kev Hloov Kho ntawm Digital Bonsai Tree: Kuv pib ua haujlwm nrog Pab Pawg Tshawb Fawb ntawm Autodesk nrog Dreamcatcher txog 2 xyoos dhau los. Lub sijhawm ntawd kuv tau siv nws los tsim lub dav hlau. Txij li lub sijhawm ntawd kuv tau kawm paub hlub lub cuab yeej software no vim nws tso cai rau kuv tshawb fawb ntau txhiab tus qauv
Yuav Ua Li Cas Tsim Lub Ntiaj Teb Ntse Hauv Ntiaj Teb hauv 10 Hnub: 12 Kauj Ruam
Yuav Tsim Li Cas Lub Ntiaj Teb Ntse Hauv Ntiaj Teb hauv 10 Hnub: Kuv tab tom ua haujlwm uas coj cov tub ntxhais kawm los ntawm Tuam Tshoj, Philippines thiab Asmeskas ua ke ntawm pab pawg los sib tw hauv World Robot Olympiad hauv Long Beach, California. Lub ntsiab lus ntawm xyoo no yog Lub Nroog Ntse. Yog li peb tab tom tsim Lub Nroog Ntse los ntawm Ju
Thoob Ntiaj Teb (Ntiaj Teb Ntse): 5 Kauj Ruam
Nyob ib ncig ntawm lub Ntiaj Teb (Smart Globe): Txoj haujlwm no tau tsim rau chav kawm MIT, Qhia Ua (15.351). Peb txoj haujlwm, hu ua "Thoob Ntiaj Teb", yog lub ntiaj teb ntse uas teb rau cov neeg siv nkag mus hauv ib lub nroog mus rau hauv lub davhlau ya nyob twg. Thaum lub nroog nkag mus, lub ntiaj teb tig ntawm lub cav txuas rau kuv
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: 6 Kauj Ruam
Arduino Neeg Hlau Nrog Kev Nyob, Kev Qhia thiab Qib Kev Sib Hloov (Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) Tswj los ntawm Lub Suab Siv Bluetooth Module thiab Kev Siv Tus Neeg Siv Hluav Taws Xob: Cov lus qhia no piav qhia yuav ua li cas thiaj tsim tau Arduino Robot uas tuaj yeem txav mus raws qhov xav tau (Forward, Backward) , Sab laug, Txoj Cai, Sab Hnub Poob, Sab Hnub Poob, Sab Qaum Teb, Sab Qab Teb) xav tau Kev nrug deb hauv Centimeters siv lub suab hais kom ua. Neeg hlau kuj tseem tuaj yeem txav tau tus kheej