Cov txheej txheem:

Hall Effect USB Joystick: 7 Kauj Ruam (nrog Duab)
Hall Effect USB Joystick: 7 Kauj Ruam (nrog Duab)

Video: Hall Effect USB Joystick: 7 Kauj Ruam (nrog Duab)

Video: Hall Effect USB Joystick: 7 Kauj Ruam (nrog Duab)
Video: Night 2024, Kaum ib hlis
Anonim
Hall Effect USB Joystick
Hall Effect USB Joystick

Cov lus qhia no qhia yuav ua li cas siv Kev Lag Luam Hall Effect joystick los ua kom muaj kev saib xyuas siab USB joystick.

Muaj lwm qhov cuam tshuam qhia qhia me me USB Joystick uas tuaj yeem muab kev daws teeb meem qis;>

Kauj Ruam 1: Vim li cas Hall Effect Sensors?

Ib qho USB joystick ib txwm siv 2 lub zog ntsuas ua lub cim ntawm X-axis thiab Y-axis.

Muaj qee qhov kev txwv ntawm potentiometer:

  • tsis nkag siab txaus ntawm kev txav me me (kev hloov pauv me me)
  • kev sib cuag ntawm lub cev hauv lub ntsuas tau yooj yim hnav (lub neej luv)
  • qhov hnav tawm hauv thaj chaw ib nrab ua rau lub zog txav rov qab tsis yog tus nqi (rov qab tsis raug tus nqi)

Hauv kev sib piv, Hall effect sensor tsis muaj kev sib cuag hauv ib feem ntawm lub sensor, yog li tsis yooj yim hnav thiab muab tus nqi kom raug tas mus li.

Kauj ruam 2: Kev npaj

Kev npaj
Kev npaj
Kev npaj
Kev npaj
Kev npaj
Kev npaj

Arduino Pro Micro Cov

Nov yog qhov tshwj xeeb ntawm Arduino uas tuaj yeem ua raws li USB HID joystick.

Hall effect joystick

Hall effect joystick muaj ntau yam sib txawv. Txhawm rau kom sib haum nrog Arduino, nws yuav tsum tau siv hluav taws xob los ntawm 5V thiab tso tawm 2-axis analog qhov tseem ceeb hauv qhov ntau hauv 0-5V.

Lwm tus

Ib daim ntawv me me rau kev sib txuas tau yooj yim dua, plaub 20 mm M3 screws thiab peb 20 mm dav Velcro strips rau sib dhos.

Kauj Ruam 3: 3D Luam Qhov Chaw

3D Luam Tshooj
3D Luam Tshooj

Rub tawm thiab luam tawm cov ntaub ntawv ntu ntawm thingiverse:

www.thingiverse.com/thing:4556815

Kauj ruam 4: Kev sib txuas

Kev sib txuas
Kev sib txuas

Txuas Arduino Pro Micro ntawm lub khob cij me me thiab txuas nrog Hall Effect joystick.

Nov yog cov ntsiab lus sib txuas:

Hall Effect Joystick -> Arduino Pro Micro

5V -> Vcc GND -> GND X -> A1 (19) Y -> A0 (18)

Kauj Ruam 5: Txoj Haujlwm

  1. Rub tawm thiab teeb tsa Arduino IDE yog tias tseem tsis tau:
  2. Rub tawm USBJoyStick qhov chaws:
  3. Txuas Hall Effect USB Joystick rau lub khoos phis tawj
  4. Qhib USBJoyStick.ino hauv Arduino IDE
  5. Xaiv Cov cuab yeej ntawv qhia zaub mov -> Pawg -> Arduino Leonardo
  6. Nias Upload khawm
  7. Txheeb xyuas cov khoom siv txuas ua USB HID Joystick (rau Windows koj tuaj yeem tshawb xyuas ntawm Tus Thawj Tswj Ntaus Ntawv lossis Tswj Vaj Huam Sib Luag -> Tshuab Luam Ntawv & tshuab luam ntawv)

Kauj Ruam 6: Sib dhos

Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke
Los ua ke
  1. Khaws lub khob cij me me rau hauv rooj plaub
  2. Muab tus joystick tso rau hauv
  3. Sib dhos cov rooj plaub
  4. Ntsia

Kauj ruam 7: Gallery

Pom zoo: