Cov txheej txheem:

DIY USB Video Game Controller: 6 Kauj Ruam
DIY USB Video Game Controller: 6 Kauj Ruam

Video: DIY USB Video Game Controller: 6 Kauj Ruam

Video: DIY USB Video Game Controller: 6 Kauj Ruam
Video: Turn a USB Flash Drive into a Portable Gaming "System"! 2024, Kaum ib hlis
Anonim
DIY USB Video Game Controller
DIY USB Video Game Controller

Muaj ntau yam ua-nws-koj tus kheej cov kev cai tswj hwm nyob ntawd, los ntawm cov khoom siv qub arcade mus rau kev ua si ntawm cov tswj hwm niaj hnub, feem ntau yog ua los ntawm tib qhov tseem ceeb.

Txog peb qhov haujlwm kawg hauv peb chav kawm qib siab Advanced Engineering chav kawm, peb tau ua nws tus kheej los ua peb tus kheej lub maub los me me uas muaj teeb tsa yooj yim, thiab tsim los ua si yooj yim. Kev tsim qauv no tseem yog kev hloov pauv ntawm lwm tus tswj hwm kev cai, uas koj tuaj yeem pom ntawm no:

Vim tias qee yam ntawm cov khoom siv tau qhib rau ntawm peb lub tsev kawm ntawv, nws tuaj yeem nyuaj ua qee cov kauj ruam no, tab sis yog tias koj muaj tag nrho cov khoom teev hauv qab no ntawm koj qhov pov tseg, lossis xav sim thiab kho dua/hloov kho zoo li peb tau ua, tom qab ntawd zoo siab ua raws peb cov lus qhia los tsim koj tus kheej DIY USB Custom Video Game Controller!

Kauj Ruam 1: Cov Cuab Yeej & Kho Vajtse

Cuab Yeej & Kho Vajtse
Cuab Yeej & Kho Vajtse
Cuab Yeej & Kho Vajtse
Cuab Yeej & Kho Vajtse
Cuab Yeej & Kho Vajtse
Cuab Yeej & Kho Vajtse

Cov khoom uas koj yuav xav tau rau txoj haujlwm no:

  • 6x6x4.5mm Laub Khawm (12)
  • Arduino Pro Micro w/ Micro USB ntxig (1)
  • Micro USB Cable (1)
  • 10KΩ Resistors (10)
  • Kev cai PCB (1) - Cov ntaub ntawv Gerber yuav raug teev rau kev xaj khoom
  • 1/8 "Acrylic - Txhua xim
  • 10-pin txiv neej-poj niam headers (2)

Kho vajtse xav tau rau qhov project:

  • Soldering Hlau (& Khoom Siv Kev Nyab Xeeb)
  • Laser Cutter - Tej zaum yuav nyuaj; Yuav ua haujlwm nyob ib puag ncig
  • 3D Tshuab Luam Ntawv

Yeem! - Yog tias koj xav ntsuas koj cov txiaj ntsig ua ntej koj muab txhua yam tso rau hauv PCB, koj tuaj yeem tso tus lej ntawm Arduino, thiab teeb nws rau ntawm lub khob cij (raws li pom hauv Kauj Ruam 3), uas koj yuav xav tau:

  • Arduino Pro Micro (w/ code twb tau teeb tsa)*
  • Loj Creadboard (1-2)
  • Cov Xov (Siv tau cov xim sib txawv los ua kom yooj yim dua qhov sib txawv) (12)
  • 10KΩ Resistors (10)
  • 6x6x4.5mm Laub Khawm (12)

*Cov khoom no tuaj yeem rov siv tau rau qhov haujlwm kawg. Koj tsis tas yuav tau cov tshiab, yog tias koj xav tau

Yog tias koj muaj tag nrho koj cov khoom kub thiab npaj mus, cia pib!

Kauj Ruam 2: Kev Tshaj Tawm Txoj Cai rau Arduino

Uploading Code Rau Arduino
Uploading Code Rau Arduino

Cov cai uas peb siv yog hloov kho cov cai los ntawm Cov Lus Qhia uas peb ua raws peb li, raws li Arduino uas peb siv txawv ntawm qhov tsim uas lawv mus nrog. Peb hloov pauv ib puag ncig cov chaw nres nkoj rau cov nyees khawm sib txawv kom txhua yam yooj yim dua.

Nov yog tus lej qub yog tias koj xav sim thiab siv qhov ntawd:

Hauv Arduino software, xyuas kom tseeb tias Arduino hauv qhov chaw yog Arduino Mirco, thiab tias COM chaw nres nkoj yog Arduino Micro uas koj tau ntsaws. code yuav tsum yog ntawm Arduino.

Kauj Ruam 3: (Tsis teb los tau) Teeb Breadboard

(Tsis teb los tau) Teeb Breadboard
(Tsis teb los tau) Teeb Breadboard
(Tsis teb los tau) Teeb Breadboard
(Tsis teb los tau) Teeb Breadboard

SAWV DAWS!

Cov kauj ruam no, yog tias koj tsis pom hauv Kauj Ruam 1 lossis hauv lub npe ntawm cov kauj ruam no, yog nyob ntawm yeem. Yog tias koj xav tias txhua yam tuaj yeem ua haujlwm yam tsis tau kuaj nws ntawm lub khob cij, mus rau nws. Txij li qhov no yog thawj zaug peb tau ua ib qhov haujlwm zoo li no, peb txiav txim siab sim nws vim peb tsis xav ua kom puas cov cuab yeej uas peb tau yuav lossis muaj rau peb, thiab peb tseem xav kawm kom muaj txiaj ntsig ntau dua li raug pov tseg mus rau qhov tob kawg yam tsis muaj kev paub. Yog tias koj muaj qhov tsis txaus ntseeg txog kev mus ua lwm cov kauj ruam, dua li ua raws cov theem no ua ntej txav mus.

Peb tau tawm ntawm cov ntawv ci thiab muab tso ua ke kom tau txais kev sib koom ua ke rau cov nyees khawm, cov tiv thaiv, thiab cov xov hlau. Peb muab cov nyees khawm tso rau hauv txoj kab ncaj ncaj rau ntawm lub khob cij (tshwj tsis yog rau ib lub pob ntawm lub rooj me me saum toj no, raws li qhov ntawd yog peb lub khawm ntsuas. Koj tsis tas yuav ua raws nraim qhov ntawd). Tom qab ntawd peb txuas cov xov hlau thiab cov tiv thaiv rau cov nyees khawm zoo li daim duab saum toj no. Ua ntej koj teeb tsa Arduino, nco ntsoov tias koj tau ua raws cov kauj ruam kawg thiab muab cov cai rau ntawm qhov ntawd. Yog tias koj tsis ua, nws yuav yog ib qho yas kim kim uas tsis ua dab tsi.

Peb mam li tso Arduino nqis rau hauv qhov chaw uas txhua qhov xov hlau tuaj yeem txuas nrog cov chaw nres nkoj sib txawv cov nyees khawm yuav txav mus rau. Yog tias koj siv ntau lub thawv ntawv, nco ntsoov txuas lub zog thiab hauv av rau ob qho tib si, nrog rau Arduino nws tus kheej.

Kauj Ruam 4: Tsim/xaj PCB

PCB uas peb tau kos duab yog tus qauv tsim uas peb tau ua rau txoj haujlwm no vim yog PCB thawj qhov qub uas siv tsis txuas nrog Arduino peb tau siv. Txhawm rau ua qhov no, peb tau siv txoj haujlwm hu ua Fritzing, uas yog ib qho yooj yim siv thiab siv tau zoo heev. Peb teeb tsa lub pob teeb tsa, qhov teeb meem tiv thaiv, thiab xaiv qhov Arduino qhov uas yuav ua haujlwm rau peb Arduino, vim tias txoj haujlwm tsis muaj peb tus qauv tseeb.

Lub tuam txhab uas peb siv rau xaj PCB los ua nws yog JLCPCB. Tus nqi kwv yees li $ 30 nrog kev xa khoom los ntawm DHL, thiab muaj kev xaiv pheej yig dua rau kev xa khoom, tab sis nws yuav siv sijhawm ntev dua vim yog txheej txheem tsim khoom. Peb kuj tau ua nws tus kheej xim liab, uas tso lwm tus $ 8, yog li qhov tseeb koj PCB tuaj yeem kwv yees li $ 8-10 nrog kev xa khoom.

Kauj Ruam 5: Xeem Yog Txhua Yam Haum

Tom qab koj PCB tuaj txog, koj Arduino muaj tag nrho cov cai tso tawm, thiab koj muaj tag nrho koj cov seem, nws yog lub sijhawm los muab tso ua ke. Kuaj seb puas yog Arduino koj tau haum rau hauv qhov tsim nyog tsim nyog rau lawv, xyuas kom cov resistors thiab cov nyees khawm haum hauv qhov chaw raug, thiab saib yog tias ib qho ntawm cov kab hluav taws xob hauv PCB tau txuas nrog kom raug, thiab tsis muaj kev so (yog koj siv peb tus qauv tsim, yuav tsum tsis muaj teeb meem, tab sis nws ib txwm zoo los tshuaj xyuas ob zaug).

Kauj ruam 6: Soldering

Soldering
Soldering
Soldering
Soldering

Thaum txhua yam tau muab tso rau hauv qhov chaw raug, tam sim no koj yuav tsum tau muab cov khoom sib dhos pov tseg kom lawv muaj kev sib txuas. Ua ntej koj yuav mus rau qhov muag txawm tias, nco ntsoov siv cov tsom iav, thiab daim npog ntsej muag yog tias koj xav tau, thiab npaj koj tus neeg muag khoom npaj. Peb siv cov hlau lead ntau dua, tab sis koj zoo siab siv txhua yam ntawm cov laug, tsuav nws tuaj yeem siv los ua kev sib txuas nrog PCB.

Peb yuav pom zoo pib nrog cov neeg tawm tsam yog li koj tsis muaj cov pawg nyias nyias nyob thoob plaws qhov chaw, thiab ua ib qho zuj zus. Ib txoj hauv kev zoo kom ua rau tus tiv thaiv nyob rau hauv qhov chaw thaum koj tab tom khoov yog khoov qhov xaus ntev ntawm ib leeg thaum nws tau nyam sab hauv lub qhov ntawm PCB. Thaum koj tau muab nws muag lawm, koj tuaj yeem txiav qhov ntev ntev ntawm cov resistors nrog qee cov xaim hlau, thiab thaum ua li ntawd, nco ntsoov tsis txhob txiav ze heev, lossis koj tuaj yeem txiav cov laug thiab poob qhov txuas.

Tom qab tag nrho 10 tus tiv thaiv raug muab muag, cov nyees khawm yog tom ntej. Khaws tag nrho cov nyees khawm tso rau hauv qhov chaw es tsis muab lawv cais ua lwm yam kom yooj yim dua. Nco ntsoov xyuas yog tias koj tau siv tag nrho cov qhov, vim lawv nyob ze ua ke.

Thaum cov no tag nrho hauv thiab npaj mus, nws yog lub sijhawm rau qhov nyuaj: Arduino. Khaws Arduino rau hauv lub qhov, thiab txuas 1-2 ntawm cov chaw nres nkoj kom nws nyob hauv qhov chaw, thiab tom qab ntawd mus, ceev faj, txhawm rau txhawm rau so. Ua ke nrog ua kom ntseeg tau tias koj tsoo txhua lub qhov, tseem nco ntsoov tias tsis muaj ib tus neeg muag tshuaj kov rau lwm lub qhov muag, zoo li yog qhov tshwm sim, muaj lub sijhawm luv luv Circuit Court, uas yog qee yam uas peb tsis xav tau, lossis koj yuav yog nyob rau hauv teeb meem sib sib zog nqus.

Pom zoo: