Cov txheej txheem:

Retro-Gaming Tshuab Nrog Raspberry PI, RetroPie thiab Homemade Case: 17 Cov Kauj Ruam (nrog Duab)
Retro-Gaming Tshuab Nrog Raspberry PI, RetroPie thiab Homemade Case: 17 Cov Kauj Ruam (nrog Duab)

Video: Retro-Gaming Tshuab Nrog Raspberry PI, RetroPie thiab Homemade Case: 17 Cov Kauj Ruam (nrog Duab)

Video: Retro-Gaming Tshuab Nrog Raspberry PI, RetroPie thiab Homemade Case: 17 Cov Kauj Ruam (nrog Duab)
Video: Niam pog los cab nyab 2024, Hlis ntuj nqeg
Anonim
Retro-Gaming Tshuab Nrog Raspberry PI, RetroPie thiab Homemade Case
Retro-Gaming Tshuab Nrog Raspberry PI, RetroPie thiab Homemade Case
Retro-Gaming Tshuab Nrog Raspberry PI, RetroPie thiab Homemade Case
Retro-Gaming Tshuab Nrog Raspberry PI, RetroPie thiab Homemade Case

Qee lub sij hawm dhau los Kuv pom Linux faib rau Raspberry Pi npe RetroPie. Kuv pom tam sim ntawd nws yog lub tswv yim zoo nrog kev ua tiav zoo. Ib lub hom phiaj retro-gaming system tsis muaj cov yam ntxwv tsis tsim nyog. Ci ntsa iab.

Tsis ntev tom qab, Kuv txiav txim siab yuav lub Raspberry Pi tshiab, uas kuv xav khiav RetroPie nrog qee qhov kev ua si qub.

Kuv kuj pib saib ib ncig rau rooj plaub. Hmoov tsis zoo, kuv tsis nyiam yuav luag txhua rooj plaub kev lag luam. Lawv tau txaj muag, raug nqi ntau thiab qee zaum txawm tias ua haujlwm dhau los, hauv kuv lub tswv yim. Ntawm qhov tod tes, Kuv nyiam qee qhov DIY uas tsis tau sim luam qhov zoo ntawm cov qub consoles. Yog li, kuv txiav txim siab los ua kuv tus kheej cov ntaub ntawv ib yam nkaus. Rau ntau qhov laj thawj, Kuv tau siv cov ntaub ntawv txheej txheem txheej txheem thoob ntiaj teb los ua lub hauv paus…

Nqa Cov Lus Qhia no ua kev tshoov siab thiab tseem sim ua lub tshuab retro-gaming nrog cov ntaub ntawv raug cai. Nws tsis nyuaj thiab koj yuav zoo siab txog qhov tshwm sim. Thiab ntxiv mus, nws tuaj yeem yog khoom plig zoo. Xav txog nws …

Kauj Ruam 1: Cheeb Tsam

Cheebtsam
Cheebtsam
Cheebtsam
Cheebtsam
Cheebtsam
Cheebtsam
  • Raspberry Pi
  • 5V Cov Khoom Siv Hluav Taws Xob nrog lub thoob jack 5.5/2.1. Kuv siv Vigan 5V/2A.
  • 8 GB micro SD daim npav qib 10 lossis zoo dua
  • universal project enclosure box nrog qhov ntev zoo. Tshawb nrhiav lub thawv zoo ntawm eBay lossis hauv koj lub khw hluav taws xob hauv cheeb tsam. Kuv siv KP17 los ntawm GMe.cz. (Nws muaj qhov ntev: 143x119x33mm)
  • USB B micro txiv neej txuas. Kuv siv qhov no los ntawm GMe.cz.
  • Fais fab mov poj niam chim jack 5.5/2.1.
  • USB A poj niam txuas. Kuv coj lawv los ntawm USB HUB tawg.
  • USB A txiv neej txuas. Kuv coj lawv los ntawm cov qub USB cables.
  • Ncaj HDMI coupler. Kuv siv qhov no los ntawm eBay.
  • LEDs. Kuv siv 5mm ntsuab thiab 8mm liab
  • khawm me me Kuv siv qhov no los ntawm GMe.cz.
  • thooj ntawm universal PCB
  • ib qho me me ntawm plywood lossis qee yam usebale ua spacer
  • srews thiab ceev M3, qee qhov spacers
  • poj niam tus pin header
  • liab thiab dub xaim. Kuv siv AWG 24.
  • plaub-ntxhais cable. Kuv nqa nws los ntawm tus qub USB cable.
  • fais fab hloov (yeem)
  • thiab USB game controllers. Kuv nyiam USB SNES-zoo li cov tswj hwm.

Kauj Ruam 2: Cov Cuab Yeej

Cov cuab yeej
Cov cuab yeej
Cov cuab yeej
Cov cuab yeej
Cov cuab yeej
Cov cuab yeej
  • PC txuas nrog Internet
  • micro SD daim npav nyeem ntawv rau PC
  • daim npog qhov ncauj
  • cov cim dub
  • laum thiab laum cov khoom. Kuv pom zoo kom siv lub laum me ntsis (hauv daim duab saum toj no) rau drilling rau yas.
  • ntawv xuab zeb
  • cov ntaub ntawv me me
  • riam riam thiab/lossis txiab me me.
  • kub kua nplaum phom
  • pliers
  • cam khwb cia hlau
  • zoo zoo ("kos duab") cov cim xim. Kuv siv cov cim los ntawm Winsor & Newton. Kuv xaiv cov xim: Mulberry, Txias Grey 1, Cool Grey 2, Cool Grey 3. Tab sis koj tuaj yeem siv txhua yam koj xav tau, tau kawg.
  • dawb cim ruaj khov
  • tiv tauj kua nplaum. Kuv siv Pattex Contact Glue ntau.
  • cov cua sov ntsws

Kauj ruam 3: RetroPie Installation

RetroPie Installation
RetroPie Installation

Retropie yog dab tsi? Los ntawm tus sau cov lus:

RetroPie tso cai rau koj tig koj lub Raspberry Pi, ODroid C1/C2, lossis PC rau hauv lub tshuab retro-gaming. Nws tsim los ntawm Raspbian, EmulationStation, RetroArch thiab ntau lwm txoj haujlwm kom koj tuaj yeem ua si koj nyiam Arcade, tsev-console, thiab PC ua si qub nrog kev teeb tsa yam tsawg kawg nkaus.

Saib Retropie homepage: retropie.org.uk.

Rub tawm qhov tshiab ntawm RetroPie rau koj li Raspberry Pi version.

Rub tawm thiab teeb tsa Etcher. Nws yog cov cuab yeej siv tau zoo rau ntau tus neeg siv rau kev nyab xeeb teeb duab OS rau SD daim npav. (Yog tias koj siv Raspberry Pi ua ntej, koj yuav paub nws zoo.)

Khiav Etcher, xaiv RetroPie duab, xaiv qhov tseeb microSD daim npav tsav tsheb thiab nyem lub pob nyem (saib daim duab saum toj no).

Tom qab flashing tiav, muab daim npav rau koj li Raspberry Pi, txuas tus saib xyuas thiab tus tswj thiab lub hwj chim. Thaum thawj qhov kev ua haujlwm, RetroPie system yuav tsum txuas cov ntaub ntawv system mus rau tag nrho SD daim npav thiab tom qab ntawd RetroPie nug koj txog teeb tsa tus tswj.

Saib thawj phau ntawv qhia.

Kauj Ruam 4: Yooj Yim RetroPie Configuration

Xaiv RASPI-CONFIG hauv cov ntawv qhia zaub mov, thiab:

  • Hloov Tus Neeg Siv Tus Kheej. Tus password tsis raug yog: raspberry (lub neej siv yog: pi)
  • Kev Xaiv Hauv Zos

    • Teem koj thaj chaw
    • Teem koj lub tebchaws WiFi
    • Teem koj cov keyboard layout
    • Teem koj cheeb tsam Sijhawm
  • Kev xaiv cuam tshuam

    • Pab kom SSH
    • Pab kom Serial
  • Advanced Xaiv

    Lov tes taw Overscan. (Nws tshem tawm cov npoo dub)

Ua reboot.

Kauj ruam 5: Emulators

Feem ntau ntawm cov emulators tau teeb tsa thiab teeb tsa kom raug los ntawm lub neej ntawd. Kuv tsuas yog yuav tsum teeb tsa DOSBox (nto moo MS-DOS emulator) thiab teeb tsa Fuse (ZX Spectrum emulator).

Yog xav paub ntxiv txog cov emulators saib thawj phau ntawv qhia.

DOSBox kev teeb tsa

Xaiv RETROPIE SETUP → Tswj pob khoom → Tswj cov pob khoom xaiv → dosbox → nruab los ntawm binaries

Fuse teeb tsa

1) daim duab qhia chaw xws li Kempston Joystick.

Ua ntaub ntawv

/opt/retropie/configs/zxspectrum/retroarch.cfg

ntxiv kab:

input_libretro_device_p1 = "513"

2) teeb emulator rau ZX Spectrum 48k hom.

Hauv cov ntawv

/opt/retropie/configs/all/retroarch-core-options.cfg

hloov kab:

fuse_machine = "Spectrum 128K"

rau:

fuse_machine = "Spectrum 48K"

Koj tuaj yeem ua nws, piv txwv li, siv SSH.

EmulationStation (ES) qhov tseem ceeb luv

Xaiv+Pib = tawm tam sim no khiav game thiab rov qab mus rau ES ntawv qhia zaub mov (tsis ua haujlwm rau DOSBox, saib hauv qab no …)

Kauj Ruam 6: ROMs thiab MS-DOS Games

ROMs thiab MS-DOS Games
ROMs thiab MS-DOS Games

Ua ntej tshaj plaws, Kuv yuav tsum tau hais tias txawm tias cov kev ua si qub dhau los tseem muaj kev tso cai, yog li yuav tsum paub …

Txawm li cas los xij, ntau qhov kev ua si qub raug suav tias yog kev tso tseg, vim tias lawv tau siv thev naus laus zis thiab siv tsis tau (lossis tsis muaj txiaj ntsig). Ib qho piv txwv zoo yog kev ua si rau lub khoos phis tawj qub ZX Spectrum, uas koj tuaj yeem rub tawm dawb los ntawm cov vev xaib zoo li spectrumcomputing.co.uk lossis www.worldofspectrum.org.

Qee qhov kev ua si rau MS-DOS koj tuaj yeem yuav los ntawm www.gog.com.

Yuav ua li cas luam cov ntawv ROM rau RetroPie

Muaj ntau txoj hauv kev yuav ua li cas. Saib thawj phau ntawv. Yog tias koj tab tom khiav Linux ntawm koj lub PC, tom qab ntawd koj tseem tuaj yeem luam cov ntawv ROM ncaj qha rau daim npav microSD.

Tswv yim: Tsawg kev ua si yog ntau dua! Tsis txhob nruab tag nrho cov ntawv khaws cia, tab sis tsuas yog ob peb qhov kev ua si zoo tshaj plaws rau txhua qhov system. Cov lej loj ntawm kev ua si yog qee qhov kev nyuaj siab.

DOSBox games (rau cov neeg siv qib siab)

MS-DOS kev ua si hauv RetroPie/Emulationstation yog qhov nyuaj. Nws yog qhov tsim nyog los ua daim phiaj tswj cov nyees khawm rau cov keyboard, tsim thiab qhib cov ntaub ntawv teeb tsa dosbox thiab tsim cov ntawv sau rau txhua qhov kev ua si.

Nov yog cov qib rau kev ua si Prehistorik 2:

0) nruab DOSBox

Saib cov kauj ruam "Emulators".

1) yuav Prehistorik 2 los ntawm www.gog.com/. Nruab Prehistorik 2 ntawm koj lub PC ua ntej, vim tias koj yuav xav tau unpacked game files.

2) luam cov npe game rau daim npav microSD rau

/home/pi/RetroPie/roms/pc_data ("pc_data", tsis yog "pc" …)

(lub npe cov npe game yuav tsum yog Prehistorik_2).

3) tsim ib tsab ntawv khiav

/home/pi/RetroPie/roms/pc/Prehistorik_2.sh

nrog cov ntsiab lus:

#!/bin/tsoo

cd "/tsev/pi/RetroPie/roms/pc/" "/opt/retropie/emulators/dosbox/bin/dosbox" -conf "/home/pi/RetroPie/roms/pc/Prehistorik_2_dosbox.cf" -c tawm

Saib Prehistorik_2.sh.txt hauv qhov txuas

Prehistorik_2.sh yuav raug lees paub tias yog ROM cov ntaub ntawv los ntawm kev ua haujlwm.

4) tsim cov ntaub ntawv conf

/home/pi/RetroPie/roms/pc/Prehistorik_2_dosbox.cf

Saib Prehistorik_2_dosbox.cf hauv qhov txuas

Qhov feem ntau nthuav yog:

[autoexec]

@echo tawm mount C "../pc_data/Prehistorik_2" -t cdrom c: cls TITUS. BAT tawm

thiab mapperfile txhais:

mapperfile =/tsev/pi/RetroPie/roms/pc/Prehistotik_2_mapper.map

5) tsim daim ntawv qhia chaw

/home/pi/RetroPie/roms/pc/Prehistotik_2_mapper.map

Saib Prehistorik_2_dosbox.map hauv qhov txuas

Tshawb hauv Is Taws Nem txog yuav ua li cas. Kev pib zoo yuav tsum yog piv txwv li DOSBox wiki.

6) sim khiav qhov kev ua si.

Kauj Ruam 7: Cov ntawv sau thiab teeb tsa rau LEDs thiab On/Off Button

Safe hwj chim On/Off khawm

Raspberry Pi tsis muaj khawm "nyab xeeb tawm" (yam tsawg kawg li txog 3B+). Tshawb nrhiav Intenet kom paub ntau ntxiv txog nws.

Cov neeg siv feem ntau daws qhov teeb meem no los ntawm kev sau lawv tus kheej tsab ntawv uas sau cov lus txib "sudo kaw -h tam sim no" ntawm kev cuam tshuam los ntawm lub pob txuas nrog qee tus pin.

Kuv nyuam qhuav siv cov ntawv sau zoo los ntawm tyler los ntawm howchoo.

Kuv tso tus pin rau khawm teeb rau GPIO 3 (= tus lej tus lej 5) (saib pinout.xyz).

Sab nrauv ACT LED

Kho cov ntaub ntawv

/boot/config.txt

rau Raspberry Pi 3 ntxiv qhov no:

# --- sab nrauv LED li SD ACT LED (Raspberry Pi 3)

dtoverlay = pi3-act-led, gpio = 4 # ---

rau Raspberry Pi 2 ntxiv qhov no:

# --- sab nrauv LED li SD ACT LED (Raspberry Pi 2)

dtparam = act_led_gpio = 4 # ---

Tam sim no koj tuaj yeem txuas lub LED nrog tus tiv thaiv mus rau GPIO 4 (= tus pin lub cev 7) (saib pinout.xyz). Raws li ACT LED Kuv siv 5mm ntsuab LED.

Lub hwj chim xwm txheej LED

Kuv tau saws ib qho ntse super-yooj yim xwm txheej xwm txheej qhia los ntawm cov ntawv qhia no los ntawm Zach los ntawm howchoo. Tsuas yog qhib lub GPIO chaw nres nkoj txuas, tom qab ntawd koj tuaj yeem txuas lub LED nrog tus tiv thaiv rau GPIO 14 = TX (= Tus lej pin 8) (saib pinout.xyz). Raws li lub hwj chim xwm txheej LED Kuv siv 8 hli liab LED.

Kauj Ruam 8: Pib Npaj Cov Ntaub Ntawv

Pib Npaj Rooj plaub
Pib Npaj Rooj plaub

Raws li kuv tau sau, Kuv tau siv cov ntaub ntawv txheej txheem txheej txheem thoob ntiaj teb los ua lub hauv paus. Kuv lees, nws tsis zoo li rooj plaub uas ua los ntawm ntoo zoo, lossis tsim qauv 3D luam tawm rooj, tab sis nws tseem tuaj yeem lees txais txoj hauv kev yuav ua li cas thiaj tsim tau rooj plaub zoo, hauv kuv lub tswv yim.

Npaj txoj haujlwm ntawm txhua yam khoom. Qhov twg tso Raspberry Pi, qhov twg tso tag nrho cov txuas, uas txuas tsis sib xws thiab ntxiv rau. Siv sijhawm, tsis txhob maj.

Kauj ruam 9: USB txuas ntxiv

USB txuas ntxiv
USB txuas ntxiv
USB txuas ntxiv
USB txuas ntxiv
USB txuas ntxiv
USB txuas ntxiv
USB txuas ntxiv
USB txuas ntxiv

Vim tias kuv txiav txim siab kom muaj ob lub USB txuas rau ob tus tswj kev ua si hauv ntej thiab Raspberry Pi nyob nruab nrab, Kuv xav tau ob lub USB txuas txuas luv. Kuv tau ua los ntawm cov xov tooj qub USB thiab los ntawm lub hub USB tsis zoo. Saib cov duab saum toj no.

Kauj Ruam 10: Kev Txuas Hluav Taws Xob Ntxiv

Fais Adapter Ntxiv
Fais Adapter Ntxiv
Fais Adapter Ntxiv
Fais Adapter Ntxiv
Fais Adapter Ntxiv
Fais Adapter Ntxiv

Ib yam uas ua rau kuv txhawj xeeb txog Raspberry Pi yog lub micro USB B fais fab txuas. Qhov txuas no zoo li yuav tawg me ntsis rau kuv. Yog li ntawd kuv txiav txim siab siv lub thoob thoob nkaus 5.5/2.1 thiab ua kom muaj zog kuv lub tshuab ua si retro los ntawm 5V lub zog xa khoom nrog lub thoob jack 5.5/2.1 hli.

Kauj Ruam 11: Kos Qhov

Npav Qhov
Npav Qhov
Npav Qhov
Npav Qhov
Npav Qhov
Npav Qhov
Npav Qhov
Npav Qhov

Qhia meej txoj haujlwm ntawm txhua qhov khoom siv thiab kos txhua qhov tsim nyog. Hauv kuv rooj plaub:

  • qhov rau ob lub USB (thiab lub qhov rau cov ntsia hlau los teeb tsa PCB me me)
  • qhov rau chim jack 5.5/2.1 txuas
  • qhov rau HDMI coupler
  • lub hwj huam khawm qhov
  • ob qhov rau LEDs
  • plaub lub qhov rau cov ntsia hlau los txhim kho Raspberry Pi
  • qhov rau micro SD daim npav qhov
  • qhov cua nkag (tsis txhob hnov qab txog lawv)

Kauj Ruam 12: Ua Qhov

Ua Qhov
Ua Qhov
Ua Qhov
Ua Qhov
Ua Qhov
Ua Qhov

Ua txhua qhov siv koj cov cuab yeej tso siab.

Chisels me tau ua rau muaj txiaj ntsig zoo rau kev ua qhov tsis yog ncig hauv kuv rooj plaub.

Kauj Ruam 13: Siv cov laug LEDs thiab On/Off Button

Soldering LEDs thiab On/Off Khawm
Soldering LEDs thiab On/Off Khawm
Soldering LEDs thiab On/Off Khawm
Soldering LEDs thiab On/Off Khawm
Soldering LEDs thiab On/Off Khawm
Soldering LEDs thiab On/Off Khawm

Ua thaiv raws li cov txheej txheem hauv daim duab saum toj no. Nws yuav tsum tsis txhob nyuaj.

Koj tuaj yeem ruaj ntseg txhua lub xov hlau nrog kua nplaum kub tom qab siv tas.

Tej zaum koj tau pom tias lub pob fais fab (saib hauv daim duab saum toj no) tau muab muag rau ib qho ntawm PCB nrog cov ntoo ntoo. Kuv yuav tsum ua qhov kev daws teeb meem no, vim tias kuv tau xaiv lub pob tsim los rau PCB, tsis yog lub pob tsim los teeb tsa rau ntawm lub vaj huam sib luag.

Kauj Ruam 14: Tso Txhua Cheeb Tsam

Tso Txhua Cheeb Tsam
Tso Txhua Cheeb Tsam
Tso Txhua Cheeb Tsam
Tso Txhua Cheeb Tsam
Tso Txhua Cheeb Tsam
Tso Txhua Cheeb Tsam

Txuas tag nrho cov khoom rau hauv rooj plaub. Kuv txuas txhua qhov tivthaiv siv cov kua nplaum kub tshwj tsis yog Raspberry Pi thiab USB txuas ntxiv, uas kuv txuas nrog cov ntsia hlau. Saib cov duab saum toj no.

Kauj ruam 15: Kho kom zoo nkauj

Kho kom zoo nkauj
Kho kom zoo nkauj
Kho kom zoo nkauj
Kho kom zoo nkauj
Kho kom zoo nkauj
Kho kom zoo nkauj
Kho kom zoo nkauj
Kho kom zoo nkauj

Kho koj cov ntaub ntawv raws li koj xav tau. Txhua yam raug tso cai. Piv txwv li, Kuv kos daim npog sab saum toj ntawm daim ntawv uas siv cov cim kos duab. Tom qab ntawd kuv glued lub npog ntsej muag rau rooj plaub uas siv cov kua nplaum tiv tauj.

Kauj Ruam 16: Xeem

Kev Xeem
Kev Xeem
Kev Xeem
Kev Xeem

Kaw rooj plaub thiab sim sim txhua yam. Ua haujlwm txhua yam zoo?

Tsis yog? Yog li, kho txhua qhov teeb meem, sim nws dua, rov ua dua kom txog thaum txhua yam zoo. Ua kom txias.

Pom zoo: