Cov txheej txheem:

Mini Arcade Txee: 7 Kauj Ruam
Mini Arcade Txee: 7 Kauj Ruam

Video: Mini Arcade Txee: 7 Kauj Ruam

Video: Mini Arcade Txee: 7 Kauj Ruam
Video: АНДРОИД СМАРТ ПРИСТАВКА НЕ ЗАПУСКАЕТСЯ - НА ЭКРАНЕ НАДПИСИ - БЫСТРЫЙ РЕМОНТ 2024, Kaum ib hlis
Anonim
Mini Arcade Txee
Mini Arcade Txee

Cov lus qhia no tau tsim los ua kom tiav ntawm txoj haujlwm xav tau ntawm Makecourse ntawm University of South Florida (www.makecourse.com)

Khoom siv

Arcade joystick

4 x Arcade nyees khawm

Cov qhob cij

Breadboard Xov

7 nti npo nrog HDMI cov tswv yim

HDMI Cable

Raspberry Pi 3

5V 2.5A Raspberry Pi Power Supply

Arduino Leonardo

Plywood

1 nti square dowels

Kauj Ruam 1: Kauj Ruam 1: Txiav Sab Nraud

Rau cov kauj ruam no, nws yuav yog qhov zoo tshaj plaws los siv lub tshuab txiav laser kom raug txiav kom cov npoo ntawm lub txee zoo thiab yaug. Yog tias koj tsis muaj nyob, tom qab ntawd pom yuav ua haujlwm zoo li qub, txawm hais tias nws yuav siv qee lub sijhawm thiab siv zog me ntsis.

Txiav lub dowel rau hauv seem hauv qab no: 4 x 10 nti, 2 x 12.5 nti, 2 x 8 nti, 2 x 3 nti, 2 x 3.3 nti, 2 x 9.3 nti ntawm lub kaum sab xis 15 degrees. Cov no yuav ua rau lub cev pob txha ntawm lub txee arcade.

Tam sim no: txiav cov plywood rau hauv qhov ntev hauv qab no: 10in x 4in, 10in x 10.3in (nco ntsoov tseem txiav tawm thaj tsam hauv daim ntawv no nrog qhov tshwj xeeb ntawm qhov screen), 10in x 12.5in, 10in x 5in, 2 ntu ntawm 12.5in x 12in kom paub tseeb tias txiav tawm ntu 5 ntiv tes ntawm lub kaum sab xis ntawm 15 degrees sab hauv (Cov ntu 2 ntu kawg no yog cov vaj huam sib luag sab ntawm lub txee. phim qhov zoo ib yam.)

Kauj Ruam 2: Kauj Ruam 2: Sib Sau Skeleton

Ua ke plaub plaub ntu 10 ntu rau hauv daim duab plaub uas siv cov ntsia hlau ntoo. Qhov no yuav yog hauv qab ntawm lub txee.

Muab 12.5 ntiv tes tso rau saum cov ces kaum ntawm ib sab ntawm lub duab plaub. Qhov no yuav yog sab nraum qab ntawm lub txee.

Txuas 2 ntu ntawm lub txee uas ua rau sab nraub qaum nrog ntu 8 nti.

Ntxiv qhov 3.3 nti ntu orthogonal rau sab nraub qaum kom lawv ntsib lub ntsej muag ntawm lub txee.

Ntxiv 10 ntu ntu ncaj qha hla 10 ntu ntu ntawm lub hauv ntej ntawm lub txee kom koj muaj ob daim tib sib tshooj nyob rau ib sab.

Ntxiv 3 ntu ntu rau ob sab ntawm ntu 10 nti koj nyuam qhuav tso. Cov ntawv sab no yuav txuas rau ntu kaum thiab yuav yog lub ntsej muag rau lub joystick thiab cov nyees khawm.

Ntxiv cov ces kaum txuas cov khoom uas koj nyuam qhuav tau muab tso rau hauv cov khoom uas nthuav tawm los ntawm ntu sab saum toj ntawm lub txee.

Thaum kawg, ntxiv qhov kawg 8 nti ntawm nruab nrab ntu uas nyob ze rau saum lub txee.

Tam sim no koj yuav tsum muaj cov pob txha sib dhos ua ke zoo li lub mini arcade txee.

Kauj Ruam 3: Kauj Ruam 3: Sib Sau Sab Nraud

Txiav tawm plaub 22mm qhov rau hauv plywood rau cov khawm arcade thiab lo rau sab xis ntawm ib sab ntawm lub rooj tsavxwm, nco ntsoov tawm hauv chav txaus rau lo rau ntawm sab laug.

Txiav tawm 20mm qhov ntawm sab laug ib nrab rau arcade stick.

Sib sau ua ke txhua daim plywood rau lub cev pob txha tshwj xeeb rau sab nraub qaum thiab khawm/joystick board. Peb yuav tso cov khoom tawm kom peb tuaj yeem ntxiv cov khoom siv hluav taws xob thiab lwm yam khoom siv.

Kauj Ruam 4: Kauj Ruam 4: Code Arduino

Kauj ruam 4: Code Arduino
Kauj ruam 4: Code Arduino

Ntxiv cov cai hauv qab no rau hauv koj cov arduino. Txoj cai no tso cai rau arduino nyeem lub pob nyem thiab tso lawv tawm raws li cov keyboard nkag mus rau raspberry pi.

void teeb tsa () {

Keyboard.being ();

pinMode (2, INPUT_PULLUP); // Joystick nce

pinMode (3, INPUT_PULLUP); // Joystick nqis

pinMode (4, INPUT_PULLUP); // Joystick Txoj Cai

pinMode (5, INPUT_PULLUP); // Joystick Sab laug

pinMode (6, INPUT_PULLUP); // Khawm 1

pinMode (7, INPUT_PULLUP); // Khawm 2

pinMode (8, INPUT_PULLUP); // Khawm 3

pinMode (9, INPUT_PULLUP); // Khawm 4

}

void voj () {

int Lub Xeev 2 = digitalRead (2);

int Xeev 3 = digitalRead (3);

int Xeev 4 = digitalRead (4);

int Xeev 5 = digitalRead (5);

int Lub Xeev 6 = digitalRead (6);

int State7 = digitalRead (7);

int State8 = digitalRead (8);

int State9 = digitalRead (9);

yog (State2 == LOW) {

Keyboard.press (215) Cov

}

lwm tus {

Cov keyboard.release (215)

}

yog (State3 == LOW) {

Keyboard.press (216) Cov

}

lwm tus {

Cov keyboard.release (216)

}

yog (State4 == LOW) {

Keyboard.press (217) Cov

}

lwm tus {

Cov keyboard.release (217)

}

yog (State5 == LOW) {

Keyboard.press (218) Cov

}

lwm tus {

Keyboard.release (218) Cov

}

yog (Xeev 6 == LOW) {

Keyboard.press (219) Cov

}

lwm tus {

Cov keyboard.release (219)

}

yog (Xeev 7 == LOW) {

Keyboard.press (220) Cov

}

lwm tus {

Cov keyboard.release (220)

}

yog (Xeev 8 == LOW) {

Keyboard.press (221) Cov

}

lwm tus {

Cov keyboard.release (221)

}

yog (Xeev 9 == LOW) {'

Keyboard.press (222)

}

lwm tus {

Cov keyboard.release (222)

}

}

Kauj Ruam 5: Kauj Ruam 5: Hlau Hluav Taws Xob

Kauj Ruam 5: Hlau Hluav Taws Xob
Kauj Ruam 5: Hlau Hluav Taws Xob

Siv cov cai, xaim joystick rau tus pin 2 txog 5 ntawm arduino thiab tsaws tus pin thib 5.

Tom ntej no, xaim ib tus pin ntawm txhua lub pob rau hauv av thiab cov pins ntxiv rau tus pin 6 txog 9 ntawm arduino.

Thaum kawg, ntsaws arduino rau hauv raspberry pi uas peb yuav teeb tsa hauv cov kauj ruam tom ntej.

Kauj Ruam 6: Kauj Ruam 6: Teeb Raspberry Pi 3

Kauj Ruam 6: Teeb Raspberry Pi 3
Kauj Ruam 6: Teeb Raspberry Pi 3

Mus rau https://retropie.org.uk/download/ thiab rub tawm qhov tshiab tshaj plaws ntawm retropie.

Siv koj cov software nyiam ntawm xaiv nyem cov duab rau daim npav microSD thiab tso rau hauv raspberry pi 3. Kuv pom zoo win32 disk imager.

Txuas lub raspberry pi mus rau 7 nti npo thiab lub zog siv.

Thaum hais kom teeb tsa tus tswj hwm, ua raws cov txheej txheem siv cov arduino joystick uas koj tau siv yav dhau los coded thiab wired.

Txog qhov tshwj xeeb teeb tsa no peb yuav khiav qhov chaw ua phem rau ntawm SNES, yog li nrhiav cov ntawv luam ntawm rom online los ntawm cov peev txheej muaj npe xws li

Tam sim no hloov ROM siv cov haujlwm xws li winSCP rau ssh rau hauv raspberry pi thiab luam cov ntawv hauv/retropie/roms/snes directory.

Rov pib dua raspberry pi thiab lub logo SNES yuav tsum tau ntxiv rau cov ntawv qhia zaub mov nrog rau qhov chaw invaders ROM teev tseg hauv nws cov ntawv qhia zaub mov.

Kauj Ruam 7: Kauj Ruam 8: Muab Txhua Yam Ua Ke

Ntsia lawv joystick rau hauv qhov chaw ntawm plywood. Tom qab ntawd ntxiv cov nyees khawm. Feem ntau yuav muaj lub latch nyob sab hauv uas yuav khaws nws nyob hauv qhov chaw yam tsis siv cov ntsia hlau.

Txuas lub rooj tsavxwm nrog joystick thiab cov nyees khawm rau lub cev pob txha, ua kom ruaj khov.

Muab lub vijtsam tso rau hauv lub qhov txiav rau hauv lub ntsej muag.

Rov txuas txhua yam khoom siv hluav taws xob thiab tso rau ntawm lub rooj tsav tsheb tom qab kom kaw nws. Nco ntsoov tso lub qhov rau lub hwj chim txhawm rau txuas lub qhov hluav taws xob.

Pom zoo: