Cov txheej txheem:
- Kauj ruam 1: Kev npaj
- Kauj ruam 2: Tsim Layout
- Kauj Ruam 3: Npaj Pi Zero ntawm Breadboard
- Kauj ruam 4: Nruab Game Buttons
- Kauj Ruam 5: Txuas Txhua Khawm 1 Terminal rau GND
- Kauj Ruam 6: Txuas Khawm Lwm Lub Terminal rau Pi Zero GPIO
- Kauj ruam 7: Nruab Xaiv thiab Pib Khawm
- Kauj Ruam 8: Kho kom raug khawm khawm
- Kauj Ruam 9: Ntsuas thiab Txiav Phaj Base
- Kauj Ruam 10: Ua Kom Pob Ntseg Hloov
- Kauj Ruam 11: Khaws Breadboard Tag Nrho
- Kauj Ruam 12: Khaws Lub Roj Teeb
- Kauj Ruam 13: Txhim Kho Cov Roj Teeb Tus Hlau rau Terminal Block
- Kauj Ruam 14: Txuas Hluav Taws Xob
- Kauj Ruam 15: Nruab Lub Hwj Huam Hloov
- Kauj Ruam 16: Txuas LCD Hlau
- Kauj Ruam 17: Txhim Kho Lub Suab
- Kauj Ruam 18: Txhim Kho Cov Qauv LCD
- Kauj Ruam 19: Rub Duab RetroPie
- Kauj Ruam 20: Rub Tawm Qhov Chaw
- Kauj ruam 21: Npaj ROM Cov Ntaub Ntawv
- Kauj Ruam 22: Nyem RetroPie Duab
- Kauj Ruam 23: Luam Cov Ntaub Ntawv
- Kauj Ruam 24: Kho Micro SD
- Kauj ruam 25: USB Txuas
- Kauj Ruam 26: Kho LCD
- Kauj ruam 27: Pab kom Fbcp
- Kauj Ruam 28: Txhim Kho Joystick
- Kauj Ruam 29: Tsim Koj Tus Kheej Txheej Txheem
- Kauj Ruam 30: Pab kom GPIO 18 Mono Audio
- Kauj ruam 31: Luam ROM Cov Ntaub Ntawv
- Kauj ruam 32: Khau raj RetroPie
- Kauj Ruam 33: Zoo Siab Kawm
Video: Breadboard RetroPie: 33 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Cov Lus Qhia no qhia yuav tsim Breadboard RetroPie li cas, tsis muaj kev siv lub tshuab luam ntawv, tsis muaj lub tshuab luam ntawv 3D, tsis xav tau Laser txiav.
Tsim lub tshuab ua si yog txoj haujlwm zoo heev rau thawj tus menyuam kawm ntawv cov khoom siv hluav taws xob. Txawm li cas los xij, feem ntau RetroPie cov phiaj xwm tsim los ntawm cov neeg laus, lub hauv paus tseem ceeb yog tsim nws xav tau ntau yam txuj ci ua ntej tib lub sijhawm, siv lub tshuab luam ntawv, 3D luam ntawv, lossis Laser txiav, cov ntaub ntawv hlau …
Qhov phiaj xwm no ua kom yooj yim, txhua yam ua los ntawm lub khob cij, thawj cov cuab yeej koj yuav tsum paub thaum kawm cov khoom siv hluav taws xob.
Qhov zoo nkauj tshaj plaws uas siv daim ntawv tais yog feem ntau yam tuaj yeem siv tau. Thaum koj xav tsim txoj haujlwm tom ntej no koj tuaj yeem tshem tawm thiab rov siv cov khoom siv thiab tseem rov qab siv lub khob cij nws tus kheej!
Kauj ruam 1: Kev npaj
Raspberry Pi Zero
Kuv paub tias nws pheej yig tab sis nyuaj rau yuav ib qho, yog tias koj xav tau qhov ua tau zoo hauv WiFi, Zero W yog qhov yooj yim kom tau txais thiab nws tseem tuaj yeem pab ua si net rau koj lub tshuab game
Micro SD daim npav
Thov txheeb xyuas RPi daim npav SD daim ntawv teev npe ntawm no:
LCD Module
2.8 nti ili9341 LCD Module
Phaj Phaj
Ib lub phaj yas 165 mm x 112 mm pab ua ke txhua feem ua ke
Cov qhob cij
Txoj haujlwm no xav tau txuas Raspberry Pi Zero, 2.8 nti LCD, 12 lub khawm tswj, lub zog thiab lub suab txhua yam ua ke. Yog li nws xav tau ntau yam khoom me me sib txuas ua ke:
- 1 x 830 qhov qhob cij
- 3 x 170 lub qhov me me breadboards
Breadboard Hlau
Breadboard tus phooj ywg zoo tshaj
Kab nuv ntses
0.3mm Nylon cov kab nuv ntses, nws pab kho tus pin header rau Pi Zero yam tsis siv tshuaj yaj yeeb
Tus Pin Header
2x40 18mm tus pin header Qhov tseeb nws tsuas yog xav tau 2x20 tus pin, tab sis cov pins tau yooj yim tawg thaum kho, yog li yuav ntau dua rau lub hom phiaj thaub qab
Khawm
Txhua lub khob cij ua phooj ywg khawm tau zoo, Kuv siv:
- 10 x 12 hli cov nyees khawm nrog khawm khawm
- 2x6mm cov nyees khawm
Roj Teeb Nrog
2 x 2 AA Roj Teeb Nrog
Hwj chim Hloov
Ib qho khoom noj khoom haus ntawm tus phooj ywg hloov pauv yog OK
DC-DC 5 V Regulator Module
Lub Roj Teeb, lub zog hloov pauv thiab DC tus tswj hwm ua ke muab 5 V lub zog xa mus rau Pi Zero. Kuv pom zoo siv cov roj teeb rov qab rau ib puag ncig vim li cas, 4 lub roj teeb AA rov muab 4.8 V zog, nws qis dua me dua 5 V tab sis Pi Zero tuaj yeem zam lub zog me ntsis tsis txaus. Yog tias koj ib txwm siv cov roj teeb rov tau, DC tus tswj hwm tuaj yeem hla tau.
Ntsia Hlau Terminal Thaiv
3 x 2 pins ntsia hlau dav hlau thaiv, 2 rau tus tuav lub roj teeb thiab 1 rau tus hais lus
Cheebtsam Suab (Yeem Xaiv)
- 33nf cev
- 10 uf capacitor
- 47k Ohm tus tiv thaiv
- NPN transistor (piv txwv li 2N2222)
- Tus hais lus me me (tuaj yeem pom hauv cov cuab yeej qub)
Lwm tus
Lub khoos phis tawj, daim npav nyeem ntawv thiab micro USB cable rau lub teeb nyem RetroPie duab thiab pib teeb tsa
Kauj ruam 2: Tsim Layout
Cov qhob cij faib ua 2 pawg ntawv ci. Cov vaj huam sib luag qis hauv kuv qhov haujlwm yav dhau los (Pi Zero ntawm Breadboard); vaj huam sib luag sab sau ua ke nrog 3 daim me me ntawm daim txiag ntoo.
Hauv vaj huam sib luag qis:
- Raspberry Pi Zero tso rau hauv nruab nrab
- Sab laug yog cov nyees khawm
- Sab xis yog 6 khawm ua
- Saum toj no Pi Zero yog xaiv thiab pib khawm
Ntawm lub vaj huam sib luag sab saud:
- LCD tso rau hauv nruab nrab
- Dhau li ntawm LCD yog lub zog khawm thiab cov khoom siv suab
- Tus neeg hais lus tso rau saum LCD
- Sab laug thiab sab xis yog 2xAA lub roj teeb tuav
Kauj Ruam 3: Npaj Pi Zero ntawm Breadboard
Thov npaj Pi Zero ntawm Breadboard raws li kuv cov lus qhia yav dhau los:
www.instructables.com/id/Pi-Zero-on-the-Br…
Kauj ruam 4: Nruab Game Buttons
Qee cov nyees khawm yuav xav tau qee qhov kev hloov kho kom haum rau ntawm lub khob cij khov kho.
Cov nyees khawm teeb tsa tsuas yog nyob ntawm koj nyiam, tsuas yog qhov yuav tsum tau ua raws yog ib lub davhlau ya nyob twg txuas rau GND thiab lwm lub davhlau ya nyob twg txuas rau Pi Zero GPIO.
Kauj Ruam 5: Txuas Txhua Khawm 1 Terminal rau GND
Kauj Ruam 6: Txuas Khawm Lwm Lub Terminal rau Pi Zero GPIO
Nov yog cov nyees khawm txuas cov ntsiab lus:
GND -> Up -> GPIO 22
GND -> Nqis -> GPIO 17 GND -> Sab laug -> GPIO 27 GND -> Sab xis -> GPIO 4 GND -> A -> GPIO 26 GND -> B -> GPIO 19 GND -> L -> GPIO 13 GND - > X -> GPIO 5 GND -> Y -> GPIO 21 GND -> R -> GPIO 20
Kauj ruam 7: Nruab Xaiv thiab Pib Khawm
Khawm kev sib txuas cov ntsiab lus:
GND -> xaiv -> GPIO 16
GND -> pib -> GPIO 6
Kauj Ruam 8: Kho kom raug khawm khawm
Kauj Ruam 9: Ntsuas thiab Txiav Phaj Base
Kauj Ruam 10: Ua Kom Pob Ntseg Hloov
Kauj Ruam 11: Khaws Breadboard Tag Nrho
Kauj Ruam 12: Khaws Lub Roj Teeb
Kauj Ruam 13: Txhim Kho Cov Roj Teeb Tus Hlau rau Terminal Block
Kauj Ruam 14: Txuas Hluav Taws Xob
Kauj Ruam 15: Nruab Lub Hwj Huam Hloov
Nov yog cov ntsiab lus txuas lub roj teeb txuas:
sab laug lub roj teeb tuav -ve -> sab xis lub roj teeb tuav +ve
tus tuav lub roj teeb sab laug +ve -> hloov hluav taws xob -> 5 V tus tswj hwm (xaiv tau: tsuas yog rau lub roj teeb uas tsis tuaj yeem rov ua dua tshiab) -> breadboard 5 V txoj cai lub roj teeb tuav -ve -> breadboard GND
Kauj Ruam 16: Txuas LCD Hlau
Nov yog cov ntsiab lus txuas ntawm LCD:
LCD Vcc -> breadboard 5 V
LCD GND -> breadboard GND LCD CS -> GPIO 8 LCD Reset -> GPIO 25 LCD D/C -> GPIO 24 LCD MOSI -> GPIO 10 LCD CLK -> GPIO 11 LCD LED -> GPIO 15
Kauj Ruam 17: Txhim Kho Lub Suab
Nov yog cov ntsiab lus sib txuas txuas cov ntsiab lus:
GPIO 18 -> 33nf capacitor -> breadboard GND
GPIO 18 -> 10uf capicitor -> NPN transistor puag tus pin NPN transistor emmitter tus pin -> breadboard GND NPN transistor collector -> hais lus -> breadboard 5 V
Kauj Ruam 18: Txhim Kho Cov Qauv LCD
Kauj Ruam 19: Rub Duab RetroPie
Thov rub cov duab RetroPie ntawm no:
retropie.org.uk/download/
Xaiv "Raspberry Pi 0/1" xaiv los rub cov duab rau Raspberry Pi Zero.
Kauj Ruam 20: Rub Tawm Qhov Chaw
2 qhov chaws xav tau ntxiv rau Breadboard RetroPie:
mk_arcade_joystick_rpi:
rpi-fbcp:
Nyem yooj yim "Clone lossis rub tawm" khawm thiab tom qab ntawd "Download ZIP" los ntawm ob qhov chaw nplooj ntawv web.
Kauj ruam 21: Npaj ROM Cov Ntaub Ntawv
Rau qhov tsis yog daim ntawv tso cai ua si dawb, Kuv xav tias koj tsuas yog siv ROM uas koj muaj thawj qhov kev ua si.
Lossis koj yuav pom qee daim ntawv tso cai ua si dawb ntawm no:
pdroms.de/files
www.doperoms.com
Kauj Ruam 22: Nyem RetroPie Duab
Cov kauj ruam rau nyem RetroPie duab mus rau daim npav micro SD zoo ib yam li cov duab Raspbian. Yog tias koj tsis paub cov kauj ruam flashing, thov ua raws cov kauj ruam muab los ntawm Raspberry.org:
- Linux
- Mac OS
- Qhov rai
PS nco ntsoov hloov daim duab npe lub npe nrog duab RetroPie.
Kauj Ruam 23: Luam Cov Ntaub Ntawv
Luam "mk_arcade_joystick_rpi-master.zip", "rpi-fbcp-master.zip" thiab koj li game ROM mus rau RetroPie micro SD nyuam qhuav tsim.
Kauj Ruam 24: Kho Micro SD
Peb xav tau kev teeb tsa ntxiv tom qab RetroPie khau raj, ua ntej ntawd, peb yuav tsum ua kom DWC2 USB tus tswj hwm los ua kev sib txuas sib txuas ntawm lub khoos phis tawj thiab Pi Zero.
Kho qhov config.txt hauv micro SD, ntxiv cov kab hauv qab ntawm tus Tsov:
dtoverlay = dwc2
Kho qhov codlin.txt hauv micro SD, ntxig "modules-load = dwc2, g_ether" tom qab "rootwait" lo lus tseem ceeb. Qhov tshwm sim yuav tsum yog qee yam xws li:
dwc_otg.lpm_enable = 0 console = serial0, 115200 console = tty1 root =/dev/mmcblk0p2 rootfstype = ext4 elevator = hnub kawg fsck.repair = yog rootwait modules-load = dwc2, g_ether ntsiag to loglevel = 3 consoleblank = 0 plymouth.enable = 0 ntsiag to init =/usr/lib/raspi-config/init_resize.sh
Tsim cov ntawv tsis muaj npe hu ua "ssh" hauv micro SD kom qhib tau qhib server, piv txwv. hauv kuv Mac:
kov/Tagnrho/khau raj/ssh
Ref:
Kauj ruam 25: USB Txuas
Ntxig lub micro SD rau Pi Zero thiab txuas Pi Zero 2nd USB lub qhov (sau "USB") rau lub khoos phis tawj.
Tos ib ncig ib pliag, koj yuav tsum pom lub network hloov tshiab hauv koj lub computer. Ntaus cov lus txib hauv qab no txuas rau Pi Zero:
PS default password yog "raspberry", koj yuav tsum hloov nws ASAP los ntawm "passwd" hais kom ua
Kauj Ruam 26: Kho LCD
Ntxiv rau "/etc/modules"
nco-bcm2835
fbtft_device
tsim "/etc/modprobe.d/fbtft.conf"
xaiv fbtft_device kev cai lub npe = fb_ili9341 gpios = rov pib dua: 25, dc: 24, coj: 15 nrawm = 48000000 tig = 90 bgr = 1
Ref:
Kauj ruam 27: Pab kom Fbcp
Extract cov ntaub ntawv:
unzip /boot/rpi-fbcp-master.zip
Sau thiab nruab:
cd rpi-fbcp-tus tswv/
mkdir tsim cd tsim cmake.. ua sudo nruab fbcp/usr/local/bin/fbcp cd../..
Ntxig cov kab hauv qab no ua ntej "tawm 0" hauv "/etc/rc.local"
/usr/zos/bin/fbcp &
Ntxiv cov kab hauv qab no hauv "/boot/config.txt" ntawm tus Tsov tus tw:
hdmi_force_hotplug = 1
hdmi_group = 2 hdmi_mode = 87 hdmi_cvt = 320 240 60 1 0 0 0 disable_overscan = 1 dtparam = spi = rau
Ref.:
Kauj Ruam 28: Txhim Kho Joystick
Extract cov ntaub ntawv:
unzip /boot/mk_arcade_joystick_rpi-master.zip
Kho cov ntsiab lus txhais:
cd mk_arcade_joystick_rpi-master/
vi mk_arcade_joystick_rpi.c
Nrhiav qhov "static const int mk_arcade_gpio_maps " kab thiab hloov kho rau koj lub ntsiab lus khawm, piv txwv li kuv txhais:
zoo li qub int int mk_arcade_gpio_maps = {22, 17, 27, 4, 6, 16, 26, 19, 20, 5, 21, 13};
Sau thiab teeb tsa module:
sudo mkdir /usr/src/mk_arcade_joystick_rpi-0.1.5/
sudo cp -a * /usr/src/mk_arcade_joystick_rpi-0.1.5/ export MKVERSION = 0.1.5 sudo -E dkms tsim -m mk_arcade_joystick_rpi -v 0.1.5 sudo -E dkms nruab -m mk_arcade_joystick_rpi -v 0.1.5
Kuaj cov nyees khawm:
sudo modprobe mk_arcade_joystick_rpi daim ntawv qhia = 1
jstest/dev/input/js0
Ntxiv rau "/etc/modules"
mk_arcade_joystick_rpi
tsim "/etc/modprobe.d/joystick.conf":
xaiv mk_arcade_joystick_rpi daim ntawv qhia = 1
Ref:
Kauj Ruam 29: Tsim Koj Tus Kheej Txheej Txheem
Hloov tshiab: 2017/05/18
Breadboard yog qhov yooj yim heev rau ntsaws thiab tshem tawm cov khoom, thov koj xav ob peb sim thiab tsim koj tus kheej khawm teeb tsa.
Yog tias koj tau hloov pauv GPIO kev sib txuas, koj tuaj yeem ua raws cov ntawv hauv qab no kom rov sau dua cov qauv:
cd mk_arcade_joystick_rpi-master/
export MKVERSION = 0.1.5 sudo -E dkms uninstall -m mk_arcade_joystick_rpi -v 0.1.5 vi mk_arcade_joystick_rpi.c sudo rm -rf /usr/src/mk_arcade_joystick_rpi-0.1.5/ sudo mkdir /usr/src_m.5 /sudo cp -a * /usr/src/mk_arcade_joystick_rpi-0.1.5/ sudo -E dkms tsim -m mk_arcade_joystick_rpi -v 0.1.5 sudo -E dkms nruab -m mk_arcade_joystick_rpi -v 0.1.5
Kauj Ruam 30: Pab kom GPIO 18 Mono Audio
Ntxiv cov kab hauv qab no hauv "/boot/config.txt" ntawm tus Tsov tus tw:
dtoverlay = pwm, pin = 18, func = 2
Ref.: Yog
learn.adafruit.com/adding-basic-audio-oupu…
retropie.org.uk/forum/topic/4269/popeye-pi…
Kauj ruam 31: Luam ROM Cov Ntaub Ntawv
Luam ROM cov ntaub ntawv los ntawm "/khau raj" nplaub tshev rau "~/RetroPie/roms/$ CONSOLE" nplaub tshev
Ref:
Kauj ruam 32: Khau raj RetroPie
Tua tawm RetroPie:
sudo nres
- Tshem lub USB cable
- Ntxig lub roj teeb AA kom puv
- Qhib lub hwj huam hloov
- Ua raws li kev qhia tshuaj ntsuam kom teeb tsa lub pob game
- Xaiv lub console thiab game
- Txaus siab rau!
Kauj Ruam 33: Zoo Siab Kawm
Breadboard RetroPie yog qhov pib zoo ntawm kev kawm Raspberry Pi. Nws yog lub sijhawm los pib ua haujlwm Raspberry Pi nrog koj tus menyuam!
Pom zoo:
Kev Tsim Qauv Duab Duab/Duab Duab Duab: 4 Kauj Ruam
Kev Tsim Qauv Duab Duab/Duab Duab Duab: Nyob zoo txhua tus, Hauv qhov kev qhia no, Kuv yuav qhia koj cov txheej txheem ntawm yuav ua li cas thiaj tsim 3D qauv siv cov duab digital. Cov txheej txheem hu ua Photogrammetry, tseem hu ua Image-Based Modeling (IBM). Tshwj xeeb, hom txheej txheem no tau siv los rov ua dua
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Yuav Ua Li Cas Thiaj Li Tshem Tawm Lub Computer Nrog Cov Kauj Ruam Yooj Yim thiab Duab: 13 Kauj Ruam (nrog Duab)
Yuav Tsum Tshem Tawm Lub Khoos Phis Tawj Li Cas Nrog Cov Kauj Ruam Yooj Yim thiab Duab: Nov yog cov lus qhia txog yuav ua li cas tshem lub PC. Feem ntau ntawm cov khoom siv yooj yim yog hloov pauv thiab tshem tawm tau yooj yim. Txawm li cas los xij nws yog ib qho tseem ceeb uas koj tau koom nrog nws. Qhov no yuav pab tiv thaiv koj kom tsis txhob poob ib feem, thiab tseem ua rau kev rov ua dua tshiab
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: 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 Tom qab, Kuv txiav txim siab los
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv