Cov txheej txheem:

SpaceBall 4000 Serial rau USB Adapter: 4 Cov Kauj Ruam
SpaceBall 4000 Serial rau USB Adapter: 4 Cov Kauj Ruam

Video: SpaceBall 4000 Serial rau USB Adapter: 4 Cov Kauj Ruam

Video: SpaceBall 4000 Serial rau USB Adapter: 4 Cov Kauj Ruam
Video: космический шар 2003 и немного пайсериала 2024, Kaum ib hlis
Anonim
SpaceBall 4000 Serial rau USB Adapter
SpaceBall 4000 Serial rau USB Adapter
SpaceBall 4000 Serial rau USB Adapter
SpaceBall 4000 Serial rau USB Adapter

SpaceBall 4000 (sib npaug rau 5000FLX, tab sis tsis yog 5000) yog cov lej raws li 3D nas nrog 12 khawm uas koj tuaj yeem yuav ntawm ebay rau qis dua $ 20. Cov no yog qhov zoo rau kev ua 3D duab tsim, raws li koj tuaj yeem txav cov qauv ua raws peb kab thiab tig lawv tsuas yog txav lub pob. Kuv nyuam qhuav ua Chrome txuas ntxiv uas tso cai rau koj siv nws hauv TinkerCAD, piv txwv li. Lossis koj tuaj yeem siv nws ua rau rau-axis 12-khawm joystick (tus adapter muaj qhov hloov pauv tau uas tso cai rau koj qhib lub hom ntawd) hauv kev ua si zoo li Qub.

Kuv yuav qhia yuav ua li cas rau $ 5 koj tuaj yeem tsim USB adapter rau SpaceBall uas ua rau nws ua raws li feem ntau ntawm kev ua haujlwm ntawm SpaceMouse Pro tshiab dua, yog li koj tuaj yeem siv nws nrog 3DConnexion cov tsav tsheb tshiab kawg.

Qhov chaw rau qhov project:

  • STM32F103C8T6 pawg tswj hwm kev txhim kho yam tsawg kawg nkaus: ib lub ntsiav tshuaj dub zoo li qhov no ($ 1.90 xa tawm) lossis cov ntsiav tshuaj xiav zoo li qhov no ($ 1.94 xa tawm); yog tias koj siv cov ntsiav tshuaj xiav, tej zaum koj yuav xav tau cov tshuaj tiv thaiv ntxiv (tej zaum 1.8K); yog tias koj siv cov tshuaj dub, muaj peev xwm (tab sis nws tsis tshwm sim thaum kuv sim nws nrog SP3232 pawg thawj coj saib) uas koj yuav muaj qee qhov teeb meem kev siv hluav taws xob thiab yuav xav tau txuas cov hlau ncaj qha mus rau diode ntawm lub rooj tsavxwm.
  • SP3232 TTL rau RS232 DB9 txiv neej pawg thawj coj zoo li qhov no (ebay $ 3.09).

Cov Cuab Yeej:

  • USB rau UART adapter rau thauj khoom bootloader ntawm pawg thawj coj loj. Yog tias koj muaj ib tus zaum nyob ib puag ncig, koj tuaj yeem siv Arduino rau qhov no, lossis ib qho ntawm ntau lub USB rau UART adapters ntawm aliexpress rau ib ncig $ 1
  • cam khwb cia hlau
  • khoos phis tawj rau kev khiav Arduino IDE.

Kauj Ruam 1: Thauj Bootloader thiab Npaj Arduino Ib puag ncig

Load Bootloader thiab Npaj Arduino Ib puag ncig
Load Bootloader thiab Npaj Arduino Ib puag ncig

Ua raws cov kauj ruam 1 thiab 2 hauv Cov Lus Qhia no kom thauj khoom bootloader ntawm lub rooj tsavxwm thiab npaj Arduino IDE rau pawg thawj coj (koj tuaj yeem hla GameControllers lub tsev qiv ntawv, txawm li cas los xij).

Yog tias koj muaj cov tshuaj xiav, ntsuas qhov tsis kam ntawm PA12 thiab 3.3V. Yog tias nws muaj txiaj ntsig ntau dua 1.5K, muab tus tiv thaiv nruab nrab ntawm ob tus pin no los sib piv qhov kev tiv thaiv uas twb muaj lawm thiab coj nws mus rau 1.5K. Yog tias koj ntsuas 10K, koj yuav tsum tso 1.8K tus neeg tawm tsam. (Nco ntsoov tias qee cov laug cam uas muaj cov tshuaj ntsiav tshuaj xiav yog xim dub.

Kauj ruam 2: Txuas Serial Board

Txuas Serial Board
Txuas Serial Board

Ua cov kev sib txuas hauv qab no ntawm RS232 adapter thiab ntsiav tshuaj:

  • VCC -V3
  • GND -G
  • TXD - A 10
  • RXD - A9
  • TSO - B11

Txuas SpaceBall mus rau RS232 adapter. Txuas lub ntsiav tshuaj rau hauv qhov chaw nres nkoj USB. Tos ob peb feeb. Yog tias txhua yam mus tau zoo, SpaceBall yuav tso ob lub suab nrov. Qhov no qhia tau tias kev sib txuas hluav taws xob tau zoo. Yog tias koj muaj teeb meem, saib "Yuav ua li cas yog tias nws tsis muaj zog?" kauj ruam

Kauj Ruam 3: Thauj lub Sketch rau ntawm Pawg Thawj Coj

Load Sketch rau ntawm Pawg Thawj Coj
Load Sketch rau ntawm Pawg Thawj Coj
Load Sketch rau ntawm Pawg Thawj Coj
Load Sketch rau ntawm Pawg Thawj Coj

Thauj kuv tus Mouse3D kos duab rau hauv Arduino. Yog tias koj muaj Blue Pill, hloov kab LED los ua PC13 tsis txhob siv Black Pill's PB12.

Txuas lub ntsiav tshuaj rau hauv koj lub computer.

Mus rau Cov Cuab Yeej | Pawg thawj coj thiab nqes los xaiv Generic STM32F103C series.

Nias lub Upload (sab xis) khawm hauv Arduino IDE.

Yog tag nrho. Tam sim no koj muaj tus adapter. Unplug nws thiab ntsaws nws rov qab los siv nws. Kuv pom zoo kom koj rub tawm qhov kawg 3D Connexion tsav tsheb rau nws. Koj lub adapter ua rau lub cuab yeej ua piv txwv tias yog SpaceMouse Pro, tshwj tsis yog tias nws ploj lawm peb kawg ntawm SpaceMouse Pro cov nyees khawm.

Koj kuj tseem tuaj yeem siv SpaceBall ua ib qho USB joystick dav dav (ntsuas nrog Win-R joy.cpl ntawm Windows). Txhawm rau hloov mus rau USB hom joystick, nias lub 4, 5, 6 thiab 2 khawm tib lub sijhawm. Txhawm rau hloov rov qab mus rau SpaceMouse Pro, rov pib dua lub adapter (tshem tawm thiab rov ntsaws, lossis nias lub pob pib dua ntawm nws) lossis nias 4, 5, 6 thiab 1 khawm.

Kauj Ruam 4: Yuav Ua Li Cas Yog Nws Tsis Muaj Zog?

Yuav Ua Li Cas Yog Nws Tsis Muaj Peev Xwm?
Yuav Ua Li Cas Yog Nws Tsis Muaj Peev Xwm?

Yog tias koj tsis muaj hmoo, koj yuav pom tias SpaceBall 4000 tsis muaj zog thiab ib yam tsis zoo li qub. Lwm cov tsos mob yog xa khawm nias (koj tuaj yeem pom lawv nrog joy.cpl ntawm Windows) tab sis tsis yog pob txav mus los.

Hauv qhov xwm txheej ntawd, koj xav hloov pauv lub zog siv hluav taws xob rau UART-rau-RS232 hloov chaw tswj hwm los ntawm 3.3V txog 5V. Yog tias koj lub rooj tsav xwm STM32 muaj tus pin 5V (cov tshuaj xiav muaj nws), qhov ntawd yooj yim: tsuas yog txuas qhov ntawd mus rau lub rooj sib tham hloov pauv VCC hloov ntawm 3.3V. Yog tias lub rooj tsavxwm tsis muaj tus pin 5V (cov tshuaj dub tsis muaj nws), koj yuav tsum tau muab cov kab hluav taws xob txuas rau lub diode ntawm lub rooj tsavxwm.

Pom zoo: