Cov txheej txheem:
- Khoom siv
- Kauj Ruam 1: Sau tag nrho Cov Khoom Siv
- Kauj ruam 2: Ua raws li Schematic
- Kauj Ruam 3: Yuav Ua Li Cas Game
- Kauj Ruam 4: Qib Nyuaj
Video: LED Whack-a-mole: 5 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Qhov kev ua si ntawm "Whack-a-mole" siv xya LEDs thiab tus joystick. Muaj 4 "moles" ntawm kuv lub rooj tsavxwm, sawv cev los ntawm sab laug los ntawm 3, 4, 5, thiab 6 LEDs. Ib ntawm plaub lub LEDs no yuav ci ntsa iab thiab yuav muab sijhawm tas los txhawm rau coj mus raws qhov xav tau ntawm lub joystick. Kuv teeb LEDs hauv txoj hauv kev kom cov kev xaiv ntawm tus joystick yog los ntawm sab laug mus rau sab xis: sab laug, nqes, nce, thiab sab xis.
Khoom siv
1. Arduino UNO
2. 7 LEDs (3 ntsuab, 2 liab, thiab 1 daj
3. 7 resistors 330 ohm
4. 1 ps2 joystick
5. Cov xov hlau
6. Ib lub thawv rau khoom me me
Kauj Ruam 1: Sau tag nrho Cov Khoom Siv
Koj tsis xav tau cov cuab yeej zoo nkauj los ua qhov haujlwm no. Hloov chaw ntawm 330-ohm resistors, koj tseem tuaj yeem siv 220-ohm resistors. Yog tias koj xim xim LEDs thiab cov xov hlau ces qhov ntawd ua rau nws yooj yim dua ua si ntawm qib nyuaj.
Kauj ruam 2: Ua raws li Schematic
Txhua yam yuav tsum phim cov duab tiag tiag ntawm txoj haujlwm tshwj tsis yog rau joystick. Kuv tus joystick muaj 5 tus pin, 4 ntawm qhov kuv tau siv: npe los saum toj mus rau hauv qab "Y", "X", "Bt", thiab "VCC", thiab "GND" txuas nrog GND thiab 5V ntawm Arduino, " X "thiab" Y "txuas nrog A0 thiab A1. Koj kuj tseem tuaj yeem siv tus lej 5 ntawm tus joystick tab sis koj yuav tau ntxiv ib qho ntxiv LED (ib qho ntxiv mole) thiab tseem ntxiv cov cai rau qhov ntawd.
Kauj Ruam 3: Yuav Ua Li Cas Game
Ob lub teeb nyob sab laug yog xim liab thiab ntsuab, uas qhia txog qhov tsis raug lossis raug xaiv. Lub teeb daj mus rau sab xis ntsais ntsais qhov suav rau qhov qhab nia siab tam sim no, thiab nws qhia txog qhov qhab nia txhua lub sijhawm ua tiav (thaum twg xaiv qhov tsis raug). Txhawm rau kom tau tus qhab nia, koj yuav tsum ntaus qhov sib thooj coj mus rau ntawm tus joystick thaum lub teeb pom kev zoo LED teeb nyob rau lub sijhawm tas sijhawm.
Kauj Ruam 4: Qib Nyuaj
Cov qib nyuaj uas kuv tau sau rau hauv kuv cov cai raws li qhov ruaj khov yog lub sijhawm hauv milliseconds uas tus neeg yuav tsum tau xaiv. Koj tuaj yeem cuam tshuam nrog cov sijhawm no los hloov qhov nyuaj rau koj tus kheej nyiam.
Pom zoo:
Arduino Tsheb Rov Qab Chaw Nres Tsheb Ceeb Toom - Cov Kauj Ruam ntawm Kauj Ruam: 4 Kauj Ruam
Arduino Tsheb Rov Qab Chaw Nres Tsheb Ceeb Toom | Cov kauj ruam ib kauj ruam: Hauv txoj haujlwm no, kuv yuav tsim qhov yooj yim Arduino Tsheb Rov Qab Tsheb Nres Tsheb Nres Sensor Siv Arduino UNO thiab HC-SR04 Ultrasonic Sensor. Qhov no Arduino raws Lub Tsheb Rov Qab ceeb toom tuaj yeem siv rau Kev Tshawb Fawb Txog Tus Kheej, Robot Ranging thiab lwm yam
Whack-a-moLED !!: 7 Kauj Ruam
Whack-a-moLED !!: Nov yog LED version ntawm Whack-a-Mole Game classic. Yeej ib txwm siv LED tawm ntawm 4 LEDs hloov lub teeb pom ntawm lub qhov thiab cov neeg ua si tua lub LED siv lub joystick tsis txhob tsoo lub mole
Tsev Automation Kauj Ruam ntawm Kauj Ruam Siv Wemos D1 Mini Nrog PCB Tsim: 4 Kauj Ruam
Tsev Automation Kauj Ruam Ib Leeg Siv Wemos D1 Mini Nrog PCB Tsim: Tsev Automation Kauj Ruam los ntawm Kauj Ruam siv Wemos D1 Mini nrog PCB Tsim cov tub ntxhais kawm ntawv qib siab. Tom qab ntawd ib tus ntawm peb cov tswv cuab tuaj
Whack a Button Multiplayer: 4 Kauj Ruam
Whack Button Multiplayer: Kev ua si zoo li Whack-a-Mole.Ua cov LEDs thiab cov nyees khawm. Muaj 2 hom: -Single player-Multiplayerin single player mode, muaj 3 qib: LEVEL_1: 1 diode rau 1 thib ob LEVEL_2: 2 diodes rau 1 thib ob LEVEL_3: 2 diodes rau 0.7 vib nas this Thiab rau qhov sib ntxiv
Whack-a-somebody: 6 Kauj Ruam (nrog Duab)
Whack-a-somebody: Txoj haujlwm no yog rau 'Creative Electronics', Beng Electronics Engineering xyoo 4 tus qauv ntawm University of Malaga, Tsev Kawm Ntawv Kev Sib Txuas Lus (www.etsit.uma.es). Hauv cov lus qhia no peb tau tsim tus kheej ntawm Whack-a-mole