Cov txheej txheem:

Kev Ntsuas Hluav Taws Xob rau Taum Hnab Toss Baseball Game: 8 Kauj Ruam (nrog Duab)
Kev Ntsuas Hluav Taws Xob rau Taum Hnab Toss Baseball Game: 8 Kauj Ruam (nrog Duab)

Video: Kev Ntsuas Hluav Taws Xob rau Taum Hnab Toss Baseball Game: 8 Kauj Ruam (nrog Duab)

Video: Kev Ntsuas Hluav Taws Xob rau Taum Hnab Toss Baseball Game: 8 Kauj Ruam (nrog Duab)
Video: Musicians talk about Buckethead 2024, Hlis ntuj nqeg
Anonim
Kev Ntsuas Hluav Taws Xob rau Taum Hnab Toss Baseball Game
Kev Ntsuas Hluav Taws Xob rau Taum Hnab Toss Baseball Game
Kev Ntsuas Hluav Taws Xob rau Taum Hnab Toss Baseball Game
Kev Ntsuas Hluav Taws Xob rau Taum Hnab Toss Baseball Game
Kev Ntsuas Hluav Taws Xob rau Taum Hnab Toss Baseball Game
Kev Ntsuas Hluav Taws Xob rau Taum Hnab Toss Baseball Game

Cov Kws Qhia Ntawv no yuav piav qhia yuav ua li cas thiaj li tau txais cov qhab nia hauv tshuab hluav taws xob rau Bean Bag Toss baseball themed game. Kuv yuav tsis qhia qhov kev tsim kho ntxaws ntawm kev ua si ntoo, cov phiaj xwm no tuaj yeem pom ntawm Ana White lub vev xaib ntawm:

www.ana-white.com/woodworking-projects/bean-bag-toss-baseball-game

Cov phiaj xwm no zoo heev thiab ntxaws ntxaws. Cov phiaj xwm no yog qhov kuv siv los tsim kuv qhov kev ua si. Kuv tau hloov kho ob peb txoj kev npaj. Thawj qhov kev hloov kho kuv tau ua yog kom nthuav dav hauv qab lub rooj kom zoo dua khaws cov taum taum poob. Kuv qhov kev hloov kho thib ob yog siv ½ nti plywood tsis siv ¼ nti plywood.

Khoom siv

Lub hnab ntim pob baseball tuaj yeem yuav ntawm Amazon. Saib lub vev xaib:

www.amazon.com/gp/product/B00IIVJHSY/ref=p… Tom qab tsim cov qauv ntoo ua si, kuv tso pob baseball "pob zeb diamond" thiab qhov twg yog qhov qhab nia yuav. Kuv siv 4 "qhov pom pom tau teeb tsa hauv kuv lub laum nqa nqa los txiav cov kev ntsuas no ib yam. Txhua lub qhov ntug tau muab xuab zeb du.

Kauj Ruam 1: Hluav Taws Xob Suav Lub Hnab

Hluav Taws Xob Suav Lub Hnab
Hluav Taws Xob Suav Lub Hnab
Hluav Taws Xob Suav Lub Hnab
Hluav Taws Xob Suav Lub Hnab

Kuv xav tau nrhiav txoj hauv kev suav cov hnab thaum lawv dhau los ntawm txhua qhov qhab nia. Nco ntsoov, txhua lub qhov muaj tus lej sib txawv, nrog rau "Lub Tsev Ua Haujlwm" qhov muaj tus nqi siab tshaj plaws. Kuv xub xav txog kev siv lub tshuab hloov pauv, xws li lub sijhawm me me arcade npib qhov rooj hloov nrog cov xov tooj mus ntev. Kuv tau siv cov no hauv cov tshuab ntaus pob, tab sis kuv tsis xav tias lawv yuav ua haujlwm zoo nrog cov hnab taum ntaub.

Kuv tau txiav txim siab ntawm Infrared (IR) txhawm rau txhawm rau txhawm rau txhawm rau pom lub hnab thaum lawv dhau los ntawm qhov ntsuas qhov. Kuv siv cov khoom lag luam zoo los ntawm Adafruit Industries hu ua "IR Break Beam Sensor - 3mm LEDs". Cov Khoom ID yog 2167:

www.adafruit.com/product/2167

Lawv tau muag ua khub (tus xa tawm & tus txais) thiab muab txoj hauv kev yooj yim los txheeb xyuas cov lus tsa suab. Lawv ua haujlwm txog li 10 ntiv tes sib nrug thiab tuaj yeem siv tau los ntawm Arduino 5V fais fab mov. Koj tuaj yeem siv cov no nrog Arduino ua rau hauv kev rub tawm tus tiv thaiv, yog li tsis xav tau cov neeg tawm tsam ntxiv. Tus emitter xa tawm IR nqaj thiab tus txais, ncaj qha hla nws, nkag siab zoo rau lub teeb IR no. Yog tias ib yam khoom hla dhau lub nqaj (zoo li lub hnab taum) lub nqaj tau tawg, thiab tus neeg txais yuav tuaj yeem ua haujlwm kom qhia rau koj paub.

Kauj Ruam 2: Txhim Kho Cov Sensors

Txhim kho lub Sensors
Txhim kho lub Sensors
Txhim kho lub Sensors
Txhim kho lub Sensors
Txhim kho lub Sensors
Txhim kho lub Sensors
Txhim kho lub Sensors
Txhim kho lub Sensors

Kuv tig hla kuv cov ntoo ua si kom nce lub ntsuas cua. Kuv xav tau los teeb tsa IR cov cim ntawm sab hauv qab ntawm lub rooj ua si plywood kom lawv tsis txhob cuam tshuam nrog kev poob qis ntawm lub hnab taum me. Ib qho 1 "txoj kab uas hla tau raug laum ntawm ob sab sib txawv ntawm txhua qhov ntsuas qhov tob mus rau 3/8 ntiv tes (lwm qhov laj thawj zoo rau siv 1/2" tuab plywood). Tus txais IR thiab tus xa tawm tau muab tso rau sab hauv ntawm lub qhov taub kom lub hnab yuav tsis tsoo lawv. Lawv tau teeb tsa mus tas li nrog cov hlau me me thiab cov ntsia hlau ntoo, yog li lawv tau ua tiav zoo sib xws hla ib leeg. Thaum IR cov ntsuas tau raug teeb tsa tag nrho, lawv yuav tsum tau txuas thiab txuas mus rau lub hauv paus nruab nrab qhov kev nyiam ua haujlwm nrog rau hauv av thiab 5V sib txuas. Txhua qhov thaiv tau txuas nrog thiab txuas ruaj ntseg tiv thaiv sab hauv ntawm pawg thawj coj saib kev ua si kom tsis txhob cuam tshuam nrog kev poob ntawm lub hnab taum tom qab nws mus dhau qhov qhab nia.

Kauj Ruam 3: Tsim Cov Ntawv Ntsuas Hluav Taws Xob

Electronic Scoreboard Tsim
Electronic Scoreboard Tsim
Electronic Scoreboard Tsim
Electronic Scoreboard Tsim
Electronic Scoreboard Tsim
Electronic Scoreboard Tsim

Tom ntej no, thaj chaw ntsuas (Tsev & Nyob) nyob rau sab saum toj ntawm pawg thawj coj saib kev ua si yuav tsum tau hloov kho los tso saib cov ntawv ntsuas hluav taws xob. Cov qhab nias yuav suav nrog 4 tus lej, 7-ntu LEDs rau txhua pab pawg cov qhab nia thiab ib tus lej, 7-ntu LED yuav raug siv los taug qab qhov pib. 4-tus lej, 7-ntu LEDs yog los ntawm Adafruit Industries. Lawv hu ua "1.2" 4-Digit 7-Segment Display with 12C Backpack-Red ". Koj xav tau ob qho ntawm no thiab Cov Khoom ID yog 1269. Saib hauv qab no:

www.adafruit.com/product/1269

Qhov loj (2.3 ) ib tus lej 7-ntu LED yog kev yuav khoom los ntawm eBay. Ib qho kev saib xyuas loj yuav ua haujlwm thiab yuav tsum tau txuas kom raug rau ib qho cathode lossis ib qho anode raws li 7-ntu LED.

Qhov qhib 2 "" x 18 "tau txiav rau hauv plywood. Cov npoo tau xuab zeb du. Ib lub rooj sib dhos sib dhos tau txiav los ntawm 1/8 "tuab plywood mus rau qhov loj me me tom qab ntawd qhib. Qhov no yuav tso cai rau nws teeb tsa rau sab hauv ntawm pawg thawj coj saib game. Nov yog pawg thawj coj uas ob 4-lej, 7-ntu LEDs thiab cov lej loj ib leeg, 7-ntu LED yuav raug teeb tsa. Cov khoom tso tawm yuav raug teeb tsa nyob hauv nruab nrab nrog ob qhov qhab nia qhia nruab nrab ntawm ib nrab ntawm qhov kev ua si. Kuv yuav nce pab pawg "Nyob" ntawm sab laug txij li lawv yuav "puav" ua ntej. Kuv tseem yuav teeb lub teeb ntsuab ntsuab ntawm daim ntawv ntaus cim kom pom kev txhua lub sij hawm lub hnab mus dhau qhov qhab nia.

Kauj ruam 4: Tswj Khawm

Khawm Tswj
Khawm Tswj
Khawm Tswj
Khawm Tswj

Peb yuav xav tau peb lub nyees khawm los tswj kev ntws ntawm lub hnab taum pov game. Txhua lub nyees khawm yuav raug teeb tsa sab nraud ntawm qhov kev ua si hauv qhov chaw so kom tiv thaiv lawv los ntawm kev raug tsoo los ntawm lub hnab taum pov tseg.

Qhov kev ua si khawm/tawm khawm yuav raug teeb tsa nyob rau sab saum toj ntawm qhov kev ua si. Qhov qhib/tawm yuav txuas nrog kab nrog 9-volt DC roj teeb qhov chaw uas ua haujlwm rau Arduino Uno board thiab txhua lwm yam khoom siv hluav taws xob.

Ob lub khawm ntxiv tam sim no yuav raug teeb tsa ntawm txhua sab ntawm qhov kev ua si. Lub khawm sab laug yuav yog "Pib dua" khawm. Lub pob no raug thawb mus rau xoom cov qhab nia qhia thiab cov phiaj xwm hloov pauv hauv kev cia siab tias yuav pib qhov kev ua si tshiab.

Txoj cai khawm yuav yog "Ntawm Bat" khawm. Txhua "pab pawg" lossis tus neeg uas ua ntawv yuav muaj 9 lub hnab pov rau txhua lub sijhawm "ntawm puav" lossis ib nrab ntawm qhov qhib. Txij li txhua lub taum taum pov tseg tej zaum yuav tsis dhau ntawm qhov qhab nia, Kuv tsis tuaj yeem suav tas lub hnab pov tseg los txiav txim siab thaum twg ib nrab ntawm qhov nkag tau dhau lawm. Kuv xav tau lwm txoj hauv kev los hloov qhov "pab pawg" lossis tus neeg uas ua ntawv yog "ntawm puav". Qhov no yuav ua tiav ntawm tus kheej nrog qhov hloov pauv "Ntawm Bat".

Ib zaug "pab pawg" lossis tus neeg ncaws pob pov 9 lub hnab taum, huab cua lawv hla dhau qhov qhab nias lossis tsis, lub pob "Ntawm Bat" raug thawb kom coj tus nrog sib ntaus (tus neeg tawm tsam tawm tsam) mus rau puav (pov).

Kauj Ruam 5: Txheej Txheem Lub Rooj Sib Tham

Txheej Txheem Teeb Tsa Teeb
Txheej Txheem Teeb Tsa Teeb
Txheej Txheem Teeb Tsa Teeb
Txheej Txheem Teeb Tsa Teeb
Txheej Txheem Teeb Tsa Teeb
Txheej Txheem Teeb Tsa Teeb
Txheej Txheem Lub Rooj Sib Tham Teeb
Txheej Txheem Lub Rooj Sib Tham Teeb

Kev teeb tsa lub rooj zaum yog qhia hauv daim duab hauv qab no. Cov nyees khawm rub tawm tau siv rau ntawm lub rooj ntev zaum kom ua raws qhov tawg-nqaj IR sensors. Kuv siv 4-kab LCD saib ntawm kuv lub rooj ntev zaum los taug qab cov hloov pauv thiab paub tseeb tias cov cai tswj hwm cov qhab nia ua haujlwm raug. Kuv nyiam siv qhov no ntawm qhov ntsuas ntawm cov saib.

Tsuas yog ib tus lej 4-lej, 7-ntu LED zaub tau pom ntawm lub rooj ntev zaum, tab sis ob qho "Tsev" thiab "Nyob" cov qhab nia qhia tau pom tias ua haujlwm raug. Lub 3 game tswj lub laub khawm kuj tau sim thiab pom tias ua haujlwm raug.

Kauj ruam 6: Code

Tus lej Arduino los tswj kev ua si ntawm qhov kev ua si thiab ntxiv cov qhab nia kom raug yog qhia hauv qab no:

Kauj Ruam 7: Muab tag nrho ua ke

Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke

Kauj ruam kawg yog kom ruaj ntseg txhua yam khoom siv rau hauv pawg thawj coj saib game thiab txuas txhua lub xov hlau rau txhua tus. Txhua yam tau txhim kho kom ruaj khov rau cov plywood thiab kev sib txuas (thaiv) tau khaws cia qis ntawm qhov profile li sai tau kom tsis txhob cuam tshuam nrog lub hnab taum poob los ntawm cov qhab nia. Cov qhab nia qhia tau txuas nrog Arduino thiab cov khoom siv sib xws. Lub roj teeb 9-volt tau siv los txhawb Arduino. Kuv siv 1/8 tuab hardboard rau sab nraum qab ntawm qhov kev ua si. Lub rooj tsavxwm no tau txuas nrog 6 ntoo ntsia hlau.

Kauj Ruam 8: Game Stand

Game Sawv
Game Sawv
Game Sawv
Game Sawv
Game Sawv
Game Sawv

Kuv xav kom kuv qhov kev ua si txav tau, yog li kuv tsis tau dai nws ntawm phab ntsa. Kuv ua ob sab ceg tawm ntawm 1 ½ PVC yeeb nkab. Lawv tau txuas rau sab ntawm qhov kev ua si nrog cov xov T-Track screws nrog pob qhov rooj

www.amazon.com/gp/product/B07SZ6568V/ref=p…

uas tau ntsaws rau hauv T-Ceev kos rau hauv ib sab ntawm qhov kev ua si (hauv qab lub laub khawm ntawm ob sab).

Pom zoo: