Cov txheej txheem:

Handheld 6 Note Music Box / Instrument (Yooj Yim Ua & Txhim Kho!): 5 Cov Kauj Ruam (nrog Duab)
Handheld 6 Note Music Box / Instrument (Yooj Yim Ua & Txhim Kho!): 5 Cov Kauj Ruam (nrog Duab)

Video: Handheld 6 Note Music Box / Instrument (Yooj Yim Ua & Txhim Kho!): 5 Cov Kauj Ruam (nrog Duab)

Video: Handheld 6 Note Music Box / Instrument (Yooj Yim Ua & Txhim Kho!): 5 Cov Kauj Ruam (nrog Duab)
Video: Reuge 144 note Grand Cartel music box 2024, Kaum ib hlis
Anonim
Handheld 6 Note Music Box / Instrument (Yooj Yim Ua & Txhim Kho!)
Handheld 6 Note Music Box / Instrument (Yooj Yim Ua & Txhim Kho!)

Nyob zoo! Kev tshoov siab los ntawm Martin Molin, tus tswv cuab ntawm pab pawg Swedish hu ua Wintergatan, tsis ntev los no kuv tau poob rau hauv kev hlub nrog lub thawv nkauj thiab txhua yam hais txog lawv. Cov tib neeg ua cov nkauj rau lub thawv nkauj tseem tab tom siv txoj hauv kev qub ntawm kev xaum daim nkauj rau kom nco, vam tias lub sijhawm yuav xaus. Ua tiav qhov no kuv tus kheej, Kuv paub tias nws yog ib qho kev tawm dag zog thiab ib qho uas tuaj yeem siv hloov pauv. Yog li kuv tau xaus qhov kev xav ntawm lub tswv yim no ntawm kev siv cov kab hluav taws xob infrared los ntsuas cov nkauj. Qhov no yuav txhais tau tias nws tsuas yog yuav tsum tau nyeem ib daim ntawv ntawm cov ntawv dub thiab dawb, tab sis kuj tseem tuaj yeem muaj kev siv sib txawv xws li luam theej tawm cov ntawv xov xwm rau lub suab tso tawm.

Kauj Ruam 1: Cov Khoom Siv

Cov no yog cov ntaub ntawv kuv siv, tab sis lawv hloov tau ntau heev. Saib dab tsi haum koj zoo tshaj!

- Arduino Ib

- Hais lus lossis Buzzer

- 9v Roj teeb

- 9v Roj Teeb Clip

- On / Off Hloov

- 6 x QRD1114 Reflective Sensor

- Jumper Cables

- Ntoo Ntoo (10 x 15 x 9)

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit
Qhov Circuit
Qhov Circuit

Tam sim no lub Circuit Court yog dhau los thiab hla qhov nyuaj tshaj plaws ntawm txoj haujlwm no hauv kuv lub tswv yim. Tab sis tsis txhob cia qhov ntawd ua rau koj ntshai; nws tsis phem li

QRD1114 Reflective Sensor

Reflective sensor yog qhov tseeb ob lub cim nyob hauv ib qho. Nws muaj ob qho tib si tus xa thiab tus txais. Tus neeg xa khoom yog txiv kab ntxwv ntau dua rau dawb me ntsis thiab tus txais yog dub, tsaus me ntsis. Qhov no yog vim li cas nws xav tau tag nrho nws 4 ceg txuas nrog Arduino. Ib qho ntawm tus dot ntawm tus txais yuav xav tau 10k ohm resistor txuas nrog 5v THIAB lub jumper cable txuas nrog tus pin piv ntawm Arduino. Ib kab pheeb ces kaum ntawm qhov ntawd kuj tseem yuav tsum txuas nrog 5v tab sis dhau ntawm 220 ohm resistor. Ob txhais ceg ntxiv tuaj yeem txuas ncaj qha rau hauv av (GND). Txhim kho 6 lossis ntau dua ntawm cov no yog qhov haum zoo yog li kuv pom zoo kom muab lawv pov tseg yog tias koj tuaj yeem ua tau.

Tus Hais Lus

Tus Hais Lus yog qhov yooj yim heev rau txuas. Tsuas yog txuas rau - tus pin rau hauv av thiab txuas tus + tus pin rau tus lej digital ntawm kev xaiv ntawm Arduino. Kuv siv tus pin ~ 9 rau txoj haujlwm no.

Roj Teeb

Txhawm rau tso cai rau koj Arduino kom siv lub roj teeb, Kuv pom zoo kom koj txheeb xyuas cov lus qhia no:

www.instructables.com/id/Powering-Arduino-…

Lawv ua txoj haujlwm zoo piav qhia yuav ua li cas. Kuv siv qhov kev qhia no rau kuv qhov haujlwm ib yam.

Kauj Ruam 3: Txoj Cai

Tam sim no rau cov cai. Txoj haujlwm no siv lub hauv paus tsev qiv ntawv uas twb tau npaj rau hauv Arduino software.

Tsuas yog rho tawm cov ntawv zip thiab qhib daim nplaub tshev. Koj yuav tsum muaj peev xwm pom ob lub tab; HandHeldMusicBox thiab pitches.h. Los ntawm no koj yuav tsum zoo mus!

Yog tias pitches.h tsis nyob ntawd koj tuaj yeem tsim lub tab tshiab los ntawm nias 'ua haujlwm + ctrl + T' thiab npe nws pitches.h. Los ntawm qhov ntawd tsuas yog luam txhua yam hauv.txt cov ntaub ntawv rau hauv lub tab tshiab uas yuav tsum ua nws.

Kauj Ruam 4: Daim Ntawv Nkauj

Cov Ntawv Nkauj
Cov Ntawv Nkauj

Txog kev tsim cov ntawv nkauj kuv tau ua google daim ntawv hu ua 'Speelpapier' uas yog Dutch rau 'Ua Si Ntawv'. Koj tuaj yeem tshawb xyuas nws ntawm qhov txuas no:

docs.google.com/spreadsheets/d/1MHBrFVECut…

Yog tias koj xav ua nkauj koj tus kheej, koj tuaj yeem tsuas yog theej txhua yam hauv daim ntawv, lossis los ntawm kev khaws daim ntawv theej ntawm nws mus rau koj lub Drive. Yog tias koj xav siv Excel hla google daim ntawv nthuav qhia koj tuaj yeem ua qhov ntawd ib yam los ntawm rub tawm nws ua cov ntawv zoo hauv qab Cov Ntaub Ntawv> Rub Tawm Raws> Microsoft Excel.

Kev sau rau hauv daim ntawv suab paj nruag yog qhov txawv me ntsis ntawm lub sijhawm no. Cov ntawv sau mus los ntawm G txog E. Yog tias koj xav ua tus G ntawm cov nplais tshwj xeeb, koj sau rau '1 ntawm sab laug uas hais tias "ROW OF NUMBERS". Nco ntsoov ntxiv tus 'ua ntej ntawm tus lej kom ua rau google daim ntawv nthuav qhia paub tias nws tsis yog tus lej tab sis txoj hlua uas nws tuaj yeem siv hauv cov cai.

'1 = G ib

'2 = UA

'3 = IB

'4 = C ib

'5 = Deej

'6 = EJ

Muaj kev lom zem ua koj li nkauj.

Kauj ruam 5: Txhim kho

Tam sim no rau cov kauj ruam tseem ceeb tshaj plaws: Ua nws koj tus kheej!

Kuv tau muab cov theem yooj yim rau koj los ua lub thawv ntim khoom siv, nws yog lub sijhawm txhim kho raws li lub tswv yim. Nov yog ob peb lub tswv yim:

- Koj tuaj yeem ntxiv cov ntsuas ntau ntxiv los ntawm kev siv tus lej sib txuam lossis lwm Arduino

- Koj tuaj yeem sim ua qee qhov kev hloov pauv octaves kom tau txais ntau yam dav dua

- Koj tuaj yeem ntxiv ntim slider lossis pob qhov rooj

- Ntxiv lub suab nrov kom tau txais lub suab ntau dua ntawm tus hais lus

- Siv lub tsev qiv ntawv suab kom tau txais cov suab nrov, tejzaum nws tseem tsim lub suab paj nruag lub thawv.

- Siv timer cuam tshuam lossis lwm txoj hauv kev los sim thiab ua kom nws ua si chords ib yam!

- Kho cov nkauj tsim cov ntawv tsim hluav taws xob kom nws ua haujlwm rau koj

- Muaj qee yam txheej txheem uas rub daim ntawv ntawm tus nqi teev tseg.

Hmoov zoo tshaj plaws nrog koj txoj haujlwm thiab nco ntsoov qhia rau kuv paub koj qhov kev vam meej, Kuv xav hnov nws.

Pom zoo: