Cov txheej txheem:

Iron Man Reactor rau Kev Lom Zem (Digital Motion Processor Joystick): 7 Kauj Ruam (nrog Duab)
Iron Man Reactor rau Kev Lom Zem (Digital Motion Processor Joystick): 7 Kauj Ruam (nrog Duab)

Video: Iron Man Reactor rau Kev Lom Zem (Digital Motion Processor Joystick): 7 Kauj Ruam (nrog Duab)

Video: Iron Man Reactor rau Kev Lom Zem (Digital Motion Processor Joystick): 7 Kauj Ruam (nrog Duab)
Video: Horizon: Forbidden West (The Movie) 2024, Hlis ntuj nqeg
Anonim
Image
Image
Peb Yuav Tsum Xav Tau Cov Khoom No
Peb Yuav Tsum Xav Tau Cov Khoom No

Nyob zoo cov phooj ywg!

Nov yog kuv thawj qhov kev qhia, yog li vam tias koj nyiam thiab tawm tswv yim!

Txoj haujlwm yog kev sib tham sib tham rau tsev neeg, sib tw, xwm txheej - tsuas yog lom zem.

Cov no yog ob lub suab txav txav tau tsim hauv kev tsim cov hlau txiv neej cov tshuaj tiv thaiv. Lawv tau nrawm nrog txoj siv rau tus neeg - rau nws ib feem ntawm lub cev -hauv siab, plab, lub nroog Yeiuxalees thiab qhov koj xav tau xav li cas. Sensors ntes txav mus los - co sab thiab ntsug, thiab tig mus rau sab thiab pem hauv ntej mus rau tom qab, tab sis tib lub cev txom nyem ib puag ncig nws lub axis! 2.4 GHz xov tooj cua channel xa cov ntaub ntawv mus rau tus txais uas txuas nrog lub khoos phis tawj thiab hloov nws mus rau txoj hauj lwm ntawm txoj hlua khawm.

Kev piav qhia ntawm qag:

Txoj kab nqes ntawm txoj cai-sab laug x Mus tom ntej-rov qab tig-y axis Squats nce-nqis-tig y axis Tsa sab xis-sab laug-tig x-axis Tig ncig nws lub axis-z axis

Koj tuaj yeem ua koj li game siv program rau cov tsim game. Yuav tsum muaj kev txhawb nqa nkaus xwb DirectInput! Piv txwv li, hauv ob peb lub lis piam kuv tau kawm paub qhov yooj yim ntawm qhov program Game txiag Studio.

Phau ntawv no suav nrog kev npaj ua tiav firmware rau tus txais thiab xa tawm, nrog rau ib qho game tsim los ntawm kuv.

Koj tuaj yeem ua tus kheej ua qhov kev npaj teeb tsa rau lub lim tiam, yog tias koj paub yuav ua li cas:

Solder

Txhawm rau luam tawm ntawm lub tshuab luam ntawv 3D (NCO TSEG! Txhua tus qauv siv tau muaj 100% nplai. Yog koj luam ntawv yas ABS - nce qhov ntsuas ntawm tus qauv los ntawm qhov feem pua ntawm cov yas ntsws tom qab txias. Kuv nce 1% thaum luam ntawv)

Arduino Txoj Haujlwm.

Qhov ntawd yog txhua yam. Thiab, Yog, nws yuav siv sijhawm ntev dua yog tias koj muaj tes nkhaus)

Kauj Ruam 1: Peb Yuav Tsum Xav Tau Cov Khoom No:

Peb Yuav Tsum Xav Tau Cov Khoom No
Peb Yuav Tsum Xav Tau Cov Khoom No
  • 1x Arduino pro micro (module nrog atmega32u4)
  • 2x Arduino pro mini (module nrog atmega328)
  • 3x xov tooj cua modules NRF24l01
  • 3x capacitors 100uF 7-16v
  • 1x 3.3v kauj ruam nqis hloov pauv
  • 2x 5v nce qib hloov pauv
  • 2x DMP modules MPU6050
  • 2x switchers nrog kho
  • 2 x 2 x AAAA battery holder
  • 2x wb 2812b

Thiab kuj:

  • xov hlau
  • 8 x tooj dag standoffs (M3 x 15mm)
  • 16x m3 cev
  • Phooj ywg nrog 3d tshuab luam ntawv
  • cam khwb cia hlau
  • phom phom
  • caj npab ncaj
  • arduino uno lossis usb-> uart hloov pauv rau lub cajmeem Arduino pro mini
  • usb hom a rau usb mini cable rau arduino pro micro

Kauj Ruam 2: Ua Electronics Joysticks

Ua Electronics Joysticks
Ua Electronics Joysticks

Ua electronics joysticks.

Rau txhua tus joystick, peb xav tau: arduino pro mini MPU6050 NRF24l01 100uF capacitor 5v nce qib hloov lub roj teeb yas dhos 2xAAA switcher

Kawm daim duab qhia chaw

Tam sim no koj yuav tsum tau siv cov hlau txuas, ob peb lub xov hlau thiab npaj ua kom yaj.

1.1. NRF24l01 cov qauv tau muag nrog cov txuas txuas thiab yuav tsum tau muab tshem tawm.

1.2. tom qab ntawd, koj yuav tsum tau xaim 7 xov hlau nrog qhov ntev ntawm 6cm raws li cov lus qhia, tsuas yog siv lub tshuab ncaj qha mus rau PCB 100uf capacitor rau tus pin muab.

2.1. Txhawm rau hloov pauv MPU6050 xav tau txuas 5 lub xov hlau ntev 5-6cm raws li cov phiaj xwm.

2.2. Tsis tas li, koj yuav tsum tau ua tib zoo yaj lub 3.3 V fais fab hlau los ntawm NRF24l01 tus qauv rau OUT LDO tus pin ntawm MPU6050 Board.

3.1. Lub roj teeb zoo lub hwj huam hlau yuav tsum txuas nrog xaim mus rau qhov hloov pauv

3.2. Lub roj teeb tsis zoo tuav lub hwj huam xaim yuav tsum txuas nrog rau qhov tsis zoo ntawm cov kauj ruam hloov pauv

3.3. Tus pin thib ob ntawm qhov hloov pauv yuav tsum txuas nrog rau qhov tsis zoo INPUT ntawm cov theem hloov pauv

4.1. Tus lej 5-tus lej txuas txuas yuav tsum tau muab muag rau Arduino pro mini module.

4.2. Txuas cov xov hlau rho tawm thiab ntxiv rau OUTPUT nce qib hloov pauv

4.3. TEST. Ntxig 2 lub roj teeb AAA rau hauv lub roj teeb, tom qab ntawd tig lub pob hluav taws xob - yog txhua yam txuas nrog raug, lub teeb liab coj yuav tsum teeb ntawm Arduino. Tawm lub hwj chim. 4.4. Txuas MPU6050 tus qauv nrog cov xov hlau raws li daim duab qhia duab. 4.5. TEST. Qhib lub zog, lub zog ntsuab coj yuav tsum teeb ntawm MPU605. Tawm lub hwj chim. 4.6. Txuas NRF24l01 xov tooj cua module rau Arduino nrog cov xov hlau.

5.1. Siv 3 txoj hlua ntev 10 cm rau ws2812b lub nplhaib rau tus pin: IN, VCC, GND

Hluav taws xob schematic ntawm peb cov xa tawm npaj txhij!

Kauj ruam 3: Tsim Electronics USB Txais

Tsim Electronics USB Txais
Tsim Electronics USB Txais

Tsim cov khoom siv hluav taws xob USB tus txais

1.1. NRF24l01 modules raug muag nrog cov txuas txuas thiab yuav tsum tau muab tshem tawm.

1.2. tom qab ntawd, koj yuav tsum tau xaim 7 xov hlau nrog qhov ntev ntawm 6cm raws li cov lus qhia, tsuas yog siv lub tshuab ncaj qha mus rau PCB 100uf capacitor rau tus pin muab.

2.1. Solder 3 xaim 5cm ntev mus rau tus hloov pauv qis raws li qhia hauv kab duab kab lus: 2 xov hlau mus rau GND tus pin, 1 xaim rau tus PIN INPUT.

2.2. los pin tus OUTPUT solder lub hwj chim xaim los ntawm NRF24l01 module/

3.1. Solder cov xov hlau nkag los ntawm kev hloov pauv qis thiab cov xov hlau uas tseem tshuav los ntawm NRF24l01 rau Arduino pro micro raws li tau hais tseg hauv daim duab kos duab.

3.2. TEST. Txuas lub USB rau USB mini cable rau koj lub computer thiab Arduino pro micro. Yog tias koj txuas txhua yam raws li tau teev tseg hauv daim duab qhia chaw, LEDs ntawm Arduino thiab cov hloov pauv qis yuav tsum teeb.

Cov hluav taws xob hluav taws xob ntawm peb tus txais tau npaj txhij!

Kauj ruam 4: Programming Tus Txais

Programming Tus Txais
Programming Tus Txais
Programming Tus Txais
Programming Tus Txais

1.1. Txuas koj Arduino pro micro los ntawm usb rau usb mini adapter rau koj lub computer.1.2. Qhib qhov haujlwm kom nyem HEX. cov ntaub ntawv '. Piv txwv li, gcUploader (hauv qhov txuas), xaiv qhov chaw nres nkoj uas koj muaj Arduino txhais lub npe "SparkFun Pro Micro".

1.2.1 yog tias Arduino tsis tau txiav txim siab, teeb tsa tus tsav tsheb (tus tsav tsheb hauv qhov txuas, yuav ua li cas teeb tsa ntxiv: https://learn.sparkfun.com/tutorials/pro-micro--f ahhh!

1.3. Hauv qhov haujlwm, xaiv hom Arduino: Arduino Leonardo.

1.4. Luag tus txais -v0 file.ino.hex rau hauv qhov program, thiab nyem rau ntawm Flash icon.

1.5. TEST. Tom qab lub khoos phis tawj hauv lub cuab yeej windows yuav tsum pom lub cuab yeej tshiab - "SparkFun Pro Micro" nrog lub cim ntawm lub joystick.

Nrog koj zoo siab, peb tau txais tus txais peb cov joysticks!

Kauj ruam 5: Programming Transmitters

Image
Image
Kev Tsim Lub Cev!
Kev Tsim Lub Cev!

Programming lub transmitter.

1.1. Txuas koj Arduino Pro Mini (peb thawj tus joystick) ntawm usb rau uart Converter rau koj lub khoos phis tawj raws li qhia hauv daim duab.

1.2. Qhib qhov haujlwm kom nyem HEX. cov ntaub ntawv '. Piv txwv li, gcUploader (hauv qhov txuas), xaiv qhov chaw nres nkoj uas koj muaj Arduino Pro Mini.

1.3. Hauv qhov haujlwm, xaiv hom Arduino: Arduino Pro Mini.

1.4. Luag tus mpu6050-RED-mesh0 file.ino.hex rau qhov program thiab nyem rau ntawm lub cim rub tawm.

1.5. TEST. Hauv Windows, qhib Game controller Settings. Thaum tilting MPU6050, x, Y thiab Z axis ntawm thawj qhov kev ua si tswj yuav tsum txav mus!

Nrog koj zoo siab, peb tau ua wireless joysticks nrog cov lus tsa suab!

Txhawm rau nyem SECOND joystick, rov ua cov kauj ruam 1.1-1.5

Koj tuaj yeem ua si me ntsis, thiab pib tsim rooj plaub!

Kauj Ruam 6: Kev Tsim Lub Cev

Image
Image
Kev Tsim Lub Cev!
Kev Tsim Lub Cev!

Kev tsim lub cev

1.1. Nco ntsoov tias koj muaj lub tshuab luam ntawv 3D, lossis phooj ywg nrog lub tshuab luam ntawv 3D =)

1.2. Siv cov yas ntawm ob xim: dub thiab pob tshab!

1.3. Siv cov qauv los luam nrog cov polymer dub: main-front. STL, front. STL, back.stl

1.4. Kev siv tus qauv rau kev luam ntawv nrog cov pob tshab polymer: pob tshab. STL

1.5. Sau cov ntsiab lus zoo li hauv daim vis dis aus!

1.5.1. Hauv qhov "tseem ceeb-pem hauv ntej" ntu, laum ib lub qhov nyob hauv qhov chaw uas cov xov hlau los ntawm WS2812 raug thawb los ntawm nws mus rau hauv lub cev.

1.5.2. Nruab nrab ntawm cov pob tshab thiab ib feem nyob hauv tsev, ntxig rau Ws2812b lub nplhaib, rub cov xov hlau rau hauv qhov chaw nyob. Saib video.

1.5.3. Ntawm M3 ntsia liaj qhov rooj txhawm rau txhawm rau txhawm rau txhim kho tooj dag. Saib video.

Tam sim no koj yuav tsum tau caj npab koj tus kheej nrog rab yaj phom thiab ntaub ntawv

2.1. Kua nplaum.

2.2. Kuaj lub roj teeb.

2.3. Kua nplaum MPU6050 nyob ib puag ncig rau lub cev, ntu SMD hais qhia rau tus tuav lub roj teeb. Saib video.

2.4. Muab cov xaim hluav taws xob los ntawm WS212b lub nplhaib rau Arduino tus pin raws li tau hais tseg hauv daim duab qhia chaw hauv kauj ruam 2.

2.4.1. TEST. Qhib lub joystick, lub nplhaib ntawm thawj tus joystick yuav tsum ci xiav, qhov thib ob yuav tsum yog xim liab. Nws yuav tsum saib txias!

2.5. Kaw cov seem uas seem, ua tib zoo tso cov xov hlau.

2.6. Kaw lub hau thiab khawm nws nrog M3 ntsia liaj qhov rooj mus rau qhov tooj dag sawv ntsug.

2.7. Ntxig ib txoj hlua roj hmab nrog cov carabiners rau hauv qhov zawj ntawm lub hau kom cov joystick tuaj yeem txuas rau nws tus kheej

Cov ntaub ntawv rau tus txais kuv siv tus qauv loj 35x55x12

Tam sim no qhov kev lom zem! Yuav tshawb xyuas kev ua haujlwm hauv kev ua si! - KAUJ RUAM NQE

Kauj ruam 7: Game

Unzip cov ntaub ntawv, txuas tus txais, qhib lub joysticks thiab pib qhov kev ua si.

Zoo siab gaming!

Pom zoo: