Cov txheej txheem:

Sim Khiav Khawm Box: 7 Kauj Ruam (nrog Duab)
Sim Khiav Khawm Box: 7 Kauj Ruam (nrog Duab)

Video: Sim Khiav Khawm Box: 7 Kauj Ruam (nrog Duab)

Video: Sim Khiav Khawm Box: 7 Kauj Ruam (nrog Duab)
Video: Tseem Ev Lub Kawm - Koos Loos 2024, Hlis ntuj nqeg
Anonim
Sim Sib Tw Khawm Box
Sim Sib Tw Khawm Box

Lub npov khawm yog cov cuab yeej siv hauv Sim Sib Tw uas tso cai rau koj muab cov nyees khawm, hloov pauv, thiab pob qhov rooj rau ntau lub tsheb tswj. Cov haujlwm khawm sib xws yog yam xws li khawm pib, PTT, thov lub qhov, thiab lwm yam Toggle hloov pauv ua haujlwm zoo rau lub tshuab ntxhua khaub ncaws, taws teeb, thiab lwm yam. Cov pob qhov rooj tuaj yeem siv los kho TC (Kev Tiv Thaiv Kev Tsav Tsheb), Nres tsis ncaj, thiab ntau ntxiv.

Kauj Ruam 1: Kauj Ruam 1: Sau Cov Kev Xav Tau

Arduino Pro Micro - Koj tuaj yeem tau txais lub rooj tsav xwm raug cai; Kuv kuj tseem muaj hmoo nrog rau kev tshem tawm cov version.

Lub thawv ABS Project - xyuas kom nws tob txaus los txhawb cov nyees khawm thiab hloov qhov koj xaiv.

Momentary Nyees khawm - Nyees khawm nrog puag ncig lub qhov yog qhov yooj yim los ua haujlwm nrog. Nrhiav cov nyees khawm uas muaj xim thiab qhov loj ntawm qhov koj nyiam. Cov nyees khawm yuav tsum muaj n.o. (Ib txwm Qhib) cov neeg. Nco ntsoov tias cov lus qhia no tsis hais txog yuav ua li cas siv cov nyees khawm teeb.

Toggle Hloov - Koj tuaj yeem xaiv nruab nrab thiab kaw. Lwm qhov kev xaiv yog ST (Ib Leeg Pov) lossis DT (Muab Ob Leeg). Kev pov ib leeg txhais tau tias 2 txoj haujlwm tshaj tawm, qhib/tawm, Muab ob npaug rau yog 3 nqe lus qhib/tawm/rau. Tsis txhob txhawj txog Single Ncej (SP) lossis Ob Hom Ncej (DP) hom, ob qho tib si yuav ua haujlwm. Yog tias koj xaus nrog Ob Qhov Thim Hloov koj tuaj yeem cia li tsis quav ntsej qhov teeb tsa thib ob. Cov hloov pauv no feem ntau xa mus rau lawv cov yam ntxwv ua ke xws li SPDT, DPDT, thiab lwm yam.

Rotary Encoders - Encoders tso cai rau peb los tswj cov yam ntxwv uas txhawb kev nce thiab txo kev hloov pauv. xws li Traction Control. Qee tus tswj cov teb kuj tseem muaj lub khawm ua nyob rau hauv ib pliag los ntawm kev nias qis tus lej nkag. Pob qhov rooj - Pob qhov rooj kom haum rau cov kab sib chaws.

USB Micro rau USB -A cable - Qhov no yuav raug siv los rub cov lej arduino rau hauv pawg thawj coj nrog rau txuas koj lub npov Box rau koj lub PC.

Hlau - Kuv nyiam teflon coated 24ga. hlau xaim.

Solder thiab Soldering Iron - Cov hlau qis watt nrog lub taub me me yuav ua haujlwm zoo tshaj plaws. Cov kev sib txuas yuav yaj thiab ua tsis tiav yog tias ua kom sov ntau dua li qhov ntsuas kub lossis cov hlau qis wattage zoo dua.

Laum thiab Laum cov khoom - Ua kom lub qhov rau koj tus tes hloov qhov, khawm, thiab lwm yam. Kev nkag mus rau Drill Xovxwm yuav ua kom yuam kev tsawg dua. Yeem tau: Vinyl qhwv ntxiv cov pa roj carbon lossis aluminium zoo rau koj lub npov lub npov.

Kauj Ruam 2: Kauj Ruam 2: Teeb Nyees khawm, Hloov, thiab Encoders

Kauj ruam 2: Layout Cov Khawm, Hloov, thiab Encoders
Kauj ruam 2: Layout Cov Khawm, Hloov, thiab Encoders

Cov nyees khawm yuav raug teeb tsa ntawm lub hau ntawm koj lub phiaj xwm phiaj xwm. Txheeb ob zaug tias koj lub npov khawm tob txaus rau koj cov nyees khawm.

Kuv pom nws muaj txiaj ntsig zoo rau lub cev tso cov hloov pauv, cov nyees khawm, thiab pob qhov rooj ntawm lub hau kom tau txais kev xav ntawm qhov sib txawv thiab zoo nkauj.

Sim ua kab txhua yam hauv kab sib chaws nrog txawm tias sib nrug nruab nrab ntawm txhua feem.

Nco ntsoov tawm qhov chaw txaus ntawm qhov kawg ntawm kab, cov hloov pauv thiab cov nyees khawm muaj lub hauv paus thiab xav tau chav txaus los teeb tsa kom raug. Yog tias koj tau qhwv lub ntsej muag hauv yas rau cov pa roj carbon lossis aluminium zoo, koj tuaj yeem kos kab sab xis ntawm lub ntsej muag ntawm lub npov nrog lub xaum, lawv yuav npog tom qab nrog qhwv.

Txwv tsis pub, kos kab ntawm sab hauv qab ntawm lub hau, koj xav kom muaj kab hla ntawm qhov nruab nrab ntawm txhua lub khawm/hloov uas koj yuav tau teeb tsa.

Kauj Ruam 3: Kauj Ruam 3: Laum thiab Txhim Kho Cov Khawm, Hloov thiab Encoders

Kauj Ruam 3: Laum thiab Txhim Kho Cov Khawm, Hloov thiab Encoders
Kauj Ruam 3: Laum thiab Txhim Kho Cov Khawm, Hloov thiab Encoders
Kauj Ruam 3: Laum thiab Txhim Kho Cov Khawm, Hloov thiab Encoders
Kauj Ruam 3: Laum thiab Txhim Kho Cov Khawm, Hloov thiab Encoders
Kauj Ruam 3: Laum thiab Txhim Kho Cov Khawm, Hloov thiab Encoders
Kauj Ruam 3: Laum thiab Txhim Kho Cov Khawm, Hloov thiab Encoders

Siv lub laum me me (tseem hu ua tsav me ntsis) txhawm rau pib lub qhov rau txhua feem. Qhov me me tso cai rau koj kom meej meej thiab ua kom txhua yam nyob hauv nruab nrab. Tswv yim: Yog tias koj nkag tau mus rau lub laum xovxwm, cov kauj ruam no yuav yooj yim dua thiab sai dua. Yog tsis yog, tsis txhob txhawj xeeb tsuas yog siv koj lub sijhawm.

Tom qab ua qhov kev sim ua tiav, hloov mus rau kauj ruam me ntsis lossis qhov tseeb me ntsis rau lub taub hau ntawm txhua qhov khoom siv los teeb tsa.

Tswv yim: Ceev faj thaum siv cov kauj ruam me ntsis kom tsis txhob mus deb dhau. Kuv nyiam siv cov ntse thiab xim cov kauj ruam ntawm qhov kuv xav tau nres. Qhov no kuj yog lub sijhawm zoo los tho lub qhov nyob tom qab ntawm lub thawv rau usb cable uas yuav khiav ntawm Arduino thiab koj lub PC. Lub qhov yuav tsum tau loj txaus kom tau txais usb micro kawg ntawm txoj kab hla. Koj tuaj yeem siv cov roj hmab grommet los txiav lub qhov thiab xaim hlua khi sab hauv los ua kev tiv thaiv kom tsis txhob rub cov hlua rub tawm. Yog tias koj yuav vinyl qhwv koj lub npov lub hau, tam sim no yog lub sijhawm los ua nws.

Kauj Ruam 4: Kauj Ruam 4: Layout Your Matrix

Kauj ruam 4: Layout Your Matrix
Kauj ruam 4: Layout Your Matrix
Kauj ruam 4: Layout Your Matrix
Kauj ruam 4: Layout Your Matrix
Kauj ruam 4: Layout Your Matrix
Kauj ruam 4: Layout Your Matrix

Tus tswj Arduino muaj tsawg tus lej nkag thiab tawm tswv yim nws tuaj yeem siv los nkag siab thaum cov nyees khawm raug nias, hloov pauv, thiab lwm yam. kev sib tshuam ntawm cov zis thiab cov tswv yim raws li "chaw nyob" ntawm kev hloov lossis khawm. Arduino cov ntawv tso tawm tau muab tso ua kab thiab cov tswv yim ua kab hauv kab ntawv thiab txhua khawm thiab hloov txoj haujlwm tau muab chaw nyob. Nws yog qhov yooj yim tshaj plaws los siv daim ntawv nthuav qhia los ua koj tus qauv, tab sis ntawv yuav ua haujlwm ib yam nkaus. Siv Arduino's A0, A1, A2, thiab A3 ua "kab" hauv cov lej thiab 6, 7, 8, 9, 10 & 16 ua "kab" peb tuaj yeem lees txais txog 28 qhov kev nkag (khawm nias, hloov txoj haujlwm, thiab lwm yam)! Txhawm rau yooj yim teeb tsa, txhua tus pin ntawm koj lub pob hloov lossis hloov pauv yuav xav tau daim ntawv lo xa mus rau nws. Kuv tau xaiv "PBn" los sawv cev rau lub laub khawm, "TGn" los sawv cev rau toggle, thiab "REn" rau cov hloov pauv hloov pauv. Tus "n" hauv lub npe raug hloov pauv nrog tus lej txhawm rau siv cov khoom tshwj xeeb hauv cov lej. Tswv yim: Nws yog qhov muaj txiaj ntsig zoo los sau lub npe ntawm txhua qhov khoom siv ntawm sab hauv qab ntawm lub hau ntawm ib sab ntawm nws qhov chaw, piv txwv. PB1, PB2, RE1, thiab lwm yam Hauv cov lej kuv hais txog cov pins raws li kuv saib lawv pom qhov muag ntsia ntawm lub hau saib los ntawm sab hauv qab ntawm lub hau. Yog li piv txwv lub laub khawm yuav muaj 2 lub dav hlau kuv xa mus rau lawv li "H" (siab) thiab "L" (qis), koj tseem tuaj yeem siv sab saum toj thiab hauv qab, lossis xijpeem koj nyiam tsuav koj nco tau yooj yim. Rau toggles Kuv siv siab, nruab nrab thiab qis. raws li kuv toggles yog DPDT. Kuv cov encoders teb kuj muaj cov nyees khawm kom kuv muaj REn-PB siab thiab qis ib yam. Txhua lub pob lossis hloov "cov tswv yim" yuav qhia rau ib kab hauv koj cov lej. Koj tuaj yeem muaj ntau qhov hloov pauv/khawm nkag ntawm tib kab ntawv, tsuas yog tsis ntau dua li cov kab uas koj muaj.

Tseem ceeb! Txhua qhov hloov pauv hloov pauv yuav tsum tau teeb tsa rau kab ntawm nws qhov kev nkag mus. Qhov no yog vim tias koj yuav tsum txuas qhov chaw nruab nrab ntawm qhov hloov pauv kom hais A0, tom qab ntawd cov zis ntawm qhov hloov pauv (siab lossis qis dav) yuav mus rau kab kab piv txwv. 7ou8 ib.

Arduino Outputs (hloov/khawm nkag) A0A1A2 TG1-HPB1-HPB2-H TG2-CTG4-CPB5-H TG3-CPB3-HPB6-H RE1-PB-HPB4-HPB7-H RE2-PB-HPB8-H RE3-PB- H Arduino Inputs (hloov/khawm tawm) 6TG1-LPB1-LPB2-L 7TG2-HTG4-LPB5-L 8RE1-PB-LRE2-PB-LPB6-L 9TG3-HPB3-LPB7-L 10TG3-LPB4-LRE3-PB 16TG2-LTG4-HPB8-L

Kauj Ruam 5: Kauj Ruam 5: Hlau Matrix

Kauj Ruam 5: Hlau Matrix
Kauj Ruam 5: Hlau Matrix

Pib nrog Arduino Outputs (hloov & khawm nkag) txuas txhua cov khoom siv hluav taws xob hauv kab ntawv matrix thiab tawm luv luv ntawm xaim txuas mus rau Arduino cov zis. Kuv tau xaiv los siv kuv cov teflon xaim txuas txhua yam ua ke thiab cov xim xaim xaim mus rau arduino vim nws ua rau nws yooj yim mus nrhiav thiab taug qab tom qab. Tom qab tag nrho cov kab sib txuas sib txuas ua tiav, ua tib yam rau txhua kab. Txuas txhua lub Cheebtsam hauv tib kab ua ke saib xyuas kom ntseeg tau tias koj tau txuas lub davhlau ya nyob twg raug piv txwv li siab lossis qis thiab tawm ntev ntawm xaim txuas mus rau Arduino tom qab. Siv koj lub sijhawm thiab tshuaj xyuas ob zaug tias koj tab tom txuas lub davhlau ya nyob twg raug. Nov yog qhov uas cov khoom siv sib tham sau ntawm lub vaj huam sib luag tom ntej ntawm cov khoom siv thiab koj yooj yim kom nco qab cov phiaj xwm rau cov haujlwm dav dav yuav them tawm.

Kauj Ruam 6: Kauj Ruam 6: Hlau Encoders thiab Arduino

Kauj Ruam 6: Hlau Encoders thiab Arduino
Kauj Ruam 6: Hlau Encoders thiab Arduino

Cov encoders teb tsis tuaj yeem txuas rau hauv matrix. Cov tswv yim rau txhua tus lej nkag (tus pin nruab nrab) yuav raug khi rau hauv av Arduino thiab cov ntawv tso tawm suab yuav ncaj qha mus rau Arduino cov tswv yim. Txuas txhua tus lej cim chaw nruab nrab tus pin ua ke thiab tso ib txoj hauv kev txuas rau Arduino av.

Solder cov chaw nkag teb chaws rau Arduino hauv av thiab txhua lub teb chaws encoder "H" "L" mus rau tus lej Arduino. Solder txhua qhov ntev ntawm cov hlau los ntawm kab ntawv thiab kab sib luag rau qhov sib xws Arduino cov tswv yim lossis tso tawm.

Kauj Ruam 7: Kauj Ruam 7: Npaj Sketch

Siv cov Arduino IDE pub dawb npaj cov duab (code) rau Arduino. Tom qab kos duab kos, Txuas koj lub npov lub npov rau koj lub PC, lub cuab yeej joystick yuav tsum tshwm. Nrog koj zoo siab! Koj nyuam qhuav tsim lub npov khawm!

Pom zoo: