Cov txheej txheem:

Hnab looj tes fais fab Pi: 7 Kauj Ruam
Hnab looj tes fais fab Pi: 7 Kauj Ruam

Video: Hnab looj tes fais fab Pi: 7 Kauj Ruam

Video: Hnab looj tes fais fab Pi: 7 Kauj Ruam
Video: Tseem Ev Lub Kawm - Koos Loos 2024, Kaum ib hlis
Anonim
Lub Hwj Chim Hnab Pi
Lub Hwj Chim Hnab Pi
Lub Hwj Chim Hnab Pi
Lub Hwj Chim Hnab Pi

Nov yog Nintendo Hnab Hnab Hnab nrog Raspberry pi xoom sab hauv. Kuv tab tom siv thawj D-ncoo, A, B, Pib, thiab Xaiv rau kev tswj hwm.

Yam uas koj yuav xav tau rau txoj haujlwm no:

1) Lub hnab looj tes Nintendo lub zog.

2) Raspberry pi xoom nrog SD daim npav thiab txhua lub xov tooj thiab cov hloov pauv.

3) Soldering hlau nrog cov laug.

4) Qee yam cuab yeej txiav, Kuv siv Dremel.

5) Qee qhov xaim me me thiab 330-ohm resistor.

6) Craft riam lossis rab chais hniav.

7) Cov kab hluav taws xob dub thiab cov kua nplaum kub.

8) Cov hlua hluav taws xob/tus txiav thiab lub taub hau ntsia hlau Philips.

9) Me me me ntsis nrog laum, Kuv siv ib qho rau kuv Dremel.

Kauj Ruam 1: Siv lub hnab looj tes fais fab sib nrug

Siv Lub Hwj Huam Hnab Sib nrug
Siv Lub Hwj Huam Hnab Sib nrug

1) Txiav lub qaum los sab nraub qaum.

2) Tig nws thiab coj 4 Philips ntsia hlau tawm. Lub vaj huam sib luag pem hauv ntej yuav tsum tawm.

3) Qhib lub vaj huam sib luag thiab txiav cov xaim mus rau lub ntsuas phoo nyob rau sab xub ntiag thiab cov xov hlau mus rau qaum sab nraub qaum.

4) Siv 5 tus ntsia hlau Philips ntxiv tuav lub rooj tsavxwm tseem ceeb.

5) Nqa lub rooj tsavxwm tawm thiab txiav tawm cov xov hlau uas seem, diodes, resistors, thiab txhua yam ntxiv. Tab sis TSIS TXHOB tshem RED qhov taw qhia LED ntawm lub rooj tsavxwm.

Qhov no yuav yog lub sijhawm zoo los ntxuav lub hnab looj tes.

Kauj ruam 2: Txiav

Txiav
Txiav
Txiav
Txiav
Txiav
Txiav

1) Siv Dremel lossis cov cuab yeej txiav, thiab txiav ib ntu ntawm pawg thawj coj saib qhov twg koj yuav haum Raspberry pi rau. Tsom rau ntawm 12 lub pob saum toj kawg nkaus thiab siv kuv daim duab los ua phau ntawv qhia. Koj yuav xav khaws D-ncoo, Chaw, A, B, Pib, thiab Xaiv cov nyees khawm. Mus ncig lub qhov nrog kab xev hluav taws xob yog li koj yuav tsis muaj lub ris luv thiab kom ntseeg tau tias Raspberry pi haum haum. Muab daim kab xev hluav taws xob tso rau ntawm lub ncoo roj hmab rau 12 khawm uas koj tsis siv.

Kauj Ruam 3: Drilling and Trace Prep

Drilling thiab Laug Prep
Drilling thiab Laug Prep
Drilling thiab Laug Prep
Drilling thiab Laug Prep
Drilling thiab Laug Prep
Drilling thiab Laug Prep

1) Siv lub laum me me, tho qhov nyob ib sab ntawm cov kab uas pom hauv daim duab. NEXT rau, tsis yog.

2) Siv rab riam los yog rab chais hniav, khawb cov txheej tiv thaiv tawm ntawm kab kom nws tig kub lossis ci ncaj los ntawm txhua lub qhov.

3) Nrog qee lub tshuab ziab khaub ncaws thiab muab cov hlau tso rau, muab qee lub lauj kaub tso rau ntawm txhua kab kom tau txais kev npaj rau kev siv cov laug.

Kauj ruam 4: Soldering

Soldering
Soldering
Soldering
Soldering
Soldering
Soldering

Daim duab txuas yuav qhia koj tias khawm nws yog dab tsi, thiab qhov twg xaim xav tau txuas nrog rau kab.

Rau cov xov hlau, muaj ib qho hauv av thiab ib qho rau Up, Down, Left, Right, B, A, Pib, thiab Xaiv - 9 kab/kab nyob hauv tag nrho.

1) Tau txais xov hlau txog 3 hauv qhov ntev thiab hle lawv qhov kawg. Muab lawv hla lub qhov thiab khoov cov xaim kom nws kov tau cov kab. Siv cov xaim xaim mus rau kab.

Tam sim no, kuv yuav hla mus rau kauj ruam 5 (Software) kom tau txais cov software los sim ua ntej soldering rau qhov zoo.

2) Txuas Txuas Ntxiv, Nqes, Sab laug, Txoj Cai, B, A, Pib, thiab Xaiv cov xov hlau mus rau GPIO pins ntawm Raspberry pi. Txuas qhov av ib txwm rau tus pin hauv av ntawm tus pi.

Yog tias koj tsis paub tias GPIO pins nyob qhov twg, siv cov duab saum toj no.

GPIO - Tswj

23 - Saum

27 - Ua ntej

22 - Sab laug

17 - Yog lawm

19 - Square (B)

16 - X (A)

12 - Pib

6 - Xaiv

Pin 39 av - Cov av ib txwm

3) Txuas lub teeb ci LED. Mus rau lub LED liab los ntawm D-Pad. Sab nrog cov ntug ncaj (tsis yog puag ncig) tsis zoo thiab qhov ntawd mus rau 330-ohm resistor thiab tom qab ntawd txhawm rau pin 6 (Hauv av) ntawm tus pi. Qhov puag ncig yuav mus rau tus pin 8 (GPIO 14) ntawm tus pi.

Yog tias koj muaj lub LED hauv koj qhov tsim, kom nws ua haujlwm koj yuav tsum tau pab kom GPIO qhov chaw nres nkoj txuas. Koj tuaj yeem ua qhov no hauv Retro pi lossis los ntawm kev kho koj cov ntawv /boot/config.txt thiab ntxiv kab hauv qab no:

enable_uart = 1

Thaum koj ua tiav cov tshuaj txhuam, lo tus pi mus rau lwm lub rooj tsavxwm.

Kauj ruam 5: Software

Software
Software

1) Tau Retro Pie "https://retropie.org.uk/download/" thiab unzip nws.

2) Siv Win32diskimager "https://sourceforge.net/projects/win32diskimager/". Sau Retro Pie rau koj daim npav SD.

3) Muab daim npav SD tso rau hauv koj li Raspberry pi thiab xyuas kom nws khau khau Retro pi zoo. Coj daim npav SD thiab muab nws rov qab rau hauv koj lub PC.

4) Txhim kho koj li GPIO Tswj.

-Install Notepad ++ yog tias koj xav hloov GPIO Pins los ntawm software.

-Download qhov hloov kho Retrogame zip file Ntawm no thiab unzip nws.

Thaum rho tawm, koj yuav pom cov ntawv hu ua (setupcontrols.bash) thiab daim nplaub tshev hu ua (otherMod)

Luam ob qho ntawm lawv thiab muab tshuaj txhuam rau hauv lub khau raj uas tau tshwm sim thaum koj tso daim npav microSD rau hauv koj lub computer.

-Tam sim no, tshem lub micro SD thiab ntxig nws rau hauv Raspberry Pi. Khau raj Pi rau hauv RetroPie thiab nias F4 ntawm koj cov keyboard txuas kom tawm mus rau kab hais kom ua.

Tam sim no lub software yuav tsum tau teeb tsa. Ua li ntawd, koj yuav tsum ntaus ib lo lus txib:

sudo bash /boot/setupcontrols.bash

Ua raws li cov lus qhia kom nruab. Kauj ruam kawg nug seb koj puas xav rov pib dua, ntaus Y thiab nkag mus kom nws tshwm sim.

Yog tias koj xav tau qee yam ntxiv hauv qhov tob ntawm cov kauj ruam no mus ntawm no: "https://othermod.com/gpio-buttons/"

Kauj Ruam 6: Ua Haujlwm

Case Ua Haujlwm
Case Ua Haujlwm
Case Ua Haujlwm
Case Ua Haujlwm
Case Ua Haujlwm
Case Ua Haujlwm

1) Siv Dremel lossis Craft riam (Kuv siv riam riam) thiab txiav qhov tawm rau 2 Micro usb thiab ib qho Micro HDMI.

Kauj Ruam 7: Koj Ua tiav !

Koj Ua Tau !!!
Koj Ua Tau !!!

1) Muab 2 ntawm 5 tus ntsia hlau rov qab rau hauv niam lub rooj thiab 4 lub ntsiab tseem ceeb rov qab thiab koj ua tiav. Mus ua si qee qhov kev ua si vim tias koj ua si nrog Power, Nintendo Power.

Qhov chaw:

-https://othermod.com/gpio-buttons/

-https://howchoo.com/g/ytzjyzy4m2e/build-a-simple-raspberry-pi-led-power-status-indicator

-https://www.instructables.com/id/Power-Glove-20th-Anniversary-Edition/

Pom zoo: