Cov txheej txheem:

DoReMiQuencer - Programmable MIDI Sequencer Nrog Keyboard: 7 Kauj Ruam
DoReMiQuencer - Programmable MIDI Sequencer Nrog Keyboard: 7 Kauj Ruam

Video: DoReMiQuencer - Programmable MIDI Sequencer Nrog Keyboard: 7 Kauj Ruam

Video: DoReMiQuencer - Programmable MIDI Sequencer Nrog Keyboard: 7 Kauj Ruam
Video: Голубая стрела (1958) фильм 2024, Kaum ib hlis
Anonim
DoReMiQuencer - Programmable MIDI Sequencer Nrog Keyboard
DoReMiQuencer - Programmable MIDI Sequencer Nrog Keyboard

Cov cuab yeej no tau tsim los siv nrog VCVRack, lub tshuab hluav taws xob sib xyaw ua ke tsim los ntawm VCV, tab sis tuaj yeem ua lub hom phiaj dav dav MIDI maub los.

Nws ua haujlwm raws li MIDI cov lej lossis cov keyboard, nyob ntawm seb hom xaiv. MIDI cov ntawv sau tseg rau cov yuam sij yog Do, Re, Mi, Fa, Sol, La, Ti, Do ', yog li lub npe.

Nyob rau hauv cov theem ua ntu zus, nws tig los ntawm 16 cov ntawv sau tseg hauv ib qho 'ib leeg' lossis 'txuas ntxiv' hom, xaiv tau ntawm kev hloov.

Txhawm rau ua haujlwm ib ntu, lub cuab yeej yuav tsum tau hloov mus rau hauv 'cov ntaub ntawv' hom, qhov twg nias lub pob nyem sau ua ntu zus.

Tau kawg, lub cuab yeej tuaj yeem hloov kho kom haum rau koj cov kev xav tau thiab tau tsim nyob rau hauv txoj kev hloov pauv rau qhov laj thawj ntawd.

Nov yog kuv thawj Kev Qhia thiab tsim kev thuam thiab kev qhuas ncaj ncees tau txais txiaj ntsig zoo.

Kauj Ruam 1: Cov Khoom thiab Cov Cuab Yeej

Cov Ntaub Ntawv thiab Cov Cuab Yeej
Cov Ntaub Ntawv thiab Cov Cuab Yeej

Cheebtsam:

  • Arduino Nano Cov
  • 3-Txoj Haujlwm-Hloov *3
  • Khawm *10 (11 yog tias koj xav tau khawm rov pib dua)
  • 100k Resistor *10
  • SSD1306 Zaub
  • SN74HC165 Parallel-In-Serial-Out Shift Register
  • 16pin Qhov (yeem tab sis pom zoo)
  • Breadboard los yog PCB
  • Casing lossis Baseplate
  • Txiv neej thiab Poj Niam Pin Headers (xaiv tau)
  • LEDs thiab txuam resistors (yeem)

Cov Cuab Yeej:

  • Soldering Hlau
  • USB cable rau Arduino
  • Laptop lossis PC nrog Arduino IDE

Kauj ruam 2: Qauv: Keyboard

Cheebtsam:

  • Khawm *10
  • SSD1306 Zaub
  • Breadboard los yog PCB
  • 100k Resistor *10
  • Txiv neej Pin Headers (xaiv tau)

Mount 8 cov nyees khawm hauv kev teeb tsa uas koj pom lawv ua cov keyboard tsim nyog, Kuv pom zoo 1- lossis 2-kab teeb tsa.

Mount qhov seem 2 khawm uas koj xav kom koj tswj hwm BPM.

Mount cov zaub uas koj xav tau ntawm cov keyboard.

Solder cov resistors rau cov nyees khawm thiab txuas cov nyees khawm thiab tso saib raws li cov txheej txheem ib qho rau ib lub taub hau lossis ncaj qha rau cov npe hloov pauv thiab Arduino.

Kauj Ruam 3: Qauv: Tswj Vaj Huam Sib Luag

Cheebtsam:

  • 3-Txoj Haujlwm-Hloov *3
  • Breadboard los yog PCB
  • Khawm (yeem)
  • Txiv neej Pin Headers (xaiv tau)

Mount cov keyboards rau ntawm lub khob cij.

Optionally, koj tuaj yeem ntxiv khawm rov pib dua ntawm lub vaj huam sib luag ib yam.

Kev ntxiv ntxiv tuaj yeem yog cov xwm txheej LEDs txuas rau cov nyees khawm.

Txuas cov hloov pauv thiab cov khoom ntxiv raws li cov txheej txheem ib qho rau tus pin header lossis ncaj qha rau Arduino.

Xwb, cov tswj vaj huam sib luag tuaj yeem ua ke rau hauv cov keyboard.

Kauj Ruam 4: Qauv: Motherboard

Module: Cov niam txiv
Module: Cov niam txiv

Cheebtsam:

  • Arduino Nano Cov
  • SN74HC165 Hloov Chaw Sau Npe
  • 16pin DIP Qhov (xaiv tab sis pom zoo)
  • Breadboard los yog PCB
  • Poj Niam Pin Headers (xaiv tau)

Mount Arduino thiab hloov pauv npe lossis lub qhov (socket) ntawm lub rooj tsavxwm. Thaum siv lub qhov (socket), ntxig rau npe rau hauv lub qhov (socket).

Thaum siv tus pin headers los txuas cov qauv, nce cov poj niam lub taub hau ntawm lub rooj tsavxwm.

Muab cov khoom sib dhos ua ke raws li cov txheej txheem.

Kauj ruam 5: Code

Nruab qhov txuas txuas ntawm Arduino.

Txoj haujlwm rau cov khoom ntawm lub vijtsam nrog rau pinout thiab teeb tsa tau ua los ntawm #DEFINEs.

Qhov pib () txoj hauv kev tsuas yog pib cov pins thiab tso tawm nrog rau cov kab rau cov ntawv.

PrintBPM () txoj hauv kev ua haujlwm sau ntawv ntawm BPM rau lub vijtsam. Nws yog qhov tsim nyog txhawm rau ua kom muaj txiaj ntsig zoo thaum teeb tsa BPM, tso cai rau tus nqi hloov pauv sai uas tsis tas yuav siv ib lub pob nyem rau txhua tus BPM.

Txoj kev writeMIDI () txoj haujlwm ua haujlwm xa MIDI cov lus txib ntawm cov ntawv.

Lub voj () txoj hauv kev muaj cov 'sequencer' hom nrog rau 'keyboard' hom. Nws ua haujlwm lub luag haujlwm ntawm lub cuab yeej, tshuaj xyuas cov tswj vaj huam sib luag nkag los txiav txim seb hom twg los ua thiab nyeem cov ntawv hloov pauv kom tau txais cov keyboard nkag.

Hloov tus lej lossis cov ntawv yuav tsum tau ua, kev hloov kho rau txoj haujlwm ntawm lub vijtsam yuav tsim nyog.

Kauj ruam 6: Casing

Cheebtsam:

  • Casing lossis Baseplate
  • Sib dhos ntaus ntawv
  • Cheebtsam ntxiv nyob ntawm koj tsim, xws li cov ntsia hlau.

Mount lub cuab yeej rau hauv lub casing lossis ntawm lub hauv paus nyob ntawm koj tsim.

Kuv tau xaiv daim ntawv luam tawm 3D, uas tom qab kuv xav tau kho kom tuav tau lub cuab yeej.

Kauj ruam 7: Siv

Pab
Pab

Xaiv hom koj xav tau los ntawm kev siv cov hloov pauv ntawm lub vaj huam sib luag tswj.

Hauv hom keyboard, nias lub pob nrog daim ntawv koj xav ua si. Cov zaub yuav tsum qhia, uas tau ceeb toom tab tom ua si.

Hauv hom ua ntu zus, lub cuab yeej yuav khiav ntawm nws tus kheej thaum nyob hauv hom ua si.

Hauv 'cov ntaub ntawv' hom, koj tuaj yeem ua haujlwm ib qib zuj zus los ntawm kev nias cov nyees khawm ntawm cov keyboard.

Hauv 'ua si' hom, lub cuab yeej yuav xa cov ntawv ua si hla cov ntawv. Yog tias tib daim ntawv tau ua si thiab lub cuab yeej nyob hauv 'txuas ntxiv' hom, daim ntawv yuav tsis raug tso tseg thiab rov ua dua, txwv tsis pub sau ntawv yuav tsum nres thiab tom ntej yuav raug ntaus.

Pom zoo: