Cov txheej txheem:

Arduino Piano - Pentotron: 5 Kauj Ruam
Arduino Piano - Pentotron: 5 Kauj Ruam

Video: Arduino Piano - Pentotron: 5 Kauj Ruam

Video: Arduino Piano - Pentotron: 5 Kauj Ruam
Video: The 5 BEST ARDUINOS for Building a MIDI CONTROLLER 2024, Kaum ib hlis
Anonim
Arduino Piano - Pentotron
Arduino Piano - Pentotron

HI! Nov yog kuv thawj qhov kev qhia, kuv yuav ua kuv qhov zoo tshaj plaws los ua kom nws zoo. Kuv tsis yog ib tus neeg hais lus, yog li thov khaws ib qho yuam kev uas koj yuav pom.

Cov lus qhia no yuav qhia koj yuav tsim koj tus kheej arduino "piano" li cas. Nws ua si tsuas yog pentatonic nplai thiab yog li ntawd tsuas yog muaj 5 tus yuam sij. Yog tias koj tsis paub tias txhais li cas: Tsis txhob txhawj. Nws ib txwm yuav suab zoo thiab ua cov khoom ua si zoo heev. Koj tuaj yeem hloov tus yuam sij nrog lub pob qhov rooj (yog li koj tuaj yeem ua si hauv txhua tus yuam sij) thiab hloov pauv los ntawm qhov loj mus rau me me pentatonic nplai nrog kev pab ntawm qhov hloov pauv. Ntau tus yuam sij thiab hloov pauv ntawm no. Cia peb mus.

Nov yog qhov haujlwm yooj yim dua los ua. Koj yuav tsum:

  • 1 x Arduino Uno
  • 5x Hloov Momentary
  • 2x Rocker Hloov
  • 1x 1/4 nti guitar jack (lossis Piezo /8 ohms Hais Lus yog tias koj tsis xav tau lub tso zis)
  • 1 x Potentiometer
  • 1 x 9 v pin
  • 1x 9v Roj teeb Clip
  • ib qho hlau txuas los yog lub khob cij (thiab qhov ntawd qee qhov xov tooj cua dupont)
  • txhua yam tsev nyob
  • qee cov xov

Kauj ruam 1: Txuas txhua yam

Txuas Txhua Yam
Txuas Txhua Yam
Txuas Txhua Yam
Txuas Txhua Yam

Txuas txhua yam raws li schematic. Hloov tus neeg hais lus nyob rau sab saum toj sab xis nrog koj Piezo lossis koj lub guitar ntaus ntawv, yog tias koj xav paub yuav ua li cas xaim nws tau saib ntawm daim duab thib ob.

  • cov nyees khawm Pin 8-12
  • rocker hloov Pin 7
  • lub suab nkaus/hais lus/piezo Pin 2
  • potentiometer Analog Pin A0
  • 5v rau lub hwj chim
  • On/Off Hloov mus rau Vin
  • Av rau av

Kauj ruam 2: Hloov Txoj Cai

Cov "pitches" cov ntaub ntawv yuav tsum qhib cia thaum qhib nrog Arduino IDE, tab sis tsuas yog thaum kuv yuav muab nws ib yam nkaus.

Kauj ruam 3: Cov yuam sij

Yuam sij
Yuam sij
Yuam sij
Yuam sij
Yuam sij
Yuam sij

Tab sis ib yam uas siv sijhawm me ntsis los txiav txim siab yog tus yuam sij! Kuv yuav qhia seb kuv ua li cas

  • Kuv nce thaj tsam "cov yuam sij" nrog cov ntoo me me ntawm cov ntoo mus hla tag nrho qhov dav.
  • Tom qab ntawd kuv faib qhov dav ntawd mus rau tsib ntu sib npaug thiab txiav tawm qee cov yuam sij ntoo hauv qhov loj me.
  • Tom qab ntawd kuv cim qhov chaw uas cov nyees khawm yuav tsum mus. Lawv yuav tsum muab kev ruaj ntseg rau cov yuam sij thiab yooj yim nyem tau. Kuv tso lawv 2cm los ntawm sab xub ntiag thiab nyob nruab nrab ntawm cov yuam sij hauv qab cov yuam sij ntawd.
  • Tom qab muab lawv tso rau hauv qhov chaw kuv tau tsim lub choj ntoo me me uas hla hla cov hlua.
  • Cov yuam sij tau lo thiab tom qab ntawv txuas mus rau tus choj ntawd
  • Cov yuam sij yuav tsum tau so ntawm tus choj thiab cov nyees khawm

Kauj Ruam 4: Vaj Tsev

Vaj Tsev
Vaj Tsev
Vaj Tsev
Vaj Tsev
Vaj Tsev
Vaj Tsev

Vaj Tsev yog qhov nyuaj me ntsis. Koj tuaj yeem sim ib qho twg, kuv tau mus rau "Toypiano" - Style. Thiab vim tias kuv tsis muaj 3D Tshuab Luam Ntawv lossis nkag mus rau ib qho kuv tau xaiv ntoo raws li kuv mus rau cov khoom siv. Kuv xav tau chav rau lub suab tso, pob qhov rooj, hloov thiab nkag mus rau arduino USB- Chaw nres nkoj. Yog, qhov ntawd yog ib qho hloov tsawg dua li saum toj no! Kuv muaj peev xwm siv lub hwj chim ntsuas hluav taws xob nrog lub teeb hloov pauv, uas yog qhov kev daws teeb meem zoo rau kuv. Kuv lub pob qhov rooj tswj qhov tseem ceeb THIAB Hwj chim. Raws li qhov tsim tawm kuv muaj peev xwm rov ua dua ib feem qub los ntawm kev nqa khoom ntaus guitar. Txawm hais tias XLR-Output tau tawg nws tseem tuaj yeem siv tau. Thiab raws li kev ntxiv nyiaj ntxiv nws tuav lub roj teeb 9V! Koj lub tsev yuav luag zoo ib yam (thiab yuav luag zoo dua). Nws yog qhov yooj yim tsuas yog lub thawv ntoo uas tau tsim nyob ib puag ncig cov yuam sij thiab nrog kev hloov pauv thiab pob qhov rooj hauv siab.

  • Txiav tawm koj cov duab
  • Pib los ntawm hauv qab, siv tus yuam sij "bock"
  • thov sab thiab ruaj ntseg lawv nrog cov ntsia hlau
  • xaim tus so
  • txiav cov ntawv txiav rau koj cov nyees khawm thiab lub hwj chim
  • xeem txhua yam
  • nplaum txhua yam ua ke nrog cov nplaum

Kauj ruam 5: Muaj Kev Lom Zem

Muaj Kev Lom Zem!
Muaj Kev Lom Zem!

Plug rau hauv 9v Buttery, cable thiab ua si qee cov nkauj zoo. Lub Pentotron yuav ua suab paj nruag txais tos me ntsis- luag nyav rau lub hauv paus ntawm txoj cai. Kuv tau ntxiv me ntsis, tab sis kuv tau siv lub suab nkauj me me sai, kuv yuav tsum khaws nws nyob ntawd.

Muaj kev lom zem thiab ua tsaug! Nug cov lus nug uas koj yuav muaj. Kuv yog los ntawm lub teb chaws Yelemees, qhov ntawd yog cov lus hais hauv cov cai nyob hauv.

Nyob zoo!

Pom zoo: