Cov txheej txheem:

ARDUINO CONTROLLED GAMEPAD RAU PC: 5 Kauj Ruam
ARDUINO CONTROLLED GAMEPAD RAU PC: 5 Kauj Ruam

Video: ARDUINO CONTROLLED GAMEPAD RAU PC: 5 Kauj Ruam

Video: ARDUINO CONTROLLED GAMEPAD RAU PC: 5 Kauj Ruam
Video: DIY Controller/Cockpit für ETS2, ATS, Landwirtschafts Simulator etc. 2024, Hlis ntuj nqeg
Anonim
ARDUINO CONTROLLED GAMEPAD rau PC
ARDUINO CONTROLLED GAMEPAD rau PC

Nyob zoo cov neeg, Kuv yog Sarvesh. Ob peb hnub dhau los Kuv xav ua si qee qhov retro games. Yog li kuv tau teeb tsa lawv ntawm kuv lub PC. Tab sis kuv tsuas tuaj yeem ua si nrog kuv lub Pc cov keyboard thiab qhov ntawd tsis tau muab qhov kev xav ntawm kuv thaum yau. Yog li kuv txiav txim siab tsim gamepad rau kuv lub Pc uas tuaj yeem ua si qub nrog rau kev ua si tshiab (Tsis yog txhua). Kuv siv tus tswj hwm kev ua si qub thiab hloov kho nws los tsim qhov Gamepad txaus. Nov yog lub xov tooj game wired rau PC. Nws tuaj yeem siv los ua si emulator thiab PC games. Kuj tus joystick tuaj yeem ua tus nas rau koj lub PC. Kev ua si ncoo yog tswj siv Arduino Pro Micro.

Kauj Ruam 1: Sau cov Cheeb Tsam Tsim Nyog

Sau Cov Khoom Tsim Nyog
Sau Cov Khoom Tsim Nyog
Sau Cov Khoom Tsim Nyog
Sau Cov Khoom Tsim Nyog
Sau Cov Khoom Tsim Nyog
Sau Cov Khoom Tsim Nyog

Tau txais txhua yam khoom siv yog thawj zaug thiab tseem ceeb tshaj plaws hauv kev tsim cov phiaj xwm. Thiab kom paub tseeb tias koj tau txais lawv kom raug yog los ntawm kev xaj lawv los ntawm ib qho chaw. Qhov no pab kom tau txais tag nrho cov khoom siv tib lub sijhawm.

Kuv xav qhia koj cov tub kom yuav cov khoom siv los ntawm UTSource vim tias lawv ntseeg tau zoo thiab cov khoom lag luam zoo kuj zoo. Lawv xa cov khoom raws sijhawm thiab qhov ntawd zoo ib yam.

Tam sim no cia saib ntawm cov khoom.

1. Qub retro game controller

Koj tuaj yeem siv tus tswj hwm game retro zoo li qhov kuv tau siv. Yog tias koj tau nkag mus rau lub tshuab luam ntawv 3d, koj tuaj yeem luam koj tus kheej lub casing (Qhov kev xaiv no yuav muab chav rau koj ntxiv cov nyees khawm ntxiv).

2. Arduino Pro Micro

Rau txoj haujlwm no koj yuav tsum siv Arduino Pro Micro lossis Arduino Leonardo mini. Hauv ntej koj xav tau lub micro tswj nrog HID (Tib Neeg Kev Sib Txuas Ntaus) muaj peev xwm. Arduino Pro micro muaj ATmega 32U4 micro controller.

3. Hloov

Nov yog qhov hloov pauv ib txwm uas kuv tau siv rau lub hom phiaj xwm txheej ceev. Qhov teeb meem nrog kev ua haujlwm nrog nas thiab keyboard lub tsev qiv ntawv yog tias yog koj tsis xa cov lej raug koj tuaj yeem xoob qhov kev tswj hwm ntawm koj cov keyboard lossis nas. Yog li nws yog qhov tseem ceeb heev kom muaj qhov hloov pauv uas tuaj yeem pab koj rov qab tswj hwm koj lub PC nas/keyboard.

4. Joystick Module

Txhawm rau tswj cov nas txav peb yuav tsum siv lub joystick module. Txhua tus qauv tswj hwm X thiab Y kev taw qhia.

5. Txwv Kev Hloov

Kuv siv cov kev txwv txwv li ua rau kuv tus tswj. Cov no yog nyob ntawm yeem yog tias koj xav ua lub ncoo game uas tsuas yog thawb khawm.

6. Khawm Khawm

Laub cov nyees khawm tuaj yeem cuam tshuam hauv rub tawm lossis rub nqis teeb tsa. Ntawm no kuv tau siv rub nqis teeb tsa rau txhua lub khawm thiab hloov pauv. Kuv siv 10 K ohm resistors rau qhov no.

7. Lub hom phiaj dav dav PCB

Tau txais lub hom phiaj dav dav PCB txhawm rau txhawm rau txhawm rau txhua yam khoom siv.

Kauj Ruam 2: Daim Duab Circuit Court thiab Coding

Circuit Diagram thiab Coding
Circuit Diagram thiab Coding
Circuit Diagram thiab Coding
Circuit Diagram thiab Coding
Circuit Diagram thiab Coding
Circuit Diagram thiab Coding

Txuas tag nrho cov khoom siv raws li daim duab qhia chaw hauv qab no. Kuv kuj tseem tau txuas phau ntawv qhia nrawm rau cuam tshuam cov nyees khawm nrog Arduino.

Kuv xav kom xub xub txheeb xyuas txhua qhov kev sib txuas thiab ua haujlwm ntawm lub khob cij.

Cov txheej txheem ntawm kuv qhov kev tso khawm tiag tiag tseem tau qhia saum toj no kom muab koj lub tswv yim meej uas lub pob nyob qhov twg, daim ntawv lo nws tau programmed nrog dab tsi thiab nws ua cim dab tsi nws xa mus rau lub khoos phis tawj.

Tam sim no rub tawm cov cai thiab teeb tsa mouse.h thiab keyboard.h cov tsev qiv ntawv. Tshaj tawm cov cai rau koj Arduino.

NYEEM NTAWV DOWNLOAD CODE

Kauj Ruam 3: Txiav, pleev xim thiab ua kom zoo

Txiav, Nthuav thiab Soldering
Txiav, Nthuav thiab Soldering
Txiav, Nthuav thiab Soldering
Txiav, Nthuav thiab Soldering
Txiav, Nthuav thiab Soldering
Txiav, Nthuav thiab Soldering
Txiav, Nthuav thiab Soldering
Txiav, Nthuav thiab Soldering

Ua ntej txiav PCB raws li qhov loj ntawm Game pad thiab kho kom haum lub laub nyees khawm thiab lub joystick module. Koj tuaj yeem zam qhov haujlwm hnyav no ntawm kev ua haujlwm los ntawm kev xaj PCB. UTSource.net muab PCB zoo hauv tus nqi pheej yig.

Tom qab ntawd pleev xim lub ncoo game nrog cov xim uas koj xaiv.

Tam sim no siv lub laub khawm thiab joystick ntawm lub hom phiaj dav pcb.

Kauj Ruam 4: Txhim Kho Txoj Cai Txwv thiab Xeem Kawg

Txhim Kho Txoj Cai Txwv thiab Xeem Kawg
Txhim Kho Txoj Cai Txwv thiab Xeem Kawg
Txhim Kho Qhov Txwv Tsis Pub Hloov thiab Xeem Kawg
Txhim Kho Qhov Txwv Tsis Pub Hloov thiab Xeem Kawg
Txhim Kho Txoj Cai Txwv thiab Xeem Kawg
Txhim Kho Txoj Cai Txwv thiab Xeem Kawg
Txhim Kho Qhov Txwv Tsis Pub Hloov thiab Xeem Kawg
Txhim Kho Qhov Txwv Tsis Pub Hloov thiab Xeem Kawg

Tam sim no txhim kho qhov txwv txwv hauv lawv txoj haujlwm nrog kev pab ntawm qee cov kua nplaum super.

Kuaj cov khoom seem thiab ua qhov kev xeem zaum kawg.

Kauj Ruam 5: Muab Nws Txhua Qhov Ua Ke

Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke
Muab Nws Tag Nrho Ua Ke

Tam sim no kaw qhov thaiv nrog kev pab los ntawm qee cov ntsia hlau.

Kuv tau txuas qee cov duab saum toj no los qhia koj li cas cov khoom kawg zoo li.

Qhov ntawd yog koj ua tiav. Tam sim no sim ua qee qhov kev ua si. Koj tuaj yeem ua si emulator zoo li PC games (uas tsis xav tau tus lej ntau ntxiv).

Nrog qhov no xaus kuv thawj qhov kev qhia. Kuv vam tias koj nyiam nws:)

Pom zoo: