Cov txheej txheem:

Halloween Horse Racing Arcade Game: 6 Kauj Ruam
Halloween Horse Racing Arcade Game: 6 Kauj Ruam

Video: Halloween Horse Racing Arcade Game: 6 Kauj Ruam

Video: Halloween Horse Racing Arcade Game: 6 Kauj Ruam
Video: SCARY TEACHER 3D MANDELA EFFECT LESSON 2024, Hlis ntuj nqeg
Anonim
Halloween Horse Racing Arcade Game
Halloween Horse Racing Arcade Game

Xyoo no peb tau txiav txim siab los ua nees sib tw arcade game rau Xus. Peb tau txais kev tshoov siab los ntawm cov tshuab khoos phis tawj hu ua Roll-a-Ball Horse Racing. Peb lub hom phiaj yog ua kom muaj kev sib tw ncaj nraim rau pem hauv ntej kom rov hais dua rau ntau tus neeg ua si. Raws li peb cov kev paub dhau los xyoo dhau los hauv kev tsim thiab ua haujlwm Chocolate Slot Machine, peb paub tias peb yuav tsum tau txais ntau pua tus neeg ua si kwv yees li peb teev sijhawm. Yog li ntawd, peb qhov kev tsim qauv tom ntej yuav tsum tau siv sijhawm nrawm thiab yuav tsum tau ua kom thiaj li tiv taus qhov kev siv hnyav. Peb tau xaiv los tsim plaub lub chaw haujlwm los txhawb kev sib tw noj qab haus huv thiab muaj peev xwm txaus nrog rau txo sijhawm tos. Ntau dua li muaj cov neeg ua si yob pob los ua tus nees, peb tau pom zoo rau qhov yooj yim khawm teeb tsa ntawm kev tswj hwm. Peb kuj xav tawm tsam peb tus kheej los ntawm kev xa cov khoom qab zib tshiab. Tom qab tshuaj xyuas ntau hom khoom qab zib uas tau ntim rau hauv cov thawv me me, peb tau txiav txim siab ntawm Mike & Ike's thiab Hot Tamales, uas peb tau yuav ntau.

Kauj Ruam 1: Daim Ntawv Teev Npe

  • Raspberry Pi 3 B+
  • Joy stick maub los
  • 8 lub laub loj loj
  • 85 volt teeb rau laub khawm
  • 4 Kuman MG996R Digi Hi-Torque servos
  • 5.25mm birch plywood
  • Kab 5 Cat
  • Luam cov yas nrog nplaum thaub qab
  • Ntau cov khoom qab zib (90mm x 50mm x 12mm)
  • Txhua yam hais ntawm no
  • Muas cov cuab yeej sib tw nees

Cov Cuab Yeej:

  • 3D Tshuab Luam Ntawv
  • Laser Txiav

Kauj ruam 2: Kho Raspberry Pi

Rau peb lub khoos phis tawj teeb tsa, peb siv Raspberry Pi 3 B+ nrog Raspbian Lite los khiav qhov kev ua si.

Ua ntej, rub tawm peb GitHub chaw cia khoom. Peb qhov haujlwm tau siv Pygame thiab Pillow, yog li khiav pip3 nruab -r requirements.txt hauv davhlau ya nyob twg. Tom qab ntawd tsim ib daim qauv ntawm ample_config.py thiab npe nws config.py. Tom ntej no, kho nws kom kho koj tus lej tsawg kawg ntawm cov neeg ua si (peb siv 2), tus nees lub npe thiab qhov ntau thiab tsawg, thiab lub vijtsam loj. Peb txiav txim siab muab khoom plig ob lub thawv rau txhua tus yeej thiab ib lub thawv rau txhua tus neeg ua si. Lwm qhov tsis tseem tuaj yeem kho tau yog xav tau.

Kauj ruam 3: Teem Up Screen

www.instructables.com/id/RGB-Matrix-Using-NovaStar/

Kauj Ruam 4: Sib Sau Khawm Consoles

Sib dhos khawm Consoles
Sib dhos khawm Consoles
Sib dhos khawm Consoles
Sib dhos khawm Consoles
Sib dhos khawm Consoles
Sib dhos khawm Consoles

Peb lub khawm consoles tau ua los ntawm cov ntoo plywood ntoo nrog qhov loj, puag ncig arcade pushbutton (https://na.suzohapp.com/products/pushbuttons/D54-0004-12?REF=SN thiab dai kom zoo nkauj nrog cov yas lo nplaum nplaum. Peb xaiv los siv Cov nyees khawm zoo ua rau lawv ua tau ntev thiab teeb pom kev zoo. Rau txhua ntawm plaub lub consoles, peb tau siv ob peb lub khawm sib txawv xim. peb hloov lawv tawm rau 5 volt (https://na.suzohapp.com/products/lighting/91-10WB-53W?REF=SN). Peb xav kom cov consoles me me, kom peb tuaj yeem haum lawv txhua sab los ntawm ib sab ntawm 8 'lub rooj. Ntxiv rau, peb xav siv cov xim sib xws kom peb tuaj yeem siv cov thawv sib pauv.

Peb thawj laser txiav thiab sib sau ua ke peb lub khawm consoles siv 5.25mm birch plywood. (https://github.com/alanswx/HorseArcade/tree/master/hardware) Peb tau hla ntau qhov kev tsim ua tsis tau tiav kom txog thaum peb tuaj txog ntawm ib qho uas txaus me me thiab tuaj yeem sib dhos tau zoo. Peb kuj tau sim nrog qhov sib nrug ntawm cov nyees khawm kom ntseeg tau yooj yim ntawm kev siv rau cov neeg ua si hauv khaub ncaws. Tom ntej no, peb tsim cov yas yas thiab muab nws tso rau hauv zos thiab txiav tawm. Peb tau siv cov yas yas, tom qab ntawd 3D luam tawm Cat5 kab zauv, thiab ntsia lawv rau sab nraum qab ntawm txhua lub console. Thaum kawg, peb ntsia hlau thiab txuas cov nyees khawm. Hauv peb qhov kev tsim, peb siv cov xov hlau khov kho. Txawm li cas los xij, thaum ua si, qhov cuam tshuam cuam tshuam los ntawm cov nyees khawm maj mam txuas cov xov hlau los ntawm cov nyees khawm. Peb hais kom siv cov xov hlau tso tseg kom tsis txhob muaj qhov teeb meem no.

Txhua lub thawv muaj ib Cat5 cable uas muaj 8 xov nyob hauv nws (4 khub). Peb txuas ib khub rau txhua qhov hloov pauv hauv lub thawv, thiab ib khub rau txhua tus coj hauv lub thawv. Hauv raspberry pi sab, 2 khub los ntawm qhov hloov pauv tau txuas rau lub joystick adapter. Lwm ob khub tau sib txuas rau LED cov txiaj ntsig ntawm pawg thawj coj uas peb tau txuas rau peb tus pi. Hauv yav tom ntej peb yuav tsum hloov lub rooj tsavxwm los ua lub kaus mom raspberry pi los ua kom yooj yim dua. Peb txuas nws mus rau qhov ntxiv gpio pins ntawm pawg tswj hwm servo. LED GPIO pins raug tswj hauv cov ntawv config.py.

Kauj Ruam 5: Sib Sau Cov Khoom Qab Zib

Sib Sau Cov Khoom Qab Zib
Sib Sau Cov Khoom Qab Zib
Sib Sau Cov Khoom Qab Zib
Sib Sau Cov Khoom Qab Zib
Sib Sau Cov Khoom Qab Zib
Sib Sau Cov Khoom Qab Zib

Peb xav tsim cov khoom qab zib tsis siv neeg uas yooj yim rau rov ua dua. Txij li thaum peb xav tau lawv kom haum rau ntawm lub rooj nyob ib sab ntawm txhua lub khawm consoles, lawv xav tau kom yuag kom haum hauv peb 8 'rooj txwv. Ib qho ntxiv, lawv tsis tuaj yeem siab dhau vim tias lawv yuav ua rau cov neeg ua si pom ntawm lub vijtsam. Thaum kawg, peb xav kom cov neeg ua si tuaj yeem pom cov khoom qab zib hauv lub dispenser. Tom qab ob peb tus qauv ua tsis tiav, peb tau txiav txim siab ntawm txoj kab plaub fab ntsug ua los ntawm ntoo, plexiglass, thiab peb lub tshuab xa tawm. Peb lub tshuab xa tawm suav nrog lub cav servo nrog lub pinion txuas uas nce qib khib.

Hauv peb qhov kev tsim, peb txiav ntoo rau ob lub console thiab cov khoom qab zib rau tib lub sijhawm kom muaj peev txheej siv tau. (https://github.com/alanswx/HorseArcade/blob/master/hardware/dispenser.svg)

Tom qab ntawd, peb laser txiav lub plexiglass.

Peb kuj 3D luam tawm cov khib thiab pinion. (https://github.com/alanswx/ChocolateCoinDispenser/tree/master/Box/stl)

Peb tau sib sau cov khoom faib los ntawm kev kho cov ntoo ntoo thiab siv cov roj hmab txuas kom txuas cov ntoo phab ntsa thiab plexiglass. Txhawm rau ua pob khawm rau sab nraum qab ntoo lub raj ntoo phab ntsa (rov qab rau ntawm lub plexiglass pem hauv ntej) uas tso cai rau peb rov ntim cov khoom qab zib thoob plaws hauv kev ua si, peb txiav ob lub voj ntoo me me uas peb tau lo rau saum thiab hauv qab ntawm sab xis ntawm sab nraub qaum phab ntsa. Peb glued ib qho kev tshaj tawm ntawm ob sab saum toj thiab hauv qab ntawm phab ntsa ntoo tom qab kom ntxig rau hauv txhua lub voj voog. (Saib daim duab #4). Txhawm rau kaw lub qhov rooj ntim nyiaj rov qab, peb siv daim ntawv kaw.

Thaum kawg, peb tau ntsaws rau hauv lub cav servo, txuas nrog 3D luam tawm pinion, thiab kho nws cov hniav nrog cov khib.

Txhawm rau kom phim cov ntawv yas tsim ntawm lub khawm consoles, peb tsuag xim pleev cov khoom qab zib ntsuab.

Kauj Ruam 6: Muab Txhua Yam Ua Ke

  • Txuas txhua lub thawv ntawv ua ke thiab rau lawv cov khoom qab zib
  • Txuas cov khoom qab zib thiab cov khawm khawm rau Raspberry Pi
  • Txuas Raspberry Pi rau tus xa MCTRL300
  • Txuas tus xa ntawv MCTRL300 lub thawv rau lub vijtsam txais.
  • Nco ntsoov tias Pi khau raj rau hauv qhov hais kom ua sai thiab ua si qhov kev ua si.

Pom zoo: