Cov txheej txheem:
- Kauj Ruam 1: Cov Cuab Yeej
- Kauj Ruam 2: Tshooj thiab Txheej Txheem Yooj Yim
- Kauj Ruam 3: Tsim Tus Qauv (yeem)
- Kauj Ruam 4: Cov Lus Qhia Txog Kev Txuas Hluav Taws Xob
- Kauj Ruam 5: Tau Txais Faceplate Lasercut
- Kauj Ruam 6: Hooking Up Buttons and Switches
- Kauj Ruam 7: Hooking Up Joysticks thiab LCD
- Kauj Ruam 8: LED Bar Roj Gauges
- Kauj Ruam 9: Txhim Kho Cov Ntaub Ntawv
- Kauj ruam 10: Software thiab Xeem
- Kauj ruam 11: Mus rau lub hli
Video: KerbalController: Custom Control Panel for Rocket Game Kerbal Space Program: 11 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:29
Vim li cas tsim KerbalController?
Zoo, vim tias thawb cov nyees khawm thiab cuam lub cev hloov pauv zoo li muaj ntau yam tseem ceeb dua li nyem koj nas. Tshwj xeeb tshaj yog thaum nws yog qhov hloov pauv kev nyab xeeb liab loj, qhov uas koj yuav tsum qhib lub hau ua ntej, nyem qhov hloov mus rau caj npab koj lub foob pob hluav taws, pib suav thiab 3.. 2.. 1.. peb tau nqa tawm!
KerbalController yog dab tsi?
KerbalController, tseem hu ua Control Panel, Simpit (simulated cockpit), DSKY (zaub keyboard) lossis kev cai joystick, yog cov khoom siv tshwj xeeb rau kev tswj hwm lub foob pob hluav taws nrov-tsev-thiab-vam-tsis-tawg game Kerbal Space Program ua ke nrog cov kev xaiv tso tawm los ntawm qhov kev ua si, xws li teeb pom kev zoo, tso tawm xov tooj cua thiab/lossis ntsuas ntsuas roj.
Qhov kev tsim tshwj xeeb no suav nrog kev nkag mus xws li kev sib hloov thiab kev txhais lus tswj los ntawm joysticks, lub tog raj kheej kaw, ntsaws cov nyees khawm nrog teeb pom kev zoo, LED ntsuas ntsuas roj thiab lub xov tooj cua LCD saib nrog ntau hom.
Phau ntawv qhia no yuav suav nrog txhua yam koj xav tau los tsim ib daim qauv zoo ib yam, lossis hloov kho thiab txhim kho raws txoj kev, raws li koj pom zoo. Nyob nrog yog:
- daim ntawv teev npe
- digital tsim cov duab kos npaj rau lasercutting
- cov lus qhia thaiv
- Arduino chaws
- Code rau nrog KSP txuas ntxiv
- Ntau cov duab
Npaj txhij rau lub dav hlau? Wb mus!
Kauj Ruam 1: Cov Cuab Yeej
Cov cuab yeej tseem ceeb tshaj plaws uas koj xav tau rau qhov kev tsim no yog cov hlau txuas. Qhov ntawd suav nrog qee cov laug, hlau txhuam daim txhuam cev los ntxuav qhov taub ntawm cov hlau txuas thiab "thib peb txhais tes".
Lwm cov cuab yeej yog lub tshuab xaim hluav taws xob, lub tshuab txiav hlau, tus tweezers thiab qee tus ntsia hlau me me.
Kauj Ruam 2: Tshooj thiab Txheej Txheem Yooj Yim
Ua tus tswj tau zoo tshaj plaws rau koj txhais tau tias xaiv qhov khawm thiab cov hloov uas koj xav siv. Vim tias txhua tus ua si qhov sib txawv. Qee tus neeg ya dav hlau thiab tsim SSTO's (ib leeg-theem-rau-orbit). Lwm tus nyiam rovers ntawm chaw nres tsheb. Thiab qee qhov tsuas yog xav kom tej yam kom zoo nkauj tawg!
Nws pab txhawm rau kos txhua ntu hauv lawv qhov kwv yees kwv yees thiab rub lawv ib puag ncig hauv qhov kev kos duab vector (zoo li Affinity Designer lossis Inkscape) lossis kos duab 3D (zoo li SketchUp).
Yog tias koj xav tau kev txhim kho yooj yim, koj tsuas tuaj yeem luam kuv tus tswj hwm thiab tau txais cov khoom nyob hauv cov npe txuas nrog.
Kauj Ruam 3: Tsim Tus Qauv (yeem)
Yog tias koj theej kuv tus tswj, koj tuaj yeem hla cov kauj ruam no.
Yog tias koj tab tom mus rau kev teeb tsa kev cai, Kuv pom zoo siv lub thawv khau ua ntej los tsim cov qauv ua haujlwm nrog cov tswj hwm tseem ceeb. Nws yeej pab txhawm rau kho txoj haujlwm ntawm cov tswj tseem ceeb. Nws tseem zoo kom tau txais kev ntseeg siab uas koj tuaj yeem ua nws ua haujlwm ua ntej koj txuas ntxiv nqis peev sijhawm thiab nyiaj txiag hauv qhov kev tsim kho zaum kawg. Kuv tau ua si qhov kev ua si ib ntus nrog kuv lub thawv lub thawv tswj. Puas yog nws tsis yog Kerbal txoj hauv kev kom siv cov khoom khaws cia kom hack qee yam ua ke?
Kauj Ruam 4: Cov Lus Qhia Txog Kev Txuas Hluav Taws Xob
Thaum tsim cov qauv, tsis txhob txhuam tag nrho koj cov nyees khawm hauv tshwj tsis yog tias koj xav de-solder lawv thaum koj mus txog lub thawv kawg. Kuv tau siv qee cov xov hlau rau cov nyees khawm thiab siv lub lauj kaub tais diav tsis txhuam los ua kev sib txuas ib ntus rau Arduino.
Thaum txuas txhua lub tshuab hluav taws xob mus rau lub ntsej muag kawg, koj tuaj yeem txo qis los ntawm kev tsim loops rau 5V thiab hauv av. Koj tsis txuas txhua tus pin hauv av ncaj qha rau Arduino, tab sis theej txuas hauv av ntawm ib lub pob mus rau hauv av ntawm lub pob tom ntej thiab tig ncig. Thaum kawg, koj txuas rau Arduino.
Tom qab tsim cov loops rau lub zog thiab hauv av, txhua qhov kev sib txuas mus rau Arduino pins tseem nyob. Kuv pom zoo kom tau txais qee daim kab xev ntawm lub taub hau thiab txuas cov xov hlau rau cov ntawd. Koj tuaj yeem siv cov no ua qhov txuas loj, yog li koj tseem tuaj yeem ntsaws koj Arduino rau kev sim.
Qhov ntev ntawm cov xov hlau yog qhov ua kom sib luag ntawm qhov txaus kom ua rau lub thawv tsis pub muaj ntau dhau ntawm cov xov hlau (uas yuav tiv thaiv koj kom tsis tuaj yeem kaw lub thawv) thiab ntev txaus kom tuaj yeem txav tau qhov chaw tawm ntawm txoj kev mus rau qhov muag lwm qhov hauv, zawm cov ntsia hlau thiab ntsaws ib ncig nrog koj lub multimeter thaum debugging.
Kauj Ruam 5: Tau Txais Faceplate Lasercut
Ua tiav kev huv, kev saib xyuas zoo yog qhov nyuaj heev thaum pom thiab pleev xim los ntawm txhais tes. Luckily, laser txiav tsis kim heev ntxiv lawm. Nws tso cai rau qhov tseeb tshaj plaws, tsuav yog koj tus qauv tsim muaj tseeb.
Txuas nrog yog kuv lub ntsej muag tsim, hauv cov qauv tsim nyog rau Affinity Designer thiab lwm cov duab kos duab zoo li InkScape dawb.
Kuv muaj daim npog ntsej muag lasercut hauv Lub Netherlands ntawm Lichtzwaard. Lawv tau txij li kaw thiab cov haujlwm tau raug coj los ntawm Laserbeest, qhov uas kuv tau txiav lub thawv laser. Txhua lub khw yuav muaj qhov xav tau sib txawv rau kev tsim, yog li xyuas nrog koj lub khw ua ntej xa. Lawv kuj yuav luag ib txwm muab kev pabcuam tsim ntawm tus nqi teev.
Yam tseem ceeb yuav tsum nco ntsoov:
- Txhua yam yuav tsum yog vector raws. Tias yog vim li cas lub logo hauv kuv lub ntsej muag tsim tsis tau kos. Nco tseg qhov no tsis raug tsau hauv cov qauv tsim txuas nrog.
- Txawm tias cov ntawv muaj cov vector raws. Yog li hloov cov ntawv ntawd mus rau nkhaus!
- Ntsuas. Ntsuas. Ntsuas. Kuv ua tsis tiav rau hauv tus lej qhov xav tau rau kev teeb tsa lub joysticks thiab yuav tsum tau hack nws. Hloov tawm zoo, hmoov zoo. Nco tseg qhov no tau tsau hauv cov qauv tsim.
Tom qab tshuaj xyuas txhua yam kom zoo, xa nws mus rau lub lasercutting khw. Cia siab tias yuav them 40-50 euros hauv Netherlands thiab tau txais qhov txiaj ntsig zoo no hauv kev xa ntawv hnub tom ntej!
Kauj Ruam 6: Hooking Up Buttons and Switches
Feem ntau cov hloov pauv thiab cov nyees khawm muaj cov sib txuas uas sau tias C, NO, NC, +, -. Nov yog yuav ua li cas sib txuas lawv mus rau Arduino.
Hloov yooj yim lossis khawm:
- Av C (ntau)
- Arduino digital pin NO (nquag qhib)
Peb yuav teeb tsa tus lej digital li INPUT_PULLUP, uas txhais tau tias Arduino yuav khaws tus pin ntawm 5V thiab kuaj pom thaum tus pin tau txais hauv av thiab kho qhov ntawd raws li kev nkag. TSIS MUAJ txuas rau ntawm qhov hloov lossis khawm Ib txwm Qhib, yog li lub Circuit Court tsis txuas nrog. Thaum koj thawb lub pob lossis hloov qhov hloov pauv, lub Circuit Court raug kaw thiab tus pin tau txais hauv av.
Pushbutton nrog LED:
Qhov khawm yog tib yam li saum toj no. Rau LED, koj txuas cov xov hlau ntxiv:
- Hauv av - (tsis zoo)
- Arduino tus pin + (zoo)
Qhov no yog qhov yooj yim heev. Peb yuav siv tus pin Arduino hauv qhov qub OUTPUT hom.
Kev nyab xeeb hloov nrog LED:
Cov no yog qhov txawv me ntsis thiab tsis tso cai tswj hwm LED ywj siab los ntawm txoj haujlwm hloov chaw. LED yuav ib txwm tsuas yog teeb thaum lub teeb qhib. Lawv muaj tus +, - thiab lub teeb liab txuas.
- Hauv av - (tsis zoo)
- 5V + (zoo)
- Arduino tus pin S (teeb liab)
Peb yuav siv tus pin Arduino hauv hom INPUT. Thaum qhov kev hloov pauv, LED teeb thiab lub teeb liab mus siab.
Kauj Ruam 7: Hooking Up Joysticks thiab LCD
LCD
LCD yog yooj yim heev. Nws tsuas yog xav tau lub zog, hauv av thiab ntu.
- 5 VVD
- Hauv av GND
- Arduino Tx PIN RX
Koj tuaj yeem siv JST txuas lossis txuas cov xov hlau mus rau lub rooj ncaj qha.
Joysticks
Cov joysticks yuav zoo li txaus ntshai thaum xub thawj, tab sis lawv yooj yim heev los txuas. Muaj peb txoj kab uas txuas nrog tib txoj kev. Ob ntawm lawv tab tom siv cov txuas txuas hauv qab ntawm lub joystick. Qhov thib peb siv qee cov xov hlau.
- Hauv av
- Wiper Arduino analog input tus pin
- 5 V
Cov txuas tuaj yeem txuas nrog hauv qhov kev txiav txim no. Tsis txhob txhawj xeeb txog qhov tau rov qab los, lub wiper yog ib txwm nyob nruab nrab. Yog tias lub zog thiab av tau pauv, peb tuaj yeem tig lub axis nyob ib puag ncig hauv Arduino code tom qab.
Cov xov hlau yuav muaj cov xim sib txawv ntawm koj tus joystick, tab sis feem ntau: ob lub xov hlau uas muaj xim zoo ib yam yog rau lub pob saum toj. Liab lossis txiv kab ntxwv yog 5V, Dub lossis xim av yog av. Cov xov hlau uas seem yog tus wiper.
Kauj Ruam 8: LED Bar Roj Gauges
Okay. Nov yog qhov nyuaj tshaj plaws ntawm tag nrho kev tsim. Xav tias dawb hla qhov no ntawm koj thawj qhov tsim, lossis txhim kho nws thiab qhia rau kuv paub!
Kuv tau txais cov kab tuav LED zoo no kuv xav siv ua cov ntsuas roj. Sab saum toj LED yog xiav, tom qab ntawd qee qhov ntsuab, tom qab ntawd txiv kab ntxwv thiab thaum kawg liab. Yog tias peb tuaj yeem teeb ib qho LED ib zaug, peb tuaj yeem tso nws sawv cev rau qib roj ntawm peb lub dav hlau.
Kuv xub xaj tus tsav IC nrog lawv. Lawv ua haujlwm zoo! Koj tuaj yeem xaiv hom dot lossis hom bar thiab nws yuav tso tawm qhov sib piv sib piv qhov hluav taws xob ua ib qho LED (teev) lossis ntau ntawm LEDs (bar). Tab sis Arduino tsis tso tawm qhov hluav taws xob sib piv! Thiab PWM qhov tshwj xeeb uas tso cai rau koj kom dim lub LED los ntawm qhov ua piv txwv ntawm qhov sib piv qhov hluav taws xob, tsis ua haujlwm nrog cov tsav IC no.
Rau txoj kev npaj 2: hloov npe. Koj tau ua haujlwm nrog cov no hauv txhua qhov khoom siv Arduino pib. Thiab koj tuaj yeem kawm paub ntau ntxiv txog lawv ntawm no:
Txoj kev npaj yog txhawm rau hloov pauv qib roj rau hauv txoj hlua kom raug uas yuav sawv cev rau qib roj ntawm LED tuav. Nrog 5 qhov ntsuas roj, txhua qib roj uas tau ntim yuav tsum yog 10000000001000000000100000000010000000001000000000. Nrog cov khoom siv monopropellant npliag, nws yuav dhau los: 100000000010000000000000000000000000000000000000000001.
Suab yooj yim txaus. Muaj qee qhov teeb meem. Cov ntawv teev npe ua haujlwm muaj 8 tus pin, thaum cov kab tuav LED muaj 10 LEDs. Kuv siv 7 daim ntawv teev npe hloov pauv kom tau txais 56 qhov txiaj ntsig. Thaum txuas lawv rau hauv, Kuv hla tus IC tus pin qhov chaw (peb yuav haum qhov ntawd hauv tus lej). Thiab kuv xaim ib qho LED bar hauv kev pib ntawm lwm qhov kawg (peb yuav kho qhov ntawd hauv cov cai). Huag thiab Arduino lej uas peb xav tau qee zaum siv cov ntsiab lus ntab ntab uas ua rau muab cov lej yuam kev (peb yuav kho qhov ntawd hauv cov cai). Nco ntsoov tias kuv qhia cov cai hauv qib tom ntej.
Kuv qhov kev tsim kho zaum kawg tsis sib xws nrog daim duab txuas txuas, yog li yog tias koj rov txhim kho tus tswj hwm no, qee qhov hloov tshiab yuav tsum tau ua rau txoj cai. Tawm tswv yim hauv qab no yog koj xav tau kev pab.
Txhua LED xav tau nws tus kheej resistor. Sim qee qhov txiaj ntsig sib txawv txhawm rau ua kom pom qhov ci ci. Ntsuab tshwm ntau dua li liab nrog tib tus tiv thaiv, yog li nws pab kom sib npaug qhov ntawd.
Qhov kawg tshwm sim: hloov ntawm 50 tus lej digital yuav tsum tau siv lub zog 5 LED tuav, uas tau txo qis rau 3: lub moos teeb liab, lub teeb liab thiab cov ntaub ntawv teeb liab.
Kauj Ruam 9: Txhim Kho Cov Ntaub Ntawv
Lub sij hawm kom tau kuv kua zaub ntsuab nrog cov logo!
Kuv hloov lub logo rau kom tsim cov duab vector kom lawv tau txais cov ntawv zoo xwb. Lub sijhawm no, kuv muaj qhov teeb meem sib txawv. Cov qhov ntsia hlau tsis nyob hauv qhov chaw raug rau kev sib dhos kom raug ntawm lub thawv. Kuv siv 6mm MDF rau lub thawv. Hmoov tsis zoo, cov ntsia hlau ntsia rau hauv cov npoo ua rau lawv sib cais. Kuv nyiag nws ua ke nrog cov ntoo ntxiv thiab kua nplaum. Ntau cov kua nplaum.
Rau cov ntawm koj uas zoo dua nrog ntoo, kua nplaum thiab/lossis ntsia hlau, Kuv tau txuas ib qho qauv ntawm cov qauv tsim yam tsis muaj lub qhov ntsia hlau zoo rau nws.
Dua li ntawm qhov nyuaj, qhov kawg tshwm sim zoo heev.
Kauj ruam 10: Software thiab Xeem
Rub tawm cov software hauv qab no los ua tus tswj hwm ua haujlwm nrog Kerbal Space Program:
KSP plugin:
ZIP cov ntaub ntawv yog qhov muab tso ua ke plugin. Tus so yog qhov chaws koj tuaj yeem siv los hloov kho lub plugin thiab sau koj tus kheej version. Unpack lub plugin rau hauv phau ntawv teev npe GamaData.
Arduino Code:
Siv Arduino IDE txhawm rau upload cov cai mus rau Arduino Mega hauv koj tus tswj.
Saib hauv qab txoj cai ntawm Arduino IDE txhawm rau txheeb xyuas qhov chaw nres nkoj twg tus tswj hwm nyob ntawm (piv txwv /dev/cu.usbmodem1421). Qhib cov ntaub ntawv config.xml los ntawm phau ntawv teev npe plugin thiab xyuas kom tseeb tias koj qhov chaw nres nkoj tau ntim rau. Tam sim no koj zoo mus!
Koj tuaj yeem siv hom debug los ntawm kev tso lub me me rau/tawm hloov sab laug rau hauv ON txoj haujlwm. Lub LCD yuav tsum tso ib kab ntawv. Txhua tsab ntawv sawv cev rau lub pob lossis hloov thiab hloov ntawm tus lej qis thiab sab saud thaum koj nias lub pob lossis hloov qhov hloov pauv. Kev teeb tsa lub xyz hloov mus rau Xyz (qhib/tua/tawm) tseem yuav tso tawm qhov ntsuas qhov ntsuas qhov ntsuas qhov tseem ceeb. xYz qhia txog tus lej joystick rau Kev Txhais Lus (sab laug) joystick. xyZ rau Kev Sib Hloov (txoj cai) joystick.
Hom LCD
Cov hom zaub hauv qab no tuaj yeem xaiv rau tso saib ntawm LCD los ntawm kev siv x, y thiab z hloov pauv
TakeOff Hom: Kev nrawm nrawm / nrawm (G)
Orbit Mode: Apoapsis + Sijhawm rau Apoapsis / Periapsis + Sijhawm rau Periapsis
Maneuver Hom: Sijhawm rau tom ntej maneuver node / Tseem tshuav Delta-V rau tom ntej
Hom Kev Sib Tham: Nyob nrug mus rau lub hom phiaj / Tshaj tawm txheeb ze rau lub hom phiaj
Rov Nkag Hom: Feem pua overheating (max) / Deceleration (G)
Flying Mode: Qhov siab / Mach tooj
Tsaws Hom: Radar Altitude / Vertical Velocity
Hom Ntxiv: tseem tsis tau siv (tseem)
Txhawm rau pom cov qauv sib txawv hauv kev nqis tes ua, saib cov vis dis aus thaum kawg ntawm kev qhia.
Kauj ruam 11: Mus rau lub hli
Hluav taws kub KSP, thauj koj lub nkoj nyiam, lossis tsim lub nkoj tshiab thiab tawm mus!
Lub tswv yim:
- Siv kev coj ua tshwj xeeb pab pawg 5 rau koj cov ntaiv
- Siv kev coj ua tshwj xeeb pab pawg 6 rau koj lub hnub ci vaj huam sib luag
- Siv cov kev coj ua tshwj xeeb pab pawg 7 rau cov dav hlau dhia lossis dhia dhia
- Muab lub kaw lus khiav tawm thiab qhov tsim nyog decouplers rau pab pawg Abort ua
- Tsis txhob hnov qab koj yuav tsum tau Arm khawm Staging
Khiav Tawm Hauv Arduino Contest 2017
Khiav Tawm Hauv Thawj Tus Kws Sau Ntawv Sib Tw 2018
Pom zoo:
Txhim Kho Koj Qhov Chaw Tshaj Tawm Nrog Lub Caij Nyoog Lub Caij Nyoog rau Kerbal Space Program: 6 Kauj Ruam
Txhim Kho Koj Qhov Chaw Tshaj Tawm Nrog Lub Caij Nyoog Lub Caij Nyoog rau Kerbal Space Program: Kuv tsis ntev los no tau khaws qhov demo version ntawm Kerbal Space Program. Kerbal Space Program yog qhov kev ua si sim uas tso cai rau koj tsim thiab tso foob pob hluav taws thiab coj lawv mus rau lub hli thiab ntiaj chaw nyob deb. Kuv tseem tab tom sim ua kom tiav hauv lub hli (o
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Yuav Ua Li Cas 2 Tus Neeg Ua Si DIY Bartop Arcade Nrog Custom Marquee Npib Slots, Siv Pandora Lub Thawv: 17 Cov Kauj Ruam (nrog Duab)
Yuav Ua Li Cas 2 Tus Neeg Ua Si DIY Bartop Arcade Nrog Kev Cai Marquee Npib Slots, Siv Pandora Lub Thawv: Nov yog cov lus qhia ib kauj ruam ntawm yuav ua li cas thiaj tsim tau 2 tus neeg ua si bar sab saum toj arcade tshuab uas muaj kev cai npib qhov ua rau hauv marquee. Cov nyiaj npib yuav raug ua xws li lawv tsuas yog lees txais npib qhov loj ntawm ib nrab thiab loj dua.Qhov arcade no tau siv
Yuav Ua Li Cas Thiaj Li Tshem Tawm Lub Computer Nrog Cov Kauj Ruam Yooj Yim thiab Duab: 13 Kauj Ruam (nrog Duab)
Yuav Tsum Tshem Tawm Lub Khoos Phis Tawj Li Cas Nrog Cov Kauj Ruam Yooj Yim thiab Duab: Nov yog cov lus qhia txog yuav ua li cas tshem lub PC. Feem ntau ntawm cov khoom siv yooj yim yog hloov pauv thiab tshem tawm tau yooj yim. Txawm li cas los xij nws yog ib qho tseem ceeb uas koj tau koom nrog nws. Qhov no yuav pab tiv thaiv koj kom tsis txhob poob ib feem, thiab tseem ua rau kev rov ua dua tshiab
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv