Cov txheej txheem:

DIY Handheld Game Console Siv RetroPie: 7 Cov Kauj Ruam
DIY Handheld Game Console Siv RetroPie: 7 Cov Kauj Ruam

Video: DIY Handheld Game Console Siv RetroPie: 7 Cov Kauj Ruam

Video: DIY Handheld Game Console Siv RetroPie: 7 Cov Kauj Ruam
Video: Comment faire un serveur Minecraft avec un Raspberry (Version2)(Toutes versions de minecraft) 2024, Kaum ib hlis
Anonim
Image
Image
DIY Handheld Game Console Siv RetroPie
DIY Handheld Game Console Siv RetroPie

Saib cov vis dis aus saum toj no kom nkag siab qhov haujlwm no zoo dua.

Zoo. Nws yog lub sijhawm kom koj pib!

Ua ntej tshaj plaws, peb yuav siv RetroPie. Qhov no tawm peb nrog ob txoj kev xaiv. Yog tias peb twb tau teeb tsa Raspbian ntawm peb daim npav SD, tom qab ntawv peb tuaj yeem nruab RetroPie emulator rau saum nws. Txwv tsis pub, peb tuaj yeem rub tawm Prebuilt RetroPie Image thiab teeb tsa kho vajtse, rub tawm, nruab thiab ua si game.

Kuv rub daim duab ua ntej RetroPie. Koj yuav tsum mus rau qhov txuas no: https://retropie.org.uk/download/ thiab rub Raspberry Pi 0/1 duab yog tias koj siv Raspberry Pi Zero board lossis koj tuaj yeem rub Raspberry Pi 2/3 Duab yog tias koj tab tom siv 2, 3, 3B cov laug cam.

Kauj Ruam 1: Yam Yuav Tsum Tau

Yam Yuav Tsum Tau
Yam Yuav Tsum Tau
Yam Yuav Tsum Tau
Yam Yuav Tsum Tau

Nov yog yam peb xav tau:

  1. Raspberry Pi Zero W.
  2. Keyboard lossis Joystick (Rau Kev Pib Ua Ntej)
  3. Micro SD Card (Min 4 GB)
  4. TV / Saib PC (Rau Thawj Teeb)
  5. Tactile Nyees khawm - 12 pc
  6. Zawv zawg Hloov - 1pc
  7. TFT Zaub (Kuv siv 2.2 "ILI9341 Zaub)
  8. 0.5W 8 Ohm Hlau Hais Lus
  9. Kauj ruam nce DC-DC Converter Module (Kuv siv MT3608)
  10. Resistors thiab Capacitors rau Lim (Saib schematic)
  11. Stereo Amp Module PAM1608 (Kuv siv lub pob qhov rooj)
  12. Phom phom
  13. Soldering Tshuab
  14. Lithium Polymer Battery (Kuv siv 1500mAH)
  15. LiPo Charger Module

Tej zaum koj yuav xav tau nkag mus rau lub tshuab luam ntawv 3D yog tias koj xav tsim lub tshuab cua tshuab puv.

Hauv qhov xwm txheej zoo li no, koj tuaj yeem rub tawm cov qauv 3D los ntawm kuv qhov profile thoob ntiaj teb:

www.thingiverse.com/thing 3089880

Kauj ruam 2: Download Etcher

Rub tawm Etcher
Rub tawm Etcher
Rub tawm Etcher
Rub tawm Etcher

Thaum daim duab rub tawm, koj tuaj yeem nyem nws rau koj daim npav SD siv software hu ua Etcher.

Koj tuaj yeem rub tawm Etcher ntawm no:

Tom qab rub tawm cov software, xaiv cov duab rub tawm thiab xaiv SD Card thiab nyem nyem. Nws yuav siv sijhawm li ob lossis ob feeb los npaj koj daim npav SD.

Tam sim no ntsaws qhov no rau hauv raspberry pi thiab txuas nws rau koj lub monitor.

Kauj Ruam 3: Thawj Lub Sijhawm Kho

Thawj Lub Sijhawm Kho
Thawj Lub Sijhawm Kho
Thawj Lub Sijhawm Kho
Thawj Lub Sijhawm Kho
Thawj Lub Sijhawm Kho
Thawj Lub Sijhawm Kho
Thawj Lub Sijhawm Kho
Thawj Lub Sijhawm Kho

Txuas lub zog los ntawm micro USB Cable.

Bingo.

Peb tau txais cov lus pib ua raws tom qab los ntawm RetroPie Splash Screen thiab tom qab ntawd Emulationstation Splash Screen uas RetroPie siv ua lub hauv ntej game launcher.

Yog tias koj muaj keyboard, txuas nws thiab nias F4 kom nkag mus rau Linux hais kom sai. Koj tuaj yeem teeb tsa cov tswv yim tom qab.

Nkag mus rau cov lus txib hauv qab no kom nkag mus rau nplooj ntawv teeb tsa

sudo raspi-teeb tsa

Koj yuav tsum hloov tus password tsis raug. Yog li mus tom ntej thiab hloov qhov ntawd.

Tom qab ntawv xaiv koj thaj av hauv kev xaiv hauv zos.

Txij li thaum peb yuav txuas tus TFT zaub los ntawm SPI Interface, peb yuav tsum pab kom SPI kev sib txuas lus hauv Kev xaiv cuam tshuam.

Nws tau pom zoo kom pab SSH ntxiv rau qhov no yuav pab peb thauj khoom thiab teeb tsa peb lub console yooj yim. Yog li mus tom ntej thiab pab nws.

Peb yuav siv lub suab los ntawm Pi's PWM tso tawm, yog li peb yuav tsum yuam lub suab los ntawm 3.5mm nkaus. Yog li mus tom ntej rau cov kev xaiv ua ntej thiab yuam lub suab rau 3.5mm nkaus.

Koj tuaj yeem tawm ntawm nplooj ntawv teeb tsa tam sim no.

Reboot Pi.

Peb tuaj yeem siv cov keyboard lossis tus joystick ib ntus los teeb tsa cov khoom siv (yeem), tuav ib lub pob kom txog thaum teeb tsa lub qhov rooj ntawm lub qhov rooj tshwm. Tom qab ntawd rau joystick khawm teeb tus yuam sij ntawm cov keyboard. Hla cov haujlwm uas tsis xav tau los ntawm kev tuav lub pob ib ntus.

Tom qab xaiv cov yuam sij nyem paub meej tias siv cov khawm teeb tsa.

Peb tuaj yeem rov teeb tsa cov nyees khawm tom qab yog xav tau.

Kauj Ruam 4: Txhim Kho Cov Games

Txhim Kho Cov Kev Ua Si
Txhim Kho Cov Kev Ua Si
Txhim Kho Cov Kev Ua Si
Txhim Kho Cov Kev Ua Si

Raws li tam sim no, yuav tsis muaj kev ua si tam sim no hauv qhov system. Koj yuav tsum rub cov games los ntawm internet thiab thauj nws mus rau hauv daim npav SD.

Muaj ob txoj hauv kev los ua.

Koj tuaj yeem siv koj tus ntiv tes xoo kom luam cov game los ntawm koj lub PC mus rau Pi, lossis koj tuaj yeem siv cov haujlwm zoo li WinSCP los rub thiab tso game rau koj Pi yog tias koj tau qhib WiFi.

Koj tuaj yeem rub cov game ROM cov ntaub ntawv los ntawm is taws nem thiab luam lawv rau cov npe sib xws hauv qab daim nplaub tshev/home/pi/RetroPie/roms/.

Kauj Ruam 5: Kho lub TFT Display

Configuring TFT Display
Configuring TFT Display

Txheeb Schematic rau tus pin txuas.

Ntxiv cov kab hauv qab no rau /boot/config.txt

=======================================================================

hdmi_cov = 2

#kuv cov lus daws teeb meem yog 320 x 240. Kho raws li koj li

hdmi_mode = 87

hdmi_cvt = 320 240 60 1 0 0 0 0

hdmi_force_hotplug = 1

luas = 48000000

fps = 60 ib

display_rotate = 2 180 degrees

#Yog tias koj xav tau lub tso suab siv qhov no

#dtoverlay = pwm-2chan, pin = 18, func = 2, pin2 = 13, func2 = 4

#Yog tias koj xav mono siv qhov no

dtoverlay = pwm, pin = 13, func = 4

=======================================================================

Nco ntsoov tias koj tau txuas cov xov hlau raws li tau hais hauv kab lus.

Nkag mus rau cov lus txib hauv qab no hauv lub davhlau ya nyob twg thiab pom tias LCD Backlight tshwm zoo li cas!

sudo modprobe fbtft_device kev cai lub npe = fb_ili9341 gpios = rov pib dua: 25, dc: 24, coj: 15 nrawm = 16000000 bgr = 1

Ntxiv cov kab hauv qab no rau /etc /modules

spi-bcm2835fbtft_device

Tus Pi yuav siv lub tsev qiv ntawv fbtft los sau rau hauv LCD.

Fbtft_device xav tau tus pin teeb tsa los qhia meej hauv cov ntawv /etc/modprobe.d/fbtft.conf

Yog li qhib cov ntawv siv:

sudo nano /etc/modprobe.d/fbtft.conf

Ntxiv cov hauv qab no rau hauv cov ntawv:

xaiv fbtft_device lub npe = fb_ili9341 gpios = rov pib dua: 25, dc: 24, coj: 15 nrawm = 16000000 bgr = 1 tig = 90 kev cai = 1

Peb yuav tsum theej tus Pi framebuffer rau lub fbtft ntaus ntawv. Yog li mus tom ntej, tsim thiab teeb tsa fbcp project.

Clone raspberry pi fbcp project los ntawm github:

git clone

cd rpi-fbcp/

mkdir ua

cd tsim/

cmk ua

ua

sudo nruab fbcp/usr/local/bin/fbcp

Tom qab qhov kev teeb tsa no, yog tias koj ntaus ntawv fbcp, koj yuav pom cov ntsiab lus ntawm tus neeg tsim khoom tau theej rau ntawm TFT screen.

Tab sis yog tias koj rov pib dua, koj yuav tsum tau nkag mus rau lo lus txib no ntxiv kom tau txais cov ntsiab lus ntawm TFT. Yog li ua qhov no txhua lub sijhawm, koj yuav tsum qhia Pi kom pib qhov no thaum khau raj qhia meej.

Yog li, ntxiv kab hauv qab no rau /etc/rc.local

sudo nano /etc/rc.local

Ntxiv fbcp & saum toj no tawm 0

Tam sim no rov pib dua thiab pom koj lub console pib ua haujlwm!

Kauj Ruam 6: Ntxiv Khawm Tswj

Ntxiv Khawm Tswj
Ntxiv Khawm Tswj

Kuv yuav siv Adafruit RetroGame txoj haujlwm los ntxiv kev tswj hwm rau peb lub console.

Nov yog qhov homepage ntawm qhov project:

github.com/adafruit/Adafruit-Retrogame/blo…

Rub tawm Nruab tsab ntawv siv cov lus txib hauv qab no:

curl https://raw.githubusercontent.com/adafruit/Raspbe…> retrogame.sh

sudo bash retrogame.sh

Tam sim no koj yuav raug nug kom nkag mus rau yam ntaus ntawv txhawm rau teeb tsa cov ntawv teeb tsa. Peb yuav tsum xaiv PiGRRL 2 (tus thib ib). Peb tuaj yeem hloov cov kev tswj hwm tom qab.

Reboot Pi.

Tam sim no nws yog lub sijhawm hloov pauv kev teeb tsa kev tswj hwm.

Peb yuav tsum ntxiv peb cov kev tswj hwm rau cov ntaub ntawv retrogame.cfg hauv /boot/retrogame.cfg

Hloov qhov teeb tsa uas twb muaj lawm nrog peb cov teeb tsa hauv qab no:

HNUB 4UP 16

LUAG 19

DUAB 26

LUAG 5

NTUJ 6

A 14

B 22

X 20

Y 18

L 12

R 7

SPACE yog Xaiv thiab ENTER yog Pib!

Kauj Ruam 7: Cov neeg ua tim khawv

github.com/notro/fbtft/wiki/fbtft_device

learn.adafruit.com/retro-gaming-with-raspb…

github.com/tasanakorn/rpi-fbcp

sudomod.com/forum/viewtopic.php?t=1534

Pom zoo: