Cov txheej txheem:

Hloov kho L-tek Dance Pad rau Poll ntawm 1000hz ntawm Windows thiab Linux: 9 Kauj Ruam
Hloov kho L-tek Dance Pad rau Poll ntawm 1000hz ntawm Windows thiab Linux: 9 Kauj Ruam

Video: Hloov kho L-tek Dance Pad rau Poll ntawm 1000hz ntawm Windows thiab Linux: 9 Kauj Ruam

Video: Hloov kho L-tek Dance Pad rau Poll ntawm 1000hz ntawm Windows thiab Linux: 9 Kauj Ruam
Video: НАСТОЯЩЕЕ ГРУЗИНСКОЕ ЧАХОХБИЛИ ИЗ КУРИЦЫ!!! КАК ПРИГОТОВИТЬ? РЕЦЕПТ ПРОСТОЙ 2024, Kaum ib hlis
Anonim
Hloov kho L-tek Dance Pad rau Poll ntawm 1000hz ntawm Windows thiab Linux
Hloov kho L-tek Dance Pad rau Poll ntawm 1000hz ntawm Windows thiab Linux
Hloov kho L-tek Dance Pad rau Poll ntawm 1000hz ntawm Windows thiab Linux
Hloov kho L-tek Dance Pad rau Poll ntawm 1000hz ntawm Windows thiab Linux

Vim li cas thiaj ua qhov mod no?

Yog tias koj tau dhau mus rau ntawm kab ntawv ntawm 125 BPM nkauj, koj yuav xav tsis thoob, dab tsi txog qhov spikey boi no? Vim li cas lub sijhawm poob rau hauv "qhov" qhov tsis sib xws?

ITG thiab DDR muaj lub sijhawm kaw qhov rai tsis txaus ntseeg, thiab nrog qhov ntsuas 8ms/125Hz, peb yuav tau txais Qhov Zoo Tshaj uas yuav tsum yog Fantastics, thiab Greats uas yuav tsum tau zoo tshaj plaws. Qhov kev ua si no twb nyuaj txaus, yog tias koj xav tau lub ncoo tuav koj rov qab koj yuav tau yuav lub ncoo mos!

Peb yuav kho qhov no li cas?

Lub ltek ncoo tsis tuaj yeem pov npav ntawm 1000hz ntawm nws tus kheej. Txoj hauv kev USB 3.0 tab tom siv zog xaiv qhov kev txiav txim siab ntawm qib kho vajtse. Txawm tias hloov kho qhov kev xaiv tsa hauv linux kernel a-la "usbhid.jspoll =" yuav tsis cuam tshuam rau Ltek.

Tsis muaj kev cai tsav tsheb lossis firmware uas ua rau nws, thiab tej zaum yuav tsis muaj. Yog li, peb yuav tsum hloov kho vajtse.

Khoom siv:

Cov txuj ci yuav tsum tau:

  • Kev xyaum siv cov khoom siv dag zog (qhov no yog kuv lub sijhawm thib 5)
  • 4-6 teev

Cov Cuab Yeej:

  • Ib lub computer
  • Soldering hlau
  • Soldering hlau taub ntxhua khaub ncaws
  • Cov hlua hlau
  • Phillips thiab Flathead Screwdriver
  • Tshav Kub Kub lossis Lig

Qhov:

  • Arduino Micro* Cov
  • Hlau xaim
  • Thaum tshav kub kub ntsws tubing
  • Solder
  • Dej ntws
  • Daim Kab Xev Hluav Taws Xob
  • Silicone sealant (hluav taws xob nyab xeeb)
  • Ib lub micro USB cable (txhua qhov ntev, nws yuav raug fij. Siv tus uas koj tso koj daim duab Arduino nrog)

*Arduino Micro: tuaj yeem hloov pauv rau ib qho clone, tab sis yuav tsum yog Leonardo **-sib xws micro (tsis yog mini lossis nano).

** Tus qauv Leonardo yuav tsis haum hauv L-tek. Nws yuav xav tau 3D-luam ntawv lub thawv tswj, thiab thaiv cov khoom siv kev cai. Lub thawv tswj ntawd tuaj yeem suav nrog pib+hloov pauv lossis tseem nqes mus rau lub vaj huam sib luag rau nkauj/xaiv xaiv. Yog tias koj xav nthuav rau qhov ntawd yav tom ntej thov DM kuv (tiv tauj cov ntaub ntawv hauv qab), Kuv yuav ntxiv rau hauv!

Kauj ruam 1: Nruab Arduino IDE

Nruab Arduino IDE
Nruab Arduino IDE
Nruab Arduino IDE
Nruab Arduino IDE
Nruab Arduino IDE
Nruab Arduino IDE

Rub tawm Arduino IDE los ntawm

Yog tias koj siv Windows, ua raws cov theem hauv qab no.

Yog tias koj siv Linux, phau ntawv qhia ntawm https://www.instructables.com/id/Install-Arduino-… yuav pab tau.

(Windows) Tawm "Nruab USB Driver" kos. Tus so yuav raug txheeb xyuas yog tias koj thov.

(Windows) Nyem "Nruab" los ntawm cov lus qhia

(Txhua) Rub kuv tus lej Arduino ntawm https://github.com/StarlightLumi/DanceCtl Ua raws cov lus qhia ntawm nplooj ntawv ntawd, tom qab ntawv txuas mus ntxiv hauv qab no.

Kauj Ruam 2: Tshaj Tawm Daim Duab Sketch rau Koj Arduino Micro

Tshaj tawm Daim Duab Sketch rau Koj Arduino Micro
Tshaj tawm Daim Duab Sketch rau Koj Arduino Micro
Tshaj tawm Daim Duab Sketch rau Koj Arduino Micro
Tshaj tawm Daim Duab Sketch rau Koj Arduino Micro
Tshaj tawm Daim Duab Sketch rau Koj Arduino Micro
Tshaj tawm Daim Duab Sketch rau Koj Arduino Micro
  • Qhib nws, nyem "OK"
  • Txuas koj Arduino Micro rau hauv koj lub PC. Xaiv koj lub rooj tsav xwm ua "Arduino Micro".
  • Xaiv lub rooj tsavxwm hauv qab "chaw nres nkoj". Kuv Micro tau txheeb pom tias yog Leonardo, tab sis qhov tsis ua li cas, tus lej tseem ua haujlwm!
  • Tom qab ntawd nias CTRL+U ntawm koj cov keyboard los ua ke thiab rub tawm. Thaum qhov upload tiav, koj tuaj yeem tshem koj lub Arduino.

Kauj Ruam 3: Solder Wires rau Arduino

Solder Wires rau Arduino
Solder Wires rau Arduino

Thawj zaug soldering? Saib daim vis dis aus no!

Soldering:

  1. Sau qee cov xov hlau nyias, ntev li 3-4in.
  2. Siv tus pas txhuam hniav, dab me ntsis ntws mus rau tus pin 4
  3. Poke cov xim xaim hla 4-qhov
  4. Muab lub lauj kaub tso rau ntawm 4-qhov kom txog thaum nws npog tag nrho ib ncig ntawm cov hlau. Kuv soldered los hauv qab.
  5. Rov ua cov kauj ruam 2-5, ua kom raug rau lwm tus pin, thiab xaim av.

Kuv tus lej siv tus pin 4-9. Txij li thaum kuv fucked tus laug ntawm tus pin 6, kuv lub ncoo yuav siv tus pin 5, 7, 8, 9 rau 4 lub vaj huam sib luag. Yog tias koj tsis muaj tus pin 4-9 muaj, hloov 4, 5, 6, 7, 8, thiab 9 hauv kab kab ntawv no los cuam tshuam cov pins koj tau muab tso rau, thiab rov xa daim duab dua. Txawm hais tias koj tsuas yog siv 4 ntawm tus pin, nco ntsoov sau 6 ntawm lawv lossis txoj haujlwm yuav tawg.

static const int buttonPins [NBUTTONS] = {4, 5, 6, 7, 8, 9};

Nco ntsoov txhawm rau txhawm rau txhawm rau txuas hauv av!

Kauj Ruam 4: Sau Koj Cov Cuab Yeej thiab Qhib Ltek

Sau koj li cuab yeej thiab Qhib Ltek
Sau koj li cuab yeej thiab Qhib Ltek
Sau koj li cuab yeej thiab Qhib Ltek
Sau koj li cuab yeej thiab Qhib Ltek
Sau koj li cuab yeej thiab Qhib Ltek
Sau koj li cuab yeej thiab Qhib Ltek

Tom ntej no, sau koj cov cuab yeej thiab Ltek.

Tshem cov yas thiab ntawv los npog rau ntawm lub vaj huam sib luag uas nyob ib sab ntawm USB chaw nres nkoj. Kuv xaj kuv li thaum lub sijhawm muaj kev sib kis, yog li muaj qhov xav tau loj. Lawv pheej yig tawm ntawm USB xov hlau thiab cov kab hauv av tsis muaj dab tsi. Peb yuav cia li yob nrog lawv cov txheej txheem.

Kauj Ruam 5: Txiav cov hlua thiab Pry lub Rooj Tswjhwm Saib Qub Tawm

Txiav cov xov thiab Pry lub Rooj Tswjhwm Saib Qub Tawm
Txiav cov xov thiab Pry lub Rooj Tswjhwm Saib Qub Tawm
Txiav cov xov thiab Pry lub Rooj Tswjhwm Saib Qub Tawm
Txiav cov xov thiab Pry lub Rooj Tswjhwm Saib Qub Tawm
Txiav cov xov thiab Pry lub Rooj Tswjhwm Saib Qub Tawm
Txiav cov xov thiab Pry lub Rooj Tswjhwm Saib Qub Tawm
Txiav cov xov thiab Pry lub Rooj Tswjhwm Saib Qub Tawm
Txiav cov xov thiab Pry lub Rooj Tswjhwm Saib Qub Tawm

Siv Txiab, ntsais 4 USB xov hlau kom ze rau ntawm lub rooj tsavxwm li sai tau. Txhua lub hli koj tuaj yeem txuag tau yuav ua rau cov kauj ruam tom ntej yooj yim dua.

Nthuav cov PCB* tawm nrog lub taub hau ntswj ntsia hlau rau ntawm ntug sab saum toj, raws li qhia hauv daim duab 3. ceeb toom: tseg lub rooj tsavxwm no nyob qhov twg. * Yog tias nws tau tawg, ua tib zoo saib xyuas nrog cov kauj ruam tom ntej, tsis muaj qhov rov qab los.

Nqa lub rooj tsavxwm thiab ntsais cov xov dub nyob ze rau ntawm lub rooj tsavxwm li sai tau. Daim ntawv ceeb toom 4 cov xov hlau hauv av tag nrho tau muab sib dhos ua ke? Lawv muaj kab txaij liab rau lawv.

Kauj Ruam 6: Siv Cov Hluav Taws Xob

Solder Cov Xov
Solder Cov Xov

Muab 4 lub xov hlau dub txuas rau 4 lub xov hlau uas koj tau siv rau Arduino ua ntej. Kuv tsis yog tus kws tshaj lij, tab sis ntawm no yog kuv cov kauj ruam:

  1. Muab cov cua sov tso rau ntawm ob qho kawg (lossis tsawg kawg ib kawg)
  2. Twist xov hlau ua ke hauv Y
  3. Dip lub xaim liab qab hauv flux
  4. Tuav lub lauj kaub rau nws
  5. Siv qhov sib zog, hlawv cov cua kub ntsws
  6. Hlau lawv nyob rau hauv ib qho kev txiav txim, peb tuaj yeem txhim kho txoj hlua khi hauv Stepmania tom qab.

Rau cov xov hlau hauv av,

  1. Muab cov cua sov loj tso rau hauv av xaim los ntawm koj cov arduino
  2. Twist tag nrho 5 ntawm lawv ua ke
  3. Dip lub liab qab hlau nyob rau hauv flux
  4. Tuav lub lauj kaub rau nws
  5. Siv qhov sib zog, hlawv cov cua kub ntsws

Ib tus kws tshaj lij tiag tiag yuav tsum tau siv yam tsawg "I" sib koom ua ke ntawm kuv "Y" sib koom, thiab rab phom cua sov tsis txhob sib zog.

Kauj Ruam 7: Siv USB

Solder lub USB
Solder lub USB
Solder lub USB
Solder lub USB

Tom ntej no koj yuav tsum txiav koj lub USB cable. Tawm tsawg kawg 6 ntiv tes ntawm qhov ua kom qeeb.

Soj cov tub ntxhais dub sab nraud loj, thiab tom qab ntawd hle 4 cov xov hlau. Yog tias koj muaj tus ntsuas ntsuas txuas mus ntxiv, ntsuas qhov txuas txuas ntawm 4 USB tus pin rau cov xaim hluav taws xob. Yog tias koj tsis ua, daim duab thib ob qhia pom tias cov xaim xaim xaim li cas.

Rov ua dua cov txheej txheem soldering yav dhau los rau tag nrho 4 tus pin.

Kauj Ruam 8: Kuaj thiab Foob

Kuaj thiab Foob
Kuaj thiab Foob
Kuaj thiab Foob
Kuaj thiab Foob

Tom ntej no, txuas lub USB cable rau koj lub tshuab Stepmania los ntsuas nws. Koj yuav tsum pom qee lub teeb ntsais ntsais. Mus rau hauv Stepmania, thiab teeb tsa cov tswv yim. Yog tias txhua 4 teeb tsa ua tiav, zoo! Mus txuas ntxiv.

  • Yog tias lub teeb tsis tuaj, tshawb xyuas USB chaw nres nkoj thiab ntsaws. Ib qho ntawm cov kab hluav taws xob tsis ua haujlwm
  • Yog tias koj lub PC tsis paub txog Arduino, txheeb xyuas USB cov kab ntawv kab.
  • Yog tias ib qho ntawm koj cov nyees khawm tsis pom, txheeb xyuas cov arduino, xaim, thiab sib koom ua ke
  • Yog tias tsis muaj koj cov nyees khawm raug tshawb pom, tshawb xyuas lub system kom paub tseeb tias nws tau kuaj xyuas tus tswj txhua.

    • Hauv qhov rais, qhib "Teeb USB Game Controllers" los ntawm Control Panel.
    • Yog tias nws tau teev nyob ntawd, tom qab ntawd xyuas koj cov kev sib txuas hauv av

      • Yog tias nws tsis tau teev tseg, rov ua cov kauj ruam 2, thiab google txhua qhov yuam kev uas koj ntsib. (Lawv yuav tshwm nyob rau hauv cov txiv kab ntxwv hauv qab cov zis tam sim ntawd)
      • Yog tias koj daim duab tsis xa mus, nws yuav yog vim muaj kab mob USB tsis zoo, Kuv muaj 1/12 tus lej ua tiav nrog kuv cov khoom siv txuas.
  • Yog tias ib qho ntawm koj cov nyees khawm tau ON, sim xoob cov ntsia hlau ib lub hlis twg.

Yog tias koj tseem muaj teeb meem, tshawb xyuas cov lus dhau los ua ntej tshaj tawm koj tus kheej.

Thaum koj tau txheeb xyuas txhua yam ua haujlwm, nws yog lub sijhawm kaw txhua yam. Muab silicone tso rau txhua qhov ntawm koj cov xov hlau Arduino. Qhov no yuav ua rau lub zog hnyav thaum koj ua si, yog li koj xav muab cov laug txuas rau txhua lub sijhawm ntawm lub neej ntev.

Muab daim kab xev hluav taws xob tso rau saum kom txhua yam nyob hauv qhov. Kuv ntxiv 6 daim ntxiv tom qab daim duab no kom txhua lub xov hlau ruaj ntseg.

Lub sijhawm los tso cov panels rov qab. Ua maj mam ntswj rau hauv ntoo! Tsis txhob ntxeev, thiab tsis ntswj rau ntawm lub kaum sab xis. Yog tias koj ntsib kev tiv thaiv ntau dhau ua ntej cov ntsia hlau ntws tawm, thim rov qab thiab sim dua.

Kauj Ruam 9: Kuv puas tuaj yeem hu koj ua Dancin 'Masta?

Kuv puas tuaj yeem hu koj ua Dancin 'Masta?
Kuv puas tuaj yeem hu koj ua Dancin 'Masta?
Kuv puas tuaj yeem hu koj ua Dancin 'Masta?
Kuv puas tuaj yeem hu koj ua Dancin 'Masta?

Tsis yog L-tek board loj heev? Puas yuav siv cov ntaub qhwv lo rau sab xis kom siv? Nws yog mesmerizing rau kuv tias peb tuaj yeem ua tau zoo dua nrog Arduino.

Yog tias koj muaj lus nug lossis lus pom, thov hu rau kuv ntawm @LumiAFK ntawm twitter.

Qhov ntawd yog nws! Kuv puas tuaj yeem hu koj ua las voos masta?

Khab nias:

Martin Natano (rau phau ntawv qhia thawj)

Matthew Heironimus (rau Arduino Joystick Library)

Arduino.cc (rau Arduino Micro tsim, thiab ua txhua yam qhib qhov chaw)

Pom zoo: