Cov txheej txheem:

DIY Dav Hlau Sim Hloov Vaj Huam Sib Luag: 7 Kauj Ruam (nrog Duab)
DIY Dav Hlau Sim Hloov Vaj Huam Sib Luag: 7 Kauj Ruam (nrog Duab)

Video: DIY Dav Hlau Sim Hloov Vaj Huam Sib Luag: 7 Kauj Ruam (nrog Duab)

Video: DIY Dav Hlau Sim Hloov Vaj Huam Sib Luag: 7 Kauj Ruam (nrog Duab)
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Hlis ntuj nqeg
Anonim
DIY Davhlau Sim Hloov Vaj Huam Sib Luag
DIY Davhlau Sim Hloov Vaj Huam Sib Luag
DIY Davhlau Sim Hloov Vaj Huam Sib Luag
DIY Davhlau Sim Hloov Vaj Huam Sib Luag

Tom qab siv ntau xyoo nyob rau hauv lub davhlau sim zej zog thiab koom nrog hauv cov dav hlau nyuaj dua, Kuv pom kuv tus kheej xav tau lub peev xwm los tuav kuv txhais tes ntawm lub cev hloov pauv tsis txhob sim ya nrog kuv sab tes xis thaum siv nas hauv kuv qhov tsis tseem ceeb sab tes laug mus nyem qhov me me nyob ib puag ncig lub cockpit ntawm daim ntawv ceeb toom luv luv. Kuv tsis muaj nyiaj lossis sijhawm rau kev teeb tsa lub dav hlau tag nrho, thiab txawm tias kuv tau ua, Kuv yuav tsis tsim ib qho rau txhua lub dav hlau kuv ya (muaj ntau yam). Dhau li, kuv tsis tau siv ntau qhov hloov pauv hauv lub cockpit, thiab txawm tias tsawg dua yog cov uas kuv yuav tsum tau nkag mus rau ceeb toom luv luv. Txawm li cas los xij, Kuv tau khiav tawm ntawm cov nyees khawm thiab hloov ntawm kuv HOTAS. Yog li yuav ua li cas?

Nov yog thaum kuv lub paj hlwb hu xov tooj nco los ntawm ib pliag dhau los thaum kuv tau tshawb xyuas lub davhlau sim kho vajtse tsuas yog rau kev lom zem (kuv qhov kev tawm tsam, tsis zoo ntawm lub qhov rai ntawm lub khw qhov rai ntawm lub khw). Kuv tau pom Saitek hloov vaj huam sib luag, sau nrog cov dav dav dav dav ua haujlwm: teeb sab nraud, tswj lub tshuab hluav taws xob, tsaws iav, pitot cua sov, thiab lwm yam. rov sau npe yog tias kuv yuav siv nws rau lub dav hlau tua rog, uas yog qhov kuv xav tau tiag tiag hloov pauv vaj huam sib luag rau thawj qhov. Txawm li cas los xij, lub tswv yim nyam, thiab lub caij ntuj sov dhau los, tsis muaj dab tsi zoo dua los ua, Kuv xav tias kuv yuav tsim kuv tus kheej.

Khoom siv:

Cov ntaub ntawv los tsim lub thawv

Kev tswj hwm kev xaiv (Kuv siv cov hloov pauv, tab sis koj tuaj yeem muaj cov nyees khawm, cov pob qhov rooj tig, swb, lossis lwm yam koj tuaj yeem txiav txim siab yuav xaim li cas.)

Qee qhov hloov pauv 2-txoj haujlwm zoo (Amazon)

Qee qhov hloov pauv 3 txoj haujlwm zoo (Amazon)

Teensy Board (Kuv siv 3.2, tab sis 3.x, 4.x, thiab LC yuav ua haujlwm tseeb; Kuv tsis paub meej txog 2.x. Xav paub ntau ntxiv ntawm Teensy boards saib https://www.pjrc.com /hluas/)

Qee qhov 22ish-gauge hluav taws xob xaim (cov tub ntxhais tau yooj yim ua haujlwm nrog; Kuv pom kuv li ntawm Amazon ntawm no)

Nyias 60/40 hluav taws xob solder (Amazon)

Stripboard (Amazon) Cov

Yuav tsum tau Pin Headers (lawv yooj yim heev rau nrhiav thiab koj cov kev xav tau yuav txawv raws qhov koj muaj thiab koj xaiv li cas los mus, yog li kuv tsis suav nrog qhov txuas)

PCB Spacers (dua, muaj kev xaiv dav thiab txhua tus xav tau yuav txawv me ntsis, yog li kuv tsis tau suav nrog qhov txuas. Kuv pom zoo kom tau txais cov hlau, tsis yog yas, zoo li koj yuav tsis tshua muaj peev xwm ua yuam kev. lawv.)

Kauj ruam 1: Tsab Ntawv

Kuv tsab ntawv yog qhov hais ncaj me ntsis txaj muag. Nws koom nrog ntau qhov liab qab, sib tw hlau, qee qhov tsis txaus ntseeg Arduino code, Teensy 3.2, thiab tshwj xeeb tsis ntseeg kev txuas hluav taws xob. Tej zaum kuj tau muaj duab los qhia. Txawm hais tias nws muaj ntau qhov tsis raug, nws tau muab pov thawj ntawm lub tswv yim, thiab tso cai rau kuv sim nws zoo nkauj ntau yam dawb vim tias kuv twb muaj tag nrho cov khoom tso ib puag ncig. Nws ua pov thawj kom muaj txiaj ntsig zoo nyob rau lub sijhawm ntev vim tias kuv tau tshawb pom thiab kho ntau yam teeb meem nrog cov qauv thiab tau hloov kho kuv lub hom phiaj rau cov khoom kawg. Kuv kuj tau rov siv yuav luag txhua yam (daim duab los yog qhov ua rau ploj) hauv qhov tshwm sim tom ntej ntawm nws, uas yog qhov kuv siv tam sim no. Kuv pom zoo kom tsim cov qauv tshwj xeeb los muab sijhawm rau koj tus kheej los sim nws thiab txheeb tawm qhov xav tsis thoob ua ntej yuav tawm mus thiab tsim kho qhov kawg.

Kauj Ruam 2: Txheeb Xyuas Cov Npe Ua Haujlwm Koj Xav Tau/Xav Tau

Txiav txim siab cov npe ntawm cov haujlwm koj xav tau/xav tau
Txiav txim siab cov npe ntawm cov haujlwm koj xav tau/xav tau

Qhov zoo tshaj, qhov no yuav tsum suav nrog yam uas koj xav tau nkag mus rau hauv daim ntawv ceeb toom luv luv tab sis tsis muaj chav rau ntawm koj HOTAS, xws li tus tswv caj npab, thaub qab tswj kev tswj hwm lub dav hlau, tswj kev sib tsoo, tswj kev ntsuas, thiab lwm yam. Kuv pom zoo kom xis nyob nrog HOTAS ua ntej tsim lub vaj huam sib luag hloov pauv, raws li koj xav tau yuav hloov pauv raws koj li HOTAS. Thaum lub sijhawm kuv sim ua qauv, Kuv pom tias kuv kuj nyiam muaj cov hloov pauv rau yam uas kuv ib txwm siv cov keyboard rau, vim nws tau nce qhov kev tso dej kom pom tseeb. Kuv li ntxiv cov khoom xws li kev tswj hwm lub cav (cav khiav/nres, thaiv cov nyom, iav, flaps, thiab lwm yam). Hauv lwm lub dav hlau, zoo li lub 737 lossis GA lub dav hlau, Kuv tau siv lawv rau yam xws li tswj lub tshuab tsis siv neeg, tswj lub teeb sab nraud, tswj xwm txheej ceev, thiab lwm yam. Nws kuj tseem siv tau kom lawv muab rau tiv thaiv cov dej khov zoo li pitot cua sov thiab carb kub txij li thaum cov ntawd yog yam kuv nquag hloov thiab tawm.

Kuv siv daim ntawv nthuav qhia los npaj txhua cov npe ntawd, thiab ua kab 2-txoj haujlwm thiab 3 txoj haujlwm hloov chaw. Tej zaum koj yuav tuaj yeem khiav tawm nrog tsuas yog 2 txoj haujlwm hloov pauv, tab sis yam khoom zoo li lub jammer thiab lub tshuab xa khoom tswj hwm hauv F/A-18 muaj kev nkag siab ntau dua thiab muaj tseeb-rau-daim ntawv nrog 3-txoj haujlwm hloov, thiab qee qhov, nws zoo heev tsim nyog, xws li Waypoint/Markpoint/Lub hom phiaj xaiv hauv A-10C's CDU. Feem ntau lub dav hlau flaps tseem muaj tsawg kawg peb txoj haujlwm (A-10C thiab F/A-18 yog piv txwv), thiab cov uas tsuas muaj 2 txoj haujlwm nrov nrov tuaj yeem siv 3 txoj haujlwm hloov pauv ib yam nkaus thiab tsuas yog siv 2 ntawm 3 txoj haujlwm. (Khw muag khoom hint: Nws tsim nyog paub cov npe khoom ntawm cov hloov pauv (SPST toggle, SPDT toggle, rotary, thiab lwm yam.) Tshawb nrhiav cav feem ntau tsis paub tias koj txhais li cas thaum koj thov "toggle switches." Ib qhov chaw zoo rau kawm txog qhov no yam nyob ntawm no.)

Qhov ua kom yuam kev zaum kawg ntawm no yog txiav txim siab qhov kev txiav txim rau cov hloov pauv. Nco ntsoov nyob qhov twg lub vaj huam sib luag hloov yuav nyob; koj yuav xav muab cov hloov pauv koj yuav xav tau nkag mus sai dua rau qhov uas koj txhais tes yuav nyob. Hauv kuv qhov xwm txheej, kuv ya nrog kuv sab tes xis ntawm tus pas thiab kuv txhais tes laug ntawm lub qhov rooj, yog li lub vaj huam sib luag hloov yuav mus rau sab laug ntawm kuv lub rooj. Txij li thaum kuv cov keyboard thiab nas nyob nruab nrab ntawm kuv tus pas thiab lub qhov rooj, lub vaj huam sib luag yuav mus rau sab laug ntawm kuv lub qhov muag, yog li kev nkag tau sai yuav tsum nyob ntawm sab xis ntawm lub vaj huam sib luag hloov, ze ntawm kuv txhais tes.

Yog tias koj txaus siab rau daim ntawv nthuav qhia kuv siv, nws nyob hauv Google Ntawv ntawm no. (Hmoov tsis zoo, Cov Lus Qhia yuav tsis cia kuv upload daim ntawv nthuav qhia rau qee qhov laj thawj.)

Kauj Ruam 3: Tsim Lub Thawv

Cov hloov pauv yuav tsum txuas rau qee yam, thiab qee yam yuav zaum ntawm koj lub rooj. Hauv kuv qhov xwm txheej, kuv tau ua ib lub thawv 29 cm x 12 cm thiab 6 cm siab tawm ntawm 1x4 daim ntoo, nrog 1/4 tuab acrylic pem hauv ntej. Nws yog me ntsis kev teeb tsa ntau dhau, tab sis siv cov ntaub ntawv loj dua ua rau nws yooj yim dua kom nrawm lawv ua ke thiab tso cai ntau chav rau yuam kev. Thaum xaiv cov ntaub ntawv, nco ntsoov hnyav dua feem ntau zoo dua vim tias nws txhais tau tias koj tuaj yeem thawb lub zog hloov pauv thiab qhov hnyav ntawm lub thawv yuav ua rau nws tsis txav mus los. Yog tias koj xav siv cov khoom siv coj los siv, zoo li cov ntawv hlau, nws qhov kev xav yuav tsis tawg ib yam (Kuv tsis tau sim nws; tej zaum koj yuav tsum tau hluav taws xob cais cov PCB spacers los ntawm cov seem ntawm cov kab txaij rau yav tom ntej). Tsuas yog tsim lub npov kom koj tuaj yeem sib sau ua ke thiab tshem tawm ntawm qhov xav tau. Tej zaum koj yuav tsum daws teeb meem!

Kuv spaced kuv cov keyboards txog 1.4 cm sib nrug, txawm hais tias koj tuaj yeem tso lawv tawm ntau dua. Kuv pom 1.4 cm los ua qhov sib txawv yooj yim uas kuv tuaj yeem muaj kev ntseeg siab txaus tias kuv tuaj yeem tsoo qhov hloov pauv raug thiab tsis yog ob qho tib si. Nws zoo li neeg nyob me ntsis, tab sis nws tsis xav li ntawd, tshwj xeeb yog tom qab xyaum me ntsis. Kuv tsis xav kom lawv nyob ze ua ke, txawm li cas los xij.

Kauj Ruam 4: Yuav Cov Khoom thiab Tsim Lub Thawv

Yuav Cov Khoom thiab Tsim Lub Thawv
Yuav Cov Khoom thiab Tsim Lub Thawv
Yuav Cov Khoom thiab Tsim Lub Thawv
Yuav Cov Khoom thiab Tsim Lub Thawv
Yuav Cov Khoom thiab Tsim Lub Thawv
Yuav Cov Khoom thiab Tsim Lub Thawv

Nov yog qhov lom zem tshaj plaws thiab cov kauj ruam nyuaj tshaj plaws rau kuv. Kuv xaiv tshuaj tsuag kuv lub thawv nrog cov xim dub ci rau sab nrauv thiab ci dawb nyob sab hauv. Kuv xaiv dub rau sab nraud vim tias nws phim cov ntsiab lus dub kuv tau txuas nrog kuv lub khoos phis tawj, thiab dawb rau sab hauv vim kuv paub kuv xav teeb lub thawv thiab muaj sab hauv pleev xim dawb txhais tau tias nws yuav cuam tshuam xim twg kuv xaiv kom pom nws nrog. Glossy tsuas yog vim nws saib zoo (thiab yuav pab cuam pom lub teeb nyob ib puag ncig sab hauv ntawm lub npov). Nws tsim nyog khaws qee qhov 22 ntsuas xaim, raws li nws haum zoo hauv qhov nyob hauv feem ntau cov qauv PCBs. Qee tus neeg nyiam xaim xaim xaim vim tias koj tau txais cov hluav taws xob sib txuas tau zoo dua li ntawd, tab sis kuv pom nws npau suav phem ua haujlwm nrog, tshwj xeeb tshaj yog ntawm qhov ntsuas me me, yog li kuv tau siv tooj liab tooj liab thiab tsuas yog siv ntau dua. Kuv kuj siv cov xim los npaj kuv cov xov hlau, uas tau pab ntau yam. Dub yog av (raws li ib txwm muaj) thiab liab yog 3.3V thiab cov txiaj ntsig ntawm cov hloov pauv. (Kuv yuav tau siv xiav lossis ntsuab lossis qee yam rau qhov hloov pauv, tab sis kuv tsis muaj thiab tsis kam yuav qee qhov tsuas yog rau txoj haujlwm no.)

Kuv nyiam muaj peev xwm ntsaws thiab tshem kuv lub microcontroller los ntawm cov phiaj xwm hloov pauv kom siv tau yog li kuv tuaj yeem siv lawv dua, yog li kuv tau siv tus poj niam tus pin lub taub hau rau kuv kab txaij, tom qab ntawd ntsaws kuv Teensy board rau hauv qhov ntawd. Cov kab txaij tau txuas rau sab nraum qab ntawm lub thawv nrog PCB spacers. Cov LED tau kub-nplaum rau ib lub duab plaub me me ntawm tib 1/4 acrylic kuv tau siv rau ntawm lub ntsej muag ntawm lub vaj huam sib luag thiab tau txuas rau ob sab ntawm lub npov nrog PCB spacers. Txhua qhov kev sib txuas hluav taws xob tau muab muag tshwj tsis yog rau tus pin lub taub hau ntawm Teensy raug txuas rau ntawm kab txaij nrog poj niam-txiv neej tus pin lub taub hau.

Dealing nrog PCB spacers: cov khoom ntawd yog npau suav phem rau ntswj nrog cov ntiv tes xwb, yog li kuv pom lub qhov (socket) zoo kom tau txais qee yam kev yuav khoom, tom qab ntawd ntiv tes nruj nws. (Saib cov duab.) Tsis tas li, yuav tsum tsis txhob muaj kev nyuab siab ntau rau cov spacers no; txhua yam lawv xav tau los txhawb nqa me ntsis ntawm cov khoom siv hluav taws xob. Tsis tas yuav tsum nruj ntau ntau ntawm no. Kev maj mam tab sis ruaj khov yuav tsum ua. Thaum kawg, nws yuav yooj yim dua yog tias koj laum qhov ntsuas qhov loj me ua ntej sim ntswj nws rau hauv.

Nco ntsoov sim koj cov kev sib txuas ntau zaus kom ntseeg tau tias cov laug tsis sib tshooj mus rau ib txoj kab nyob sib ze. Hint: yog tias koj lub multimeter hais tias koj cov kab txuas tau txuas nrog, tab sis koj tsis tuaj yeem pom ib qho txuas txuas nrog, Ua kom ntseeg tau tias koj cov kev hloov pauv tau qhib, Tsis kaw! Kuv ua qhov yuam kev no thiab nws ua rau kuv chim siab heev ib nrab teev.

Kev tshawb fawb hluav taws xob me me: Cov hloov hluav taws xob tsis ua haujlwm zoo li cov khoom siv tshwj tsis yog tias koj siv lub zog rub tawm lossis lub zog tawm tsam. Qhov teeb meem tshwm sim los ntawm qhov tseeb tias thaum hloov pauv tau qhib, nws tsis txuas nrog rau txhua qhov taw qhia rau lub microcontroller, yog li nws tsis paub tias nws qhib lossis kaw. (Qhov ntawd yog qhov yooj yim dua version kuv xav piav qhia yooj yim, ib qho ntxiv.) Teensys (thiab Arduinos ib yam nkaus, raws li kuv paub) muaj cov rub tawm tiv thaiv uas koj tuaj yeem qhib los ntawm kev siv

tus pinmode (tus pin, INPUT_PULLUP);

es tsis txhob

pinmode (tus pin, INPUT);

Qhov no ua haujlwm txuas tus pin mus rau qhov taw qhia thaum nws qhib, thiab qhov sib txawv siv thaum nws raug kaw (Kuv siv av, tab sis internet hais tias koj tuaj yeem siv VIN). Kuv kuj siv Bounce lub tsev qiv ntawv los tshem tawm ib qho kev tsis sib xws ntawm cov tshuab hauv qhov hloov nws tus kheej. Txog cov LEDs, Kuv yuav tso qhov kev tsim tawm Circuit rau koj. Kuv yuav qhia koj los ntawm kev paub tias LEDs tsis nyob ntev heev yog tias lawv tau dhau los, thiab hloov lawv yog qhov mob hnyav, yog li nws tsim nyog siv sijhawm los tsoo Kirchhoff's Loop Rule thiab xam tawm qhov ua rau muaj txiaj ntsig. Rau 2 20mA LEDs kuv muaj, Kuv siv 6-thiab-a-ntsis-Ohm resistor kom poob qhov hluav taws xob los ntawm 3.3V (muaj tus pin 3.3V ntawm kuv Teensy) rau 3.1-ish volts, uas zoo nyob hauv 3.0 -3.2V kam rau ua kuv cov LEDs.

Qee cov lus qhia soldering: Yog tias koj pom koj tus neeg muag khoom tau cuam tshuam nrog ob kab, muaj qee yam uas koj tuaj yeem sim. Kuv pom Dremel cov cuab yeej nrog qhov me me ua haujlwm tau zoo rau qhov tseeb ua kom tawg tawm me me ntawm cov khoom siv tsis zoo. Txawm li cas los xij, yog tias koj ua yuam kev tsim cov kab laug sab nyob ib ncig ntawm ob lub xov hlau ntawm cov kab sib txawv, Dremel cov cuab yeej yuav siv tas mus li. Tom qab qee qhov kev sim, Kuv pom qhov zoo tshaj plaws uas yuav tsum tau ua kom sov lub lauj kaub nrog koj cov hlau txuas, tom qab ntawd ua qee yam nqaim zoo li cov ntaub ntawv khoov ntawm cov xov hlau los thawb tus laug rau ob sab. Qhov no ua haujlwm tau zoo rau kuv thiab ua rau muaj kev cuam tshuam tsawg.

Soldering tsis lees paub rau cov neeg tshiab: Qhov no tsis yog qhov haujlwm yooj yim soldering rau tus pib. Kuv tau raug muag txog ib xyoos ua ntej txoj haujlwm no thiab qhov no yog qhov haujlwm nyuaj rau kuv (uas yog vim li cas nws zoo li tsis meej pem). Soldering tsis yooj yim thaum xub thawj thiab yuav xyaum. Kuv tsis zoo txaus los qhia rau koj lub tswv yim, yog li kuv tsis tuaj yeem lav lub luag haujlwm rau koj cov hlau lead/hlawv. Kawm kom paub sib dhos thiab ua kom raug/nyab xeeb yog koj txoj haujlwm. Qhov ntawd tau hais tias, muaj ntau qhov peev txheej zoo nyob rau ntawd (internet yog ib qho zoo kawg nkaus qee zaum), yog li tsis txhob poob siab ntawm txoj haujlwm no yog tias koj tsis paub yuav ua li cas thiaj li tsis tau siv dua. Xyaum, ua siab ntev, thiab ua siab ntev yog txhua yam koj xav tau. Thiab rau cov laug ninjas tawm muaj, xav tias dawb los qhia kuv.;)

Yog tias koj txhawj xeeb txog kev khiav tawm ntawm tus pin: koj yuav tsis tshwj tsis yog koj siv ntau lub khawm. Lub software yuav khiav tawm ntawm cov khawm nkag ua ntej Teensy board yuav khiav tawm ntawm tus pin, txawm tias koj siv Teensy me ntsis 3.2 zoo li kuv. Kuv tau siv lub software tag nrho los ntawm kev siv tag nrho 32 khawm nkag thiab tsuas yog siv li 3/4 ntawm tus pin ntawm kuv Teensy.

Kauj Ruam 5: Cov Lus Qhia luv luv ntawm Microcontrollers

Lub neej ua haujlwm nyiam ua hluav taws xob microcontroller feem ntau yog Arduino ntawm qee qhov kev piav qhia. Lawv yog cov khoom me me zoo heev; txawm li cas los xij, feem ntau ntawm Arduinos tsis tuaj yeem coj ncaj qha ua USB-HID ntaus ntawv. Koj yuav tsum tau siv qhov kev pab cuam nruab nrab (zoo li Tsab Ntawv Ua Haujlwm) los ua tus neeg nruab nrab thiab siv tus joystick virtual los muab cov tswv yim, uas yog qhov mob. Cov laug cam, ntawm qhov tod tes, tuaj yeem yog USB-HID joystick ib txwm muaj, uas pom hauv koj lub khoos phis tawj ib yam li koj HOTAS lossis lwm yam kev tswj hwm game. Qhov no tsis yog software software; Teensy boards tau siv cov chips sib txawv.

Thaum lub sijhawm sau ntawv no, muaj ob peb Arduinos uas tuaj yeem coj tus yam ntxwv li USB-HID: Leonardo, Mini, thiab Pro Mini. Yog tias koj xaiv mus rau txoj kev no, thov txheeb xyuas lub tsev qiv ntawv Github no rau siv lawv ua tus joystick tsis txhob siv lub keyboard/nas. (Ua tsaug rau willem.beel rau taw tes qhov no tawm hauv cov lus.)

Teensy boards suav txij li $ 15 txog $ 35. Koj tuaj yeem tau txais qhov yooj yim Arduino kom tsawg li $ 10, tab sis koj yuav zaum siv sijhawm ntau teev ntau dua li nws tsim nyog los tsim thiab debug qhov ua cov ntawv sau, lub joystick virtual, thiab cuam tshuam ntawm txhua kauj ruam yog tias koj xaiv mus rau txoj kev ntawd. Txawm li cas los xij, Teensy's built-in Joystick library thiab Github Arduino Leonardo/Mini/Pro Mini lub tsev qiv ntawv tsuas muaj kev txhawb nqa rau 32 khawm nkag, yog li yog tias koj xav tau ntau qhov hloov pauv, koj yuav tau mus rau txoj kev joystick virtual ib yam nkaus li, qhov txwv tsuas yog koj li txuj ci thiab ua siab ntev.

Kauj Ruam 6: Sau/Debug Txoj Cai

Sau/Debug Txoj Cai
Sau/Debug Txoj Cai

Nov yog cov ntaub ntawv Arduino nrog kuv tus lej. Yog tias koj xav siv nws, koj yuav tsum hloov kho nws kom sib haum nrog qhov chaw 2-txoj haujlwm thiab 3-txoj haujlwm hloov pauv, txij li koj li tej zaum yuav txawv dua li kuv. Kuv nqus ntawm lub hom phiaj-taw qhia lub hom phiaj hauv cov lus Arduino thiab Teensy raws li, yog li kuv tsuas yog nyuaj-coded nws. Nws tsis zoo nkauj, tab sis nws ua haujlwm. Koj kuj tseem yuav tsum hloov lub USB Hom rau "Dav Hlau Sim Tswj + Joystick" hauv Cov Cuab Yeej (ua tsaug rau primus57 rau taw qhia qhov ntawd tawm hauv cov lus). Xav tias dawb los ua/faib cov haujlwm ua haujlwm; Kuv paub zoo tias kuv cov txuj ci coding tsis zoo, yog li muaj kev txhim kho zoo siab txais tos.

Kuv siv Windows 10, yog li txhawm rau sim kuv tus lej, kuv tau mus rau Start menu thiab ntaus "joy.cpl" thiab nias Enter, tom qab ntawd ob zaug nyem rau ntawm Teensy Dav Hlau Sim Tswj thiab mus rau qhov Test tab. (Saib lub vijtsam.) Qhov no yuav qhia thaum twg lub khoos phis tawj sau npe nkag (muaj txiaj ntsig zoo rau kev debugging).

Kauj Ruam 7: Zam Kuv Qhov Yuam Kev

Yog tias kuv yuav tsum ua qhov no dua, qhov tseem ceeb uas kuv yuav tau ua txawv yog kuv yuav tau saib xyuas zoo dua kom ntseeg tau tias lub thawv yuav zaum ncaj ntawm lub rooj. (Nws tsis yog tam sim no thiab qhov nyuaj siab heev.) Qhov tom ntej uas yuav ua rau nws yooj yim dua yog tias kuv tau taug qhov twg txhawm rau txhawm rau qhov tsav qhov rau PCB spacers ua ntej yuav siv/txuas yam hloov tom qab. Tsis tas li, kuv yuav tsum tau pom tias kuv tuaj yeem muab cov xov hlau txuas los ntawm cov hloov pauv mus rau kab txaij nyob txhua qhov chaw raws txhua tus pin kab txaij thiab xaiv kom tsis txhob txhuam lawv txoj cai ntawm ib sab. Nick Lee tau tawm tswv yim hauv cov lus siv superglue, kab xev, lossis zip sib txuas los txhawm rau txhawm rau txhawm rau txuas cov kab, uas yog lub tswv yim zoo.:) Thaum kawg, Kuv yuav tau ua tib zoo pleev xim rau sab nrauv, raws li lub thawv xim tau pom ntau dua li kuv xav thiab siv luv dua, tsis-beveled ntsia hlau los tuav lub thawv ua ke

Qee yam uas ua haujlwm tau zoo: lub teeb sab hauv ua haujlwm zoo thiab muaj ib qho ntawm ob sab ua rau pom kev txaus. Tsis tas li, Bounce tsev qiv ntawv ua haujlwm tau zoo heev; Kuv yeej tsis tau txais cov ntaub ntawv tsis raug tab sis kuv tseem xav tias zoo li kuv cov ntaub ntawv nkag tau sai. Cov hloov pauv yog qhov loj me thiab muab kev tiv thaiv txaus kom hnov "tiag tiag" yam tsis hloov pauv. 22-gauge hlau zoo li yog qhov loj me me thiab, ua cov tub ntxhais, nws yooj yim heev rau ua haujlwm nrog. Tsuag-pleev xim tsim cov txuj ci zoo heev thiab tag nrho kuv xav tias cov khoom kawg zoo li zoo nkauj heev.

Pom zoo: