Cov txheej txheem:

DIY Arcade Joystick: 3 Kauj Ruam
DIY Arcade Joystick: 3 Kauj Ruam

Video: DIY Arcade Joystick: 3 Kauj Ruam

Video: DIY Arcade Joystick: 3 Kauj Ruam
Video: DIY Arcade Controller for Tekken 7! 2024, Kaum ib hlis
Anonim
DIY Arcade Joystick
DIY Arcade Joystick
DIY Arcade Joystick
DIY Arcade Joystick

Nov yog arcade joystick kuv tau ua.

Arcade joystick nws tus kheej yog tsim los ntawm kos siv cov menyuam hloov pauv, tsis muaj ua ntej ua arcade joystick module siv ua ntej tes. Kuv tau txais lub tswv yim no los ntawm ib tus neeg hauv 2016 Maker Faire Singapore, qhov uas kuv nco tau qee yam ib qho nkaus xwb, tshwj tsis yog txoj kev zoo dua li kuv li.

Cov khawm arcade tsis tu ncua $ 2 Arcade cov nyees khawm, yooj yim tab sis txoj hauv kev zoo dua li koj li kev hloov pauv tau yooj yim.

Kauj Ruam 1: Case thiab Electronics

Case thiab Electronics
Case thiab Electronics
Case thiab Electronics
Case thiab Electronics
Case thiab Electronics
Case thiab Electronics
Case thiab Electronics
Case thiab Electronics

Cov ntaub ntawv yog ua los ntawm cov khoom siv acrylic. 1 daim dub tau khoov ntawm 4 pob qij txha los ua ob sab, 1 daim tshem tau npog hauv qab. Ib daim dawb thiab lwm hom yas ntshiab (tsis yog acrylic, ib daim yas yas, los ntawm qee lub ntim) tau siv los npog sab saum toj thiab teeb lub joystick thiab cov nyees khawm feem.

Cov qhov raug txiav rau saum cov yas los txhawm rau khawm Arcade, thiab rau cov pas ntawm tus joystick kom swb thiab siv.

Raws li rau cov xov hlau, Kuv ib txwm txuas nrog txhua qhov hloov pauv thiab cov nyees khawm rau hauv av thiab sab laug tus pin ntxiv kom txuas nrog gpio mus rau lub tshuab rub tawm rau lub microcontroller.

Kauj ruam 2: Joystick

Joystick
Joystick
Joystick
Joystick
Joystick
Joystick

Lub ntsiab tseem ceeb ntawm tus joystick yog ntoo ntoo, txiav kom haum rau qhov loj me.

Cov menyuam hloov pauv yuav tsum tau kub kub rau sab nraub qaum ntawm daim dawb ntawm acrylic, ntawm cov ntug ntawm lub qhov rau lub duav.

Lub tswv yim yuav yog los lo cov hloov pauv xws li thaum twg tus pas txav mus, nqis, sab laug lossis sab xis, qhov hloov pauv yuav raug nias. Khaws cov keyboards ze ua ke xws li thaum lub joystick txav ntawm kab pheeb ces kaum (piv txwv li mus rau sab xis), 2 ntawm cov hloov pauv yuav raug nias.

Txawm li cas los xij, sau tseg txhawm rau kho txoj haujlwm ntawm cov hloov pauv (ze li cas nws yog rau lub qhov) ua ntej tes, kom nkag siab qhov koj xav tau. Lwm qhov, koj yuav nkag mus rau qhov tsis meej pem loj thaum hloov nws. Thaum koj txaus siab, koj tuaj yeem tso rooj plaub ua ke thiab txav mus rau qib tom ntej.

Kauj Ruam 3: Microcontroller thiab Electronics Ntxiv

Microcontroller thiab Electronics ntxiv
Microcontroller thiab Electronics ntxiv
Microcontroller thiab Electronics ntxiv
Microcontroller thiab Electronics ntxiv
Microcontroller thiab Electronics ntxiv
Microcontroller thiab Electronics ntxiv

Koj tuaj yeem siv txhua lub microcontroller nrog HID ua haujlwm (dua li USB, vim tias muaj txoj cai siv), zoo li Arduino Leonardo (Txawm hais tias nws qeeb), Teensy, lossis Bluetooth HID zoo li Adafruit Bluefruit EZ-key. Hauv qhov no kuv tau siv Teensy 3.2, Nco ntsoov xaim cov hloov pauv kom raug. Thaum koj txav tus joystick rau hauv ib qho kev qhia, koj yeej tau nias qhov hloov pauv hauv qhov kev coj rov qab (Tsiv mus nias qhov hloov pauv). Yog li qhov hloov pauv yuav tsum tau teeb tsa mus rau sab laug, kos rau sab xis thiab lwm yam.

Thaum siv Arduino IDE, siv lub luag haujlwm Keyboard.press () thiab Keyboard.release () los qhia txhua lub pob rau txhua tus yuam sij. Tsis txhob siv Keyboard.print () raws li qhov ntawd qeeb.

Pom zoo: