Cov txheej txheem:

Arduino MIDI maub los DIY: 8 Cov Kauj Ruam
Arduino MIDI maub los DIY: 8 Cov Kauj Ruam

Video: Arduino MIDI maub los DIY: 8 Cov Kauj Ruam

Video: Arduino MIDI maub los DIY: 8 Cov Kauj Ruam
Video: Coding a DIY MIDI Controller From Start to Finish (edited version) 2024, Hlis ntuj nqeg
Anonim
Image
Image
Dab tsi yog MIDI Controller
Dab tsi yog MIDI Controller

Hav guys! Kuv vam tias koj twb nyiam kuv cov lus qhia yav dhau los "Arduino CNC Plotter (lub tshuab kos duab me)" thiab koj tau npaj rau qhov tshiab, ib txwm kuv tau ua qhov kev qhia no los qhia koj ib qib zuj zus thaum ua qhov no zoo kawg nkaus uas yog "Midi Controller".

Thaum ua qhov haujlwm no, peb tau sim ua kom ntseeg tau tias phau ntawv qhia no yuav yog cov lus qhia zoo tshaj plaws rau koj txhawm rau pab koj yog tias koj xav ua koj tus kheej MIDI maub los, yog li peb cia siab tias cov ntawv qhia no muaj cov ntaub ntawv xav tau.

Txoj haujlwm no ua tau yooj yim los ua tshwj xeeb tom qab tau txais PCB tshwj xeeb uas peb tau xaj los ntawm JLCPCB txhawm rau txhim kho qhov pom ntawm peb lub tshuab thiab tseem muaj cov ntaub ntawv txaus thiab cov lej hauv phau ntawv qhia no tso cai rau koj tsim koj li midi maub los yooj yim.

Peb tau ua txoj haujlwm no tsuas yog 3 hnub nkaus xwb, tsuas yog peb hnub kom tau txais txhua qhov uas xav tau thiab ua kom tiav cov cuab yeej tsim khoom thiab sib sau ua ke, tom qab ntawd peb tau npaj cov cai kom haum rau peb tes num. Ua ntej pib cia saib ua ntej

Koj yuav kawm dab tsi los ntawm cov lus qhia no:

  1. Ua qhov kev xaiv kho vajtse raug rau koj txoj haujlwm nyob ntawm nws txoj haujlwm.
  2. Npaj daim duab kab hluav taws xob txuas rau txhua qhov khoom siv uas tau xaiv.
  3. Sib sau ua ke txhua qhov haujlwm (cov khoom siv hluav taws xob thiab hluav taws xob sib dhos).
  4. Teeb lub software tsim nyog rau midi maub los.
  5. pib koj tus kheej MIDI zaub.

Kauj Ruam 1: Tus MIDI Controller yog dab tsi

Dab tsi yog MIDI Controller
Dab tsi yog MIDI Controller

Kuv tau tshawb nrhiav cov twj paj nruag no lossis cov cuab yeej siv suab paj nruag thiab kuv pom qee cov ntsiab lus hais txog nws hla hauv is taws nem hais txog kev piav qhia hauv Wikipedia "yog tus txheej txheem txuj ci uas piav qhia txog kev sib txuas lus raws cai, digital interface, thiab cov txuas hluav taws xob uas txuas ntau yam ntawm cov cuab yeej siv suab paj nruag hluav taws xob, khoos phis tawj, thiab cov cuab yeej siv suab cuam tshuam rau kev ua si, kho thiab kaw suab paj nruag."

Ib qho ntxiv, cov cuab yeej siv suab paj nruag no yog ua raws ob ntu tseem ceeb uas yog tus tswj hwm xws li kho vajtse thiab cov cuab yeej siv suab paj nruag ua software thiab cov ntu no yuav tsum tau txuas nrog li cas yog li txhua qhov nias ntawm ntu kho vajtse yuav tsum tso saib tshwj xeeb lossis teeb tsa suab paj nruas ntsuas ntawv.

Kauj Ruam 2: Qhov Kho Vajtse

Cov Khoom Kho Vajtse
Cov Khoom Kho Vajtse
Cov Khoom Kho Vajtse
Cov Khoom Kho Vajtse
Cov Khoom Kho Vajtse
Cov Khoom Kho Vajtse

Hauv qhov kev qhia no peb yuav ua tus saib xyuas cov khoom siv khoos phis tawj thiab peb yuav tsim Tus Tswj Cov keyboard uas muaj 12 lub laub khawm rau kev tswj hwm digital thiab 6 lub zog ntsuas rau kev ntsuas sib piv yog li nws pom tseeb tias txhua lub nyees khawm yuav siv los tso saib cov ntawv thiab potentiometers yuav tswj tej yam xws li lub suab ntim suab thiab lwm yam.

Peb muaj txhua tus tswj hwm txuas nrog Arduino Nano board uas muaj txhua qhov tsim nyog I/O pins los tuav cov tswv yim no ua ke, thiab los ntawm nws lub USB txuas nws yuav yooj yim xa cov lus qhia los ntawm tus tswj mus rau software sab, los ntawm txoj kev kuv Kuv tau xaiv kuv tus kheej Arduino nano los ntawm seeedstudio.com webstore qhov twg koj tuaj yeem tau txais Arduino no thiab ntau lwm yam khoom siv hluav taws xob nrog qee qhov tshwj xeeb muab, thiab kuv pom zoo lub vev xaib no ua tus muag khoom, yog li mus rau ntawd thiab tshawb xyuas nws muaj ntau yam khoom txias muaj.

Kom paub tseeb txhawm rau ua kom pom qhov zoo dua rau peb cov MIDI maub los, kuv tau tsim lub npov no txiav txim siab qhov loj me rau lub laub nyees khawm thiab lub zog loj thiab dhau los ntawm CNC laser txiav txheej txheem Kuv tuaj yeem tsim cov khoom tsim rau kuv txoj haujlwm.

Kauj Ruam 3: Daim duab Circuit Court

Daim duab Circuit Court
Daim duab Circuit Court

Lub plawv ntawm peb Tus Tswj Xyuas yog arduino Nano Dev board uas yuav tswj hwm software ib feem los ntawm qee cov lus qhia MIDI, cov lus qhia no yuav raug xa mus raws li cov lus nkag. Raws li kuv tau sau hauv kab lus piav qhia qhov haujlwm, peb yuav siv 12 lub pob khawm thawb thiab 6 lub zog loj, txhua qhov no yuav txuas nrog Arduino txiav txim siab qhov muaj txiaj ntsig ntawm txhua tus tswj.

Cov duab kab lus saum toj no qhia yuav ua li cas txuas txhua tus tswj hwm mus rau lub rooj tsavxwm thiab muaj qhov xav tau 1KOhm resistor tawm rau rub tawm yog li tsis txhob hnov qab siv ib qho, thiab kuv qhia koj kom rov qab mus rau qhov txheej txheem no thaum siv tag nrho cov khoom no ua ke tsis txhob muaj qhov tsis raug.

Kauj Ruam 4: Kev Tsim PCB

Kev tsim PCB
Kev tsim PCB
Kev tsim PCB
Kev tsim PCB
Kev tsim PCB
Kev tsim PCB
Kev tsim PCB
Kev tsim PCB

Txog JLCPCB

JLCPCB (Shenzhen JIALICHUANG Electronic Technology Development Co., Ltd.), yog lub tuam txhab PCB loj tshaj plaws hauv Suav teb thiab cov tuam txhab tsim khoom lag luam tshwj xeeb tshwj xeeb hauv PCB sai sai thiab tsim PCB me me. Nrog ntau dua 10 xyoo ntawm kev paub hauv PCB tsim khoom, JLCPCB muaj ntau dua 200, 000 tus neeg siv khoom nyob hauv tsev thiab txawv teb chaws, nrog ntau dua 8, 000 kev xaj online ntawm PCB tus qauv thiab muaj PCB ntau lawm ib hnub. Muaj peev xwm tsim khoom txhua xyoo yog 200, 000 sq.m. rau ntau yam ntawm 1-txheej, 2-txheej lossis ntau txheej PCBs. JLC yog cov kws tshaj lij PCB chaw tsim khoom tshwj xeeb ntawm cov nplai loj, cov cuab yeej zoo, kev tswj nruj thiab ua tau zoo dua.

Tham electronics

Tom qab ua daim duab hluav taws xob kuv hloov nws mus rau hauv PCB tsim los tsim nws, txhawm rau tsim cov PCB, Kuv tau xaiv JLCPCB cov khoom lag luam PCB zoo tshaj plaws thiab cov kws muab khoom PCB pheej yig tshaj kom xaj kuv cov khoom siv hluav taws xob. nrog lawv txhim khu kev qha txhua yam uas kuv yuav tsum tau ua yog qee qhov nyem yooj yim kom rub cov ntaub ntawv gerber thiab teeb tsa qee qhov tsis xws li PCB tuab xim thiab ntau npaum li cas, tom qab ntawd kuv tau them nyiaj tsuas yog 2 daus las kom tau txais kuv li PCB tom qab tsib hnub nkaus xwb, qhov kuv tau pom txog JLCPCB lub sijhawm no yog "tsis them nyiaj PCB xim" nws txhais tau tias koj yuav them nyiaj tsuas yog 2 USD rau ib qho xim PCB koj xaiv.

Lwm yam ntaub ntawv rub tawm

Raws li koj tuaj yeem pom hauv cov duab saum toj no PCB tau tsim tau zoo heev thiab kuv tau txais tib PCB kev tsim qauv uas peb tau ua rau peb lub rooj tsavxwm tseem ceeb thiab txhua daim ntawv lo thiab lub logo nyob ntawd los coj kuv thaum lub sijhawm ua haujlwm soldering. Koj kuj tseem tuaj yeem rub tawm Gerber cov ntaub ntawv rau hauv Circuit no los ntawm rub tawm txuas hauv qab no hauv qhov xwm txheej koj xav tso qhov kev txiav txim rau tib lub qauv tsim.

Kauj ruam 5: Cov khoom xyaw

Cov khoom xyaw
Cov khoom xyaw

Tam sim no cia rov tshuaj xyuas cov khoom tsim nyog uas peb xav tau rau txoj haujlwm no, Kuv tab tom siv Arduino Nano raws li tau hais los saum no, nws yuav yog lub plawv ntawm peb Cov Khoom. Koj yuav pom hauv qab no qee qhov kev pom zoo amazon txuas rau cov khoom tsim nyog

Txhawm rau tsim cov haujlwm zoo li no peb yuav xav tau:

Components components Cov khoom tsim nyog ★ ☆ ★

- PCB uas peb tau xaj nws los ntawm JLCPCB

- Arduino Nano:

- 12 Arcade laub khawm:

- 4 Swb tus lej potentiometers:

- 2 lub zog potentiometers rotory:

- 1KOhm resistor:

- Qee lub ntsiab lus sib txuas:

Kauj Ruam 6: Kev Sib Ntsib Hauv Tshuab

Los Ua Ke Hauv Tshuab
Los Ua Ke Hauv Tshuab
Los Ua Ke Hauv Tshuab
Los Ua Ke Hauv Tshuab
Los Ua Ke Hauv Tshuab
Los Ua Ke Hauv Tshuab

Tam sim no txhua yam tau npaj lawm yog li cia peb pib siv peb cov khoom siv hluav taws xob rau PCB thiab ua li ntawd peb xav tau cov hlau txuas thiab cov hlau txuas hlau.

Kev nyab xeeb ua ntej

Soldering Hlau

  • Tsis txhob kov lub hauv paus ntawm cov hlau phom….400 ° C!
  • Tuav cov xov hlau kom sov nrog tweezers lossis clamps.
  • Khaws daim txhuam cev tu ntub thaum siv.
  • Ib txwm xa cov hlau txuas rau nws sawv thaum tsis siv. Tsis txhob muab nws tso rau ntawm lub rooj ua haujlwm.
  • Tua lub tsev thiab tshem tawm thaum tsis siv.

Raws li koj tuaj yeem pom, siv PCB no yooj yim heev vim nws ua tau zoo heev thiab tsis hnov qab cov ntawv uas yuav coj koj cov txiv neej thaum siv tshuaj txhuam ib feem vim tias koj yuav pom nyob rau sab saum toj txheej txheej lo lo lo ntxhuav ntawm txhua qhov qhia tias nws tso rau lub rooj tsavxwm thiab txoj hauv kev no koj yuav 100% paub tseeb tias koj yuav tsis ua ib qho yuam kev hlo li.

Kuv tau muab txhua qhov khoom sib dhos tso rau hauv nws qhov kev tso kawm thiab koj tuaj yeem siv ob sab ntawm PCB los txhuam koj cov khoom siv hluav taws xob.

Kauj ruam 7: Khoos phis tawj sib dhos

Khoos phis tawj sib dhos
Khoos phis tawj sib dhos
Khoos phis tawj sib dhos
Khoos phis tawj sib dhos
Khoos phis tawj sib dhos
Khoos phis tawj sib dhos

Tam sim no peb muaj PCB npaj thiab tag nrho cov khoom siv sib txuas tau zoo heev, Tam sim no peb yuav tsum tso lub laub khawm txhua tus rau nws qhov kev tso rau sab saum toj ntawm hneev, nws yuav yooj yim dua tso cov nyees khawm no. Tom qab ntawd peb ntsia cov slider potentiometers thiab zoo ib yam rau cov potentiometers teb ib yam nkaus, thiab tsis txhob hnov qab muab cov potentiometers cavers thiaj li siv lub ntsiab lus yuav yooj yim rau koj.

Tom qab ntawd peb yuav tsum tau txuas qee cov xov hlau txhawm rau txhawm rau txuas cov tswj no mus rau lub rooj tsavxwm. Yog tias koj ntsib teeb meem thaum siv cov xov hlau no, tsuas yog rov qab mus rau daim duab qhia chaw uas nws tau pom meej tias yuav tso cov xov hlau no li cas, Nws tsis nyuaj npaum li cas yog tias koj ua raws tib daim duab qhia chaw, koj yuav muaj qhov kawg cov laub khawm cov xov hluav taws xob tsuas yog ntsia hlau rau lawv lub taub hau txuas ntawm lub rooj tsavxwm thiab ua tib yam rau cov potentiometers, kawg tab sis tsis muaj tsawg kawg peb coj qis hauv qab ntawm peb lub thawv thiab peb ntsia hlau PCB hauv nws.

Ua li ntawd tom qab muab lub rooj tsavxwm tso rau hauv nws txhua qhov peb yuav tsum tau ua tam sim no yog ua tiav lub rooj sib txoos ntawm lub thawv thiab peb ua tiav qhov kho vajtse ib feem.

Kauj Ruam 8: Software Tshooj

Software Tshooj
Software Tshooj
Software Tshooj
Software Tshooj
Software Tshooj
Software Tshooj

Cia peb txav mus rau ntu software, thawj qhov koj xav tau yog Arduino code uas muaj tag nrho cov tsev qiv ntawv midi rau Arduino yog li tsuas yog rub tawm nws dawb los ntawm qhov txuas hauv qab no thiab rub nws mus rau koj Arduino.

Txog tus kws kho suab paj nruag, kuv siv Ableton software, tab sis yuav ua li cas txuas cov software no mus rau Arduino cov lus qhia uas yuav xa los ntawm qhov chaw nres nkoj txuas! Nws yog qhov yooj yim txij li kuv siv loopMidi sotware los tsim Midi chaw nres nkoj uas peb Arduino txuas nrog, thiab lwm qhov software uas tsis muaj plaub hau-midiserial uas yuav tau txais cov lus qhia arduino thiab hloov cov ntsiab lus rau midi cov lus qhia thiab tom qab ntawd xa lawv mus rau Ableton.

Yog li thawj yam ua ntej peb khiav loop midi thiab peb tsim qhov chaw nres nkoj midi tshiab los ntawm muab nws lub npe tshiab.

Tom qab ntawd peb txav mus rau tsis muaj plaub hau-nruab nrab thiab peb xaiv qhov chaw nres nkoj com ntawm peb Arduino, thiab raws li koj pom ib zaug koj xaiv txoj cai com chaw nres nkoj Arduino pib xa cov lus txib, hauv lwm sab peb xaiv qhov chaw nres nkoj midi uas peb tau tsim, tom qab ntawd peb txav mus rau Ableton cov kev teeb tsa thiab raws li qhov peb nyiam peb qhib lub cuab yeej siv sab nraud.

Kauj ruam kawg yog teeb tsa tus tswj hwm lub luag haujlwm, los ntawm kev xaiv dab tsi txhua lub pob yuav tsum tswj, nws yooj yim heev, tsuas yog xaiv txoj haujlwm hauv Ableton thiab nias lub pob xav tau hauv koj tus tswj hwm thiab nws yuav raug teeb tsa.

Thiab thaum koj ua tiav qhov ntawd, koj tuaj yeem pib ua si nrog koj li MIDI tus tswj hwm tshiab.

Raws li koj tuaj yeem pom cov hais mav, txoj haujlwm no yooj yim ua thiab zoo kawg tab sis tseem muaj lwm qhov kev txhim kho los ua kom nws ntau dua butter, yog vim li cas kuv yuav tos koj cov lus qhia txhawm rau txhim kho MIDI maub los no.

Pom zoo: