Cov txheej txheem:

Hauv-Kab LED Zaub Arduino Games: 7 Kauj Ruam (nrog Duab)
Hauv-Kab LED Zaub Arduino Games: 7 Kauj Ruam (nrog Duab)

Video: Hauv-Kab LED Zaub Arduino Games: 7 Kauj Ruam (nrog Duab)

Video: Hauv-Kab LED Zaub Arduino Games: 7 Kauj Ruam (nrog Duab)
Video: Step-by-step Nähanleitung für absolute Anfänger I Diese Hose kann wirklich jeder OHNE NÄHKURS nähen 2024, Kaum ib hlis
Anonim
Image
Image
Loj Componets
Loj Componets

aka LED Ladder Display Game System.

Qhov Attiny-85 tso nrog kho vajtse thiab software los ua qhov kev ua si ntim "vis dis aus" game, ntawm kab hauv kab LED.

Nws muaj multiplexed 12 LED tus ntaiv zaub, thiab txhawb nqa txog 6 khawm nkag thiab xaiv cov suab tso tawm.

Nws tau ntim nrog 4 kev ua si ntawm kev txawj, nrog ntau qib nyuaj thiab qee qhov kev hloov pauv (hloov kho rau 16 kev ua si, thaum siv nrog ATMega MCU).

[Yees duab]

Kauj Ruam 1: Cov Componets loj

Kuv ua kuv qhov project modularly (ob qhov sib dhos sib dhos). Lub ntsiab lus tso saib ua ke; uas tuaj yeem siv los ntawm nws tus kheej sawv ib leeg. Thiab ib lub khawm input sub-los ua ke. Txoj kev ntawd kuv tuaj yeem siv lub pob lossis cov duab sib dhos dua hauv lwm qhov haujlwm. Qhov no tseem tso cai rau kev xaiv hloov kho yooj yim.

Kuv kuj tau coj tawm txoj kab tswj hwm mus rau tus pin-header rau LED ntaiv sib dhos yog li kuv tuaj yeem siv Arduino Nano (lossis Uno), txhawm rau txhim kho software rau nws ntxiv rau siv nws hauv lwm qhov haujlwm. Digispark yuav tsis ua haujlwm vim lwm yam khoom siv ntawm nws lub rooj tsav xwm hauv Circuit.

Kuv tau xaiv los siv tib tus lej ua haujlwm rau tus ntaiv LED zoo li ua ntej cov lus qhia ua kom yooj yim rau cov neeg uas twb muaj cov khoom siv kho vajtse zoo los siv cov software hauv cov lus qhia no, txawm hais tias kuv tsis pom cov haujlwm uas tau ua rau qhov kev xav meej hauv lub software.

Ob kab ntawm cov qauv yog PB4 thiab hauv av. Raws li txhua yam uas nyob ntawm ntau lub khawm sib dhos yog cov resisters thiab hloov pauv yog li nws tsis yog polarity nyob, thiab thim rov qab qhov kev sib txuas teeb meem tsis.

Nrog kev txhawb nqa ntawm ntau lub khawm ntau yam kev ua si ntau dua (lossis daim ntawv thov) tuaj yeem ua tiav. Ob qhov kev ua si hauv cov lus qhia no yog ua si zoo tshaj plaws nrog ob lub khawm. Plaub lub khawm tseem ceeb tuaj yeem siv ncaj qha nkag mus rau qhov kev ua si cuam tshuam. Tsis ntev kuv yuav siv qhov kev ua si uas nyob ntawm kev siv tag nrho plaub lub khawm tseem ceeb.

Txoj haujlwm no siv txog rau khawm. Plaub lub ntsiab BTN 1-4, Cov nyees khawm no tuaj yeem tshawb pom ib tus zuj zus txawm tias ob qho ntawm lawv raug nias ib txhij. Lwm qhov ob yog cov khawm tshwj xeeb, thawj zaug muaj qhov sib npaug ntawm ib lub pob hauv cov phiaj xwm yav dhau los uas ua rau muaj kev sib txuas nyuaj ntawm PB4 cov tswv yim rau hauv av, Kuv hu rau BTN0, lossis ESC raws li qhov hloov pauv no ib txwm tuaj yeem kuaj pom thiab yuav thaiv qhov kev tshawb nrhiav ntawm ib qho ntawm lwm tus. Lwm qhov tshwj xeeb tshwj xeeb yog Function-Key, yog nias thaum BTN 0-4 raug thawb nws tuaj yeem nkag siab thiab siv los hloov kev ua haujlwm.

Hauv qhov txuj ci kev kos duab kuv siv:

  • FncKey+Btn1 rov qab rau hom ntawv qhia zaub mov
  • FncKey+Btn2 qib nyuaj ua ntej (yog tias siab tshaj rov qab mus rau qis tshaj)
  • FncKey+Btn4 ncua tam sim (ntaus ib qho tseem ceeb kom tsis ncua)
  • FncKey + Btn 0 lossis 3 tsis tau txhais.

Kauj Ruam 2: Daim Ntawv Teev Npe

Daim Ntawv Teev Npe
Daim Ntawv Teev Npe

Qhov yuav tsum tau ua

  • LEDs, liab, daj, ntsuab thiab xiav zoo li no
  • Cov laug cam PCB zoo ib yam cov khoom koj yuav tsum tau yuav lub rooj tsav xwm loj dua, thiab txiav nws kom loj me.
  • tus pin dip socket cov khoom sib xws
  • Attiny-85 nti
  • cov neeg tawm tsam
  • khawm hloov siv: 12x12x8mm thiab 6x6x6mm PCB Momentary Tactile Push Buttons

pom zoo:

  • buzzer 5v, hom nquag
  • ib Popsicle stick
  • 2.54mm tus pin header strip
  • 30 ga xaim thiab xaim-qhwv cov cuab yeej https://www.ebay.com/itm/351798901037 qhov txuas saum toj no yog xaim uas zoo li 36 ga. Kuv vam tias kuv paub txog qhov kev pom zoo rau qhov tseeb 30 ga. xaim

Kauj Ruam 3: Kev Tsim Kho Kom Zoo

Kev Tsim Kho Tshwj Xeeb
Kev Tsim Kho Tshwj Xeeb
Kev Tsim Kho Tshwj Xeeb
Kev Tsim Kho Tshwj Xeeb
Kev Tsim Kho Tshwj Xeeb
Kev Tsim Kho Tshwj Xeeb
Kev Tsim Kho Tshwj Xeeb
Kev Tsim Kho Tshwj Xeeb

Ntawm lub rooj sib tham tseem ceeb kuv tau siv hluav taws xob zoo ib yam li lwm cov phiaj xwm LED ua ntej, uas koj yuav xav tau xa mus rau cov lus qhia kev tsim kho ntxiv

Txawm li cas los xij kuv tsis siv sab nrauv rub cov neeg tawm tsam ntawm cov tswv yim sib piv A2 (PB4), kuj kuv siv Liab, Daj, Ntsuab thiab Xiav LEDs, hloov tag nrho ib qho xim, uas yog qhov xav tau rau qee qhov kev ua si uas kuv tsim rau kho vajtse no.

Nov yog I/O txoj haujlwm raws li qhov xav tau los ntawm daim duab txuas nrog software:

Qhov project MCU AT-85 Uno/Nano

Names name pin# brd name --------- ---- ---- --------- L1-3 PB3 2 D-11 Yel L4-6 PB0 5 D-8 Ntsuab L7-9 PB1 6 D-9 Xiav L10-11 PB2 7 D-10 Ain PB4/A2 3 A-2 Suab PB5 1 D-3

Qhov sib txawv tseem ceeb yog tias kuv muaj ob lub khawm txuas rau PB4. Thawj zaug ncaj qha los ntawm PB4 mus rau hauv av tab sis tsis muaj sab nraud rub tawm cov neeg tawm tsam (Kuv hu qhov no BTN0). Kuv kuj tseem muaj lub khawm hloov (uas kuv hu ua BTN1) txuas nrog 75Kohm hauv kab rau hauv av. Lub rooj tsavxwm tseem ceeb no tuaj yeem siv tau yam tsis muaj "khawm" los ua ke pawg thawj coj, tab sis nrog qee qhov kev ua haujlwm tsawg.

Tam sim no txwv cov neeg tawm tsam mus rau teeb tsa ntawm LED yuav tsum raug xaiv raws qhov ci ntawm cov xim sib txawv LEDs uas koj siv thiab qhov ci uas koj xav tau. Kuv tau xaus nrog 91 Ohms rau lub teeb liab, 75 daj, 430 ntsuab thiab 150 Ohms rau xiav. Cov txiaj ntsig no yuav zoo li qis, tab sis nco ntsoov cov leds yog sib npaug (feem ntau ntau dua <100% ntawm lub sijhawm)

Kuv siv 3 hli coj thiab cais lawv sib nrug me ntsis. Kuv muaj ob txhais ceg ntawm LED hla ib Popsicle lo. Txoj hauv kev no lawv txhua tus sawv ib yam nkaus thiab siab dua txhua lwm yam. Kuv npaj siab, ntawm qee kis, txhawm rau teeb tsa chav nrog tsuas yog LEDs nthuav tawm los ntawm tus ncej.

Kuv xaiv los xaim-qhwv cov coj kev sib txuas. Tsis muaj daim ntawv tshwj xeeb luam tawm ntawm lub rooj tsavxwm qhov no yooj yim dua li ua kom zoo dua hauv qhov chaw nruj nrog ntau qhov kev sib txuas; tsis nyiam tsim luv thiab yooj yim dua rau rov ua dua thaum muaj qhov ua yuam kev. Nrog txhua qhov dej ntws hauv thiab ib puag ncig cov tswj hwm micro hauv milliamps 30 ga xaim yog txaus txaus.

Khawm thiab lwm yam resisters:

Kuv tau tsim qhov kev teeb tsa tshwj xeeb (xaiv ob npaug Y) ntawm cov neeg tawm tsam thiab cov nyees khawm, xws li cov software tuaj yeem pom tus kheej thiab ob lub khawm nias (raws li ib txwm ua ke ntawm plaub lub khawm no tuaj yeem txheeb xyuas tau). Kuv tau sim ntau qhov kev teeb tsa nrog rau ntau qhov kev tawm tsam qhov tseem ceeb hauv daim ntawv nthuav tawm saib rau kev teeb tsa zoo tshaj plaws, tom qab ntawd simulate lawv hauv software muaj nws sim txhua qhov ua tau resister ua ke txhawm rau nrhiav teeb (uas kuv tab tom siv) uas yuav tsim qhov siab kawg ntawm qhov sib txawv me me ntawm kev nyeem analog ntawm ib qho & tag nrho ib leeg thiab ob lub khawm nias. Kuv npaj lawv kom Btn1, Btn4 thiab Btn1+4 tshwj xeeb yog qhov sib txawv.

Xa mus rau Diagram ntawm khawm network saum toj no.

Koj yuav tsum npog tag nrho cov xov hlau uas sib txuas rau PB4 (thiab muaj peev xwm hloov pauv kev sib cuag & cov neeg tawm tsam) nrog cov kab xev hluav taws xob, kua nplaum kub lossis lwm yam uas tsis ua txhua yam, vim tsuas yog mega-ohm tiv taus yuav pov tseg lub peev xwm txiav txim siab qhov hloov (es) raug nias; thiab ib qho kev sib cuag uas koj ua thaum tuav lub rooj sib tham yuav ua li ntawd.

Cov Lus Qhia Tom Qab txuam nrog:

4-Khawm-Ua Si-Siv-Ib-Analog-Cov Tswv Yim/

Dual-Power-for-Your-Portable-Micro-Controller-Proj/

3D-Luam-Case-for-Inline-LED-Display-Console-thiab/

Kauj Ruam 4: Kev Xaiv Ntxiv thiab Sau Ntawv

Ntxiv Kev Xaiv thiab Sau Ntawv
Ntxiv Kev Xaiv thiab Sau Ntawv

Yeem suab tso zis

Kev xaiv lub suab tso zis siv PB5. Kuv txuas nrog 5v buzzer, hauv kab nrog 150 Ohm resister los txwv nws qhov txwv tsis pub nrov nrov. Kuv pom zoo kom koj siv 50-200 Ohm. Ib tus tuaj yeem sib txuas lub suab nrov nrog lub hau (2-10uf) kom nws tsis muaj zog, lossis siv tus tsav tsheb 10 hli 32 Ohm hais lus tawg tawm ntawm cov txheej txheem ntawm lub suab nrov nrov pob ntseg pob, tsis txhob siv cov resister thiab buzzer. Kuv nyiam nws, rau game suab, zoo dua li kuv muaj nws.

Los ntawm lub neej ntawd Attiny-85 siv PB5 los ua qhov pib dua, siv tau zoo txhais tau tias lub suab yuav ua haujlwm tab sis nws yuav tsis muaj qhov tsis zoo ntawm lwm qhov haujlwm. Thaum siv Nano lossis Uno lub suab yuav ua haujlwm (tawm nws D3). Txhawm rau tau txais lub suab nrog Attiny koj yuav tsum hloov pauv tus pin sab hauv kom lub software tuaj yeem siv PB5 ua qhov tso tawm. Muaj qhov tseem ceeb ramification hauv kev ua qhov no; thov xa mus rau cov no:

forum.arduino.cc/index.php?topic=178971.0

www.instructables.com/id/Simple-and-cheap-F…

thiab

Feem ntau thaum ua si ua si yuam kev lossis tsis ua tiav yuav ua rau lub suab nrov lossis suab paj nruag luv luv. Muaj cov nkauj zoo siab ua si thaum koj ua tiav qib lossis yeej, zoo li ntawm ping-pong. Kuv pom tias nrog lub suab txuas ntxiv ua rau muaj kev xyiv fab ntawm kev ua si.

Hloov cov game tswj hom khawm

Rau kuv cov menyuam loj, uas ntxhib ntawm cov cuab yeej, Kuv tau ua cov khawm sib cais ruaj khov, Btn1 thiab Btn4, thaum kawg ntawm cov xov hlau ntev. Saib duab. Kuv tau teeb tsa cov nyees khawm hauv cov tuav tuav; nrog 75Kohm inline nrog Btn1, thiab ~ 37Kohm inline nrog Btn4. Hauv koob nrog Btn4 Kuv yeej tau siv 36K, 33K lossis txawm tias muaj 39K tuaj yeem siv tau. Nrog rau lwm lub plunger cov nyees khawm hauv siab, nws yuav yog lub tswv yim zoo kom muaj cov kab sib cais ntawm lub taub hau taub hau, rau txuas sab nraud sab tes tuav cov khawm pom zoo li Btn1 thiab Btn4.

Yuav tsum muaj lub zog zoo

Rau lub zog siv hluav taws xob koj tuaj yeem siv USB 5v tso tawm ntawm PC, ntsiav tshuaj, phab ntsa them nyiaj, lub txhab nyiaj hluav taws xob lossis 3.7 Li roj teeb ncaj qha.

Kuv pom tias thaum siv lub zog los ntawm qee lub USB them nyiaj thiab ntau lub USB fais fab-txhab nyiaj uas kuv yuav pom flicking thiab qee zaus nco tus cwj pwm thiab txawm tias rov pib dua. Yog tias koj ntsib qhov no pom lub zog siv hluav taws xob nrog kev tswj hwm zoo dua, txwv tsis pub ntxiv qhov loj (100-1000uf) capacitor hla +V rau hauv av tuaj yeem pab tau.

Kev Xeem

Kuv kuj tau suav nrog qhov kev sim tshuaj los pab txheeb xyuas thiab debug koj cov cuab yeej. Txoj cai yog kev ua haujlwm-ua tau zoo, thiab xav tau kev tu kom huv. Kuv vam tias yuav mus txog qhov ntawd, tab sis txhais tau tias thaum Nws yuav tsum ua haujlwm rau koj cov kev xav tau. Kuv tsis ntev los no tsuas yog siv nws nrog Nano tsav cov zaub thiab cov keyboard sib dhos. Koj tuaj yeem siv ntau lub khawm los xaiv cov khoom los ntawm cov ntawv qhia zaub mov. Txhawm rau tawm qhov demo/sim dua ntaus ntau lub pob. Txhawm rau tawm ntawm qhov ntsuas qhov ntsuas (#4) ntaus FncKey+Btn1 lossis tuav EscKey (hauv av PB4), lossis rov ua dua lub zog.

Vim yog qhov sib txawv hauv MCU kev tawm tsam sab hauv thiab tiv thaiv kev tiv thaiv koj yuav xav tau qee qhov kev hloov kho kom txhua qhov ib leeg thiab ob lub khawm nias raug kuaj pom kom raug. Txhawm rau ua qhov no siv kev xeem-4 (xaiv qhov no xa mus rau kev piav qhia ntawm cov ntawv qhia ua haujlwm hauv qab no) ntawm qhov kev xeem. Nco ntsoov tias kuv tsis tau siv cov rub tawm sab nraud raws li kuv tau npaj ntxiv siv rau PB4 cov tswv yim uas tsis sib xws nrog ib qho rub tawm.

Kauj ruam 5: Software Txheej Txheem

Cov duab kos LadderGames.ino siv plaub qhov kev ua si suav nrog qee qhov hloov pauv.

Daim duab tuaj yeem rub tawm thiab khiav los ntawm ATtiny-85, Nano, Uno thiab lwm yam. koj ATtiny-85 nti:

Hloov lub moos sab hauv ntawm ATtiny85 rau 8MHz, raws li qhov ua tau zoo xav tau rau kev ua si. Xa mus:

forum.arduino.cc/index.php?topic=276606.0

Cov duab kos no yuav tsum tau rov qab sib xws nrog rau yav dhau los ATtiny-85 coj cov haujlwm ntaiv, tsis hloov pauv, tab sis yuav muaj qee qhov kev ua haujlwm tsawg.

Cov Ntawv Qhia Ua Haujlwm

Thaum pib muaj kev tshuaj xyuas kev noj qab haus huv hauv daim ntawv ntawm kev cheb hla cov LEDs thiab teeb tsa lub suab nrov. Tom qab ntawd nws mus rau hauv hom ntawv qhia zaub mov tseem ceeb. Txhua txheej ntawm LEDs ntawm ib qho xim tau teeb rau ob peb feeb ntxiv. Ib qho kev ua si raug xaiv los ntawm nias lub pob thaum qhov teeb tsa cuam tshuam, game 1: Liab, game 2: Daj, game 3: Green, game 4: Blue. Thaum nyob hauv cov ntawv qhia zaub mov hom Btn2, Btn3, Btn4 tuaj yeem raug nias kom mus ncaj qha rau kev ua si 2, 3, 4 feem. Thaum qhov kev ua si tau raug xaiv koj yuav tsum qhia qhov sib txawv uas koj xav tau. Rau txhua qhov kev hloov pauv muaj ib txheej ntawm cov xim leds yuav nyem. Tsuas yog nias lub pob ntawm qhov koj xav tau. Cov kev hloov pauv, "version", rau txhua qhov kev ua si tau piav qhia ntxiv hauv qab no.

Version ib ntawm tag nrho plaub qhov kev ua si tuaj yeem ua nrog khawm ib zaug. Tog twg los ib qho txuas ntawm PB4 thiab hauv av (Btn-0) zoo li yav dhau los LED tus ntaiv qhia, lossis nrog qhov hloov pauv uas txuas 75k load rau hauv av (Btn-1). Ib qho ntawm cov no yuav ua hauv kev ua si thaum cov lus qhia hais txog lub pob tshwj xeeb tsis nias.

Txhawm rau tawm ntawm txhua qhov kev ua si koj tuaj yeem siv FncKey+Btn1, tuav EscKey (aka: Btn0) cia li 1-2 vib nas this lossis hloov lub zog.

Kauj Ruam 6: Game Game

Game 1: Push-It

Nov yog kev hloov kho ntawm kuv 'Push-It' game los ntawm ib qho ntawm kuv cov lus qhia ua ntej

www.instructables.com/id/Play-a-Game-with-a…

Lub hom phiaj ntawm qhov kev ua si yog thawb ntsais suav thiab tus lej ntawm cov teeb ci LEDs kom ntau li ntau tau. Push-It pib tawm nrog tus lej ntawm qhov muag, uas yuav rov ua dua. Yog tias koj thawb lub pob tom qab nyem kawg hauv kab ntawv thiab thaum ib qho ntxiv yuav muaj peev xwm muaj nyob tom ntej LED yuav pom thiab suav flash yuav nce ntxiv ib qho. Tab sis yog tias koj 'thawb' ua ntej lossis tom qab lub sijhawm ntawm qhov xav tau-yuav tsum tau nyem ntxiv es tsis suav cov teeb nyem hauv cov teeb yuav raug txo.

Txhua lub sijhawm koj tswj kom nce qhov suav suav qib ntawm cov teeb meem tau nce ntxiv raws li lub sijhawm ua kom nrawm dua me ntsis, ua rau nws nyuaj dua thiab nyuab dua kom nce mus rau suav suav ntau dua.

Tus lej suav tam sim no tau muab khaws cia rau hauv EEPROM nco rau rov pib dua tib qib tom qab.

Game 2: Ping-Pong

Zoo (txawm tias tsuas yog) ob tus neeg sib tw ua si ntawm no; qhov twg pob (ib lub teeb ci) mus los ntawm ib sab mus rau lwm qhov, nrawm dua thiab nrawm dua, txhua lub sijhawm nws tau 'ntaus' rov qab.

Kuv xub ua qhov no ib kab ntawm cov teeb ua si hla lub vaj huam sib luag pem hauv ntej khawm-teeb ntawm lub dav hlau aerospace super-mini computer xyoo 1970s.

Txhawm rau ntaus lub pob rov qab thiab tawm qhov tsim nyog duav yuav tsum ntaus (khawm nias) nws thaum nws nyob hauv txoj haujlwm kawg (LED kawg). Thawj sab kom plam plam, thiab lub teeb ntawm sab yeej.

Muaj ob qhov kev hloov pauv, ib tus xav tau tsuas yog ib lub pob (Btn 0 lossis 1), uas yuav ntaus pob ntawm qhov kawg; thiab qhov hloov pauv thib ob, yog rau ob tus tib neeg lub taub hau, uas xav tau ob lub khawm; khawm 1 ntawm sab laug thiab khawm 4 lossis 0 ntawm lwm qhov. Kev siv Khawm 1 & 4 yog qhov zoo dua, vim tias lawv yuav tsis cuam tshuam nrog ib leeg; txhua tus tuaj yeem raug ntaus kom rov pob los ntawm nws qhov kawg tsis hais lub xeev ntawm lwm lub pob.

Tus yeej ntawm kev sib tw ib txwm yog tus server rau tom ntej.

Game 3: Shooting Gallery

Tua txhua lub hom phiaj (teeb) kom tiav qib. Hauv txhua qib siab dua qhov kev nqis tes ua sai dua.

Muaj ob qhov hloov tshiab; ib qho uas qhov chaw raug tsau thiab lub hom phiaj txav mus thiab lwm qhov chaw hloov chaw thiab lub hom phiaj tseem nyob. Hauv txhua qhov xwm txheej tsoo tsoo lub hom phiaj teeb; thiab kev nco ua rau lub hom phiaj tshwm tuaj. Thaum lub hom phiaj nyob hauv qhov pom pom lub teeb ci dua, txwv tsis pub nws ploj.

Hauv version ib qhov pom pib ntawm sab laug (hauv qab) thiab ntsuas sab xis. Hauv version 2 qhov pom pom tau kho nyob hauv nruab nrab thaum lub hom phiaj txav hla txoj cai mus rau sab laug. Los ntawm saib cov cai muaj cov dab phem 3 & 4 uas tuaj yeem qhib tau, tab sis koj tso koj tus kheej kev noj qab haus huv ntawm koj tus kheej txoj kev pheej hmoo.

Game 4: JumpMan

Lub tswv yim yog tias koj tab tom khiav los ntawm qib kev ua si uas cov khoom tuaj nrog uas koj yuav tsum dhia hla, thaum koj nce lawv tuaj sai dua. Hauv lwm qhov kev ua si version kuj tseem muaj lub taub hau khoom uas koj yuav tsum tau ua hauv qab.

Hauv version ib tsuas muaj cov khoom kom dhia hla. Txhawm rau dhia koj yuav tsum nias lub pob thaum cov khoom mus rau lub cell kawg ntawm sab laug; uas ci thaum qhov no tshwm sim. Txhawm rau dhia 2 lossis ntau dua cov khoom sib law liag koj yuav tsum dhia (nias) thawj zaug thiab tuav lub pob kom tas.

Hauv version 2 hla lub taub hau (flashing) cov khoom raug ntxiv. Cov no tau dhia los ntawm 'dhia thaum lub xov tooj ntawm tes ua ntej nws thiab tso tawm thaum nws nyob hauv qhov kawg ntawm tes. Tsuas yog ib qho nyiaj siv ua haujlwm tuaj yeem nyem ib zaug, yog li ib zaug dhau los koj tuaj yeem pom lwm tus (tsis flashing ua ntej) liab qab rau koj. Yuav tsis muaj kev sib tw ua haujlwm ib zaug tab sis lawv tuaj yeem nyob ib sab lossis ntau dua dhia (hom pob zeb) cov khoom.

Hauv game version 3 koj yuav tsum, mus rau, siv khawm cais rau cov khoom siv ua haujlwm (Btn- 2, 4 lossis 0 koj xaiv); jumps ces xav tau Btn-1.

Thaum koj tau tswj yav dhau los plaub yam khoom ntau dua li koj ua tsis tiav ntawm, koj nce qib; muaj lub suab thiab pom kev zoo siab, tom qab ntawd rov pib dua ntawm qhov nrawm dua. Tau txais los ntawm cov khoom sib law liag suav ib yam ib yam khoom ib leeg.

Kuv qhia koj kom luam tawm qhov hais txog kev ua si cov cai ntawm kev ua haujlwm thiab rov nyeem lawv ua ntej koj ua si game uas koj tsis tau ua si tsis ntev los no. Txwv tsis pub, koj tuaj yeem ua rau koj tus kheej chim siab; xav tias qhov kev ua si tsis ua haujlwm zoo thaum nws qhov tseeb nws yog, tab sis koj thiab kev ua si muaj ntau txoj hauv kev thiab kev cia siab. Kuv, kuv tus kheej, tau poob qis rau qhov no ntau dua li ob peb zaug.

Kauj Ruam 7: Hloov kho tshiab, Ua Si Ntxiv

Image
Image

Kuv tau ua 3D luam ntawv rooj plaub rau tsev In-Line LED ntaiv zaub thiab cov nyees khawm.

Kuv tau npaj ntau qhov kev ua si uas siv cov cuab yeej no. Txheeb lawv thiab muaj kev lom zem:

Kev Ua Si Tshiab los ntawm 'Whack a Mole' rau 'Tug of War'

Kaum Ob Hlis 2016. Tam sim no, qhov kawg ntawm qhov txuas saum toj no, muaj kev sib koom ua ke ntawm cov lej suav nrog txhua 12 qhov kev ua si.

Lub Ob Hlis 17, 2017: Nov yog qhov kev ua si zaum kawg rau qhov haujlwm no, tam sim no nrog 16 kev ua si (kos duab hauv qab). Qhov no yuav ua haujlwm ntawm ib qho MCU siv nrog 32KBytes ntawm flash program nco. Txhua yam txawm tias ib qho rau 3 lossis 4 ntawm 16 qhov kev ua si tuaj yeem muab tso rau hauv ATtiny. Kuv pom zoo siv Nano 3 arduinos. Qhov tseeb 4 qhov kev sib tw ntxiv yog 'Le Mans' sib tw, 'Txau' lub taub hau rau lub taub hau txau xim sib tw., 'PIG' ntaus pob basketball hoop, 'BiFunc' kev twv ua haujlwm sib tw ua si.

Nrog ntau dua thiab ntau yam kev ua si ntawm cov kev ua si no txhim kho rau lawv cov peev txheej ua si, kev lom zem rau txhua tus neeg ua si, yog ua tau. Kuv xav tias muaj ntau chav rau kev txhim kho hauv Le Mans sib tw ntawm kev teeb tsa kev teeb tsa thiab sijhawm ua si.

Kuv tau sau, kwv yees li 10 yam haujlwm ntxiv/ua si/ua haujlwm, qee qhov uas kuv cia siab tias yuav muaj nyob rau lub caij nplooj zeeg 2017.

Tsis tas li cov kab no tuaj yeem hloov kho rau 2 kab 2x16 LCD zaub, nrog ib kab ntawm cov khoom ua si thiab lwm qhov rau qee cov ntawv. Kuv tau ua qhov no me ntsis, tab sis, raws li kuv tau txhawb nqa nrog cov phiaj xwm kom deb li kuv pom tau, kuv tsis paub thaum twg lossis yog tias kuv yuav tau txais ib puag ncig rau nws. Yog li yog leej twg mob siab txhawb nqa thiab ua kom zoo dua cov kev ua si no rau 2x16 LCD thov qhia rau kuv thiab lwm tus.

Dhau li ntawm 4 qhov kev ua si tshiab ntawm no hauv Menu_16Games.ino, Kuv tau kaw kuv txoj haujlwm thiab tau tsim cov lus qhia ntsig txog: Inline LED game console Case thiab txhawb koj lub phiaj xwm MCU nqa tau

Kuv vam tias ntau tus siv sijhawm thiab… ZOO TSHAJ PLAWS.

Pawg ua si: 1– Liab 2- Daj 3- Ntsuab 4- Xiav

1 liab PushIt PingPong ShootEmUp JumpMan 2 Yel QuickDraw Tug_a_War Chicken Hot_Hands 3 Grn Le_Mans Txau PIG BiFunc 4 Blu SimonSays Whack_Mole Sea_Hunt Flip_d

Lub Cuaj Hli 2, 2017: Txhim kho kev ua haujlwm-muaj peev xwm nrog lub qub qias neeg nrov nrov sab nraum lub joystick nyees khawm, hauv lub taub hau game (pab pawg 2).

Lub Kaum Ob Hlis 13 2017: Txhim kho kev tuav khawm thawb thiab ntsuas kev daws teeb meem, kho qhov teeb meem me me. Kuv tau sim siv lub capacitor ntawm lub khawm analog input kab tab sis kom ua tau zoo nws ua rau kev ntsuas qeeb teeb tsa ua cov cim tsis raug lossis cov software tos ntev qhov kev ua si nrawm tau cuam tshuam.

Plaub Hlis 2018: Kuv tau pom tias 5/8 Compression Couplers ua lub cev zoo rau sab nraud lub plunger style khawm..

Nco ntsoov tias kuv tsim lwm txoj haujlwm, Lub Kaum Hli Ntuj tas los, uas tau tsim los ntawm cov lus qhia no kho vajtse. Nws yog nyob rau hauv Xus tus plig thiab tuaj yeem lom zem heev, tshwj xeeb tshaj yog rau menyuam yaus. Qhia: Ghostly-Psyche-Influenced-Devices

Pom zoo: