Cov txheej txheem:

Riley Duft's Electric Light Piano: 5 Kauj Ruam
Riley Duft's Electric Light Piano: 5 Kauj Ruam

Video: Riley Duft's Electric Light Piano: 5 Kauj Ruam

Video: Riley Duft's Electric Light Piano: 5 Kauj Ruam
Video: 20 товаров для автомобиля с Алиэкспресс, автотовары №29 2024, Hlis ntuj nqeg
Anonim
Riley Duft's Electric Light Piano
Riley Duft's Electric Light Piano

Nyob zoo thiab txais tos! Kuv lub npe Riley. Kuv yog Qib 12 computer engineering cov tub ntxhais kawm thiab qhov no yog kuv qhov haujlwm kawg uas kuv siv Arduino Uno los ua kuv tus kheej lub teeb hluav taws xob tswj piano. Yog tias koj muaj lus nug, kev qhuas, lossis kev thuam, tsis txhob tso lawv rau hauv cov lus thiab kuv yuav sim rov qab rau koj nrog lus teb. Xijpeem, ua tsaug rau kev saib kuv qhov kev tsim thiab kuv vam tias koj yuav txaus siab.

Kauj Ruam 1: Yuav Ua Li Cas/Vim Li Cas Nws Ua Haujlwm

Yog li nws ua haujlwm li cas; Kuv siv LED's thiab photoresistors los ua cov hlua. Yog li thaum kuv txav kuv tus ntiv tes nyob rau pem hauv ntej ntawm LED, tus kws yees duab yuav paub qhov poob ntawm lub teeb thiab ua rau kuv hais lus. Tab sis tus neeg hais lus ua si dab tsi? Qhov no tau txiav txim siab thaum koj nkag mus rau hauv hom kho los ntawm nias lub khawm raug. Thaum koj nyob hauv hom no koj yuav paub tias tsuas yog 1 LED tau teeb. Qhov no sawv cev rau txoj hlua lossis ceeb toom koj tab tom kho. Txhawm rau hloov daim ntawv no, koj siv lub joystick. Txoj hauv kev no ua haujlwm yog joystick xa nws tus nqi x rau Arduino thiab Arduino hloov qhov txiaj ntsig ntawd mus rau tus nqi suab. Tom qab koj ua tiav xaiv lub suab, nyem lub pob sab laug kom tig nruab nrab ntawm cov ntawv, teeb tsa tag nrho 4 rau yam koj xav kom lawv ua. Tom qab kho cov txheej txheem tiav, nias lub pob kom raug dua txhawm rau hloov rov qab mus rau hom ua si. Ib qho ntxiv, nws yog ib qho tseem ceeb kom paub tias khawm sab laug, yav tas los siv rau kev hloov pauv sau ntawv, tam sim no hauv hom ua si, tau siv los nres tus hais lus lub suab. Tsis tas li, lub hwj chim siv los tswj tus neeg hais lus lub ntim.

Kauj ruam 2: Circuit Court

Qhov Circuit
Qhov Circuit

Lub Circuit Court yooj yim to taub tab sis nws tuaj yeem ua tau yooj yim los ua yuam kev vim qhov tsis sib xws. Nco ntsoov xyuas ob zaug ntawm txhua lub xov hlau ua ntej siv cov cai vim tias, yog tias nws tsis ua haujlwm, qhov no feem ntau yog qhov laj thawj.

PS Qhov ntawd tsis yog piezo buzzer, nws yog tus hais lus.

Kauj Ruam 3: Daim Ntawv Khw Muag Khoom

Daim Ntawv Khw
Daim Ntawv Khw

Nov yog cov npe ntawm yam koj xav tau los tsim txoj haujlwm. Txaus siab rau!

Kauj ruam 4: Txoj Cai

Luam thiab muab tshuaj txhuam nws los xijpeem. Koj ua koj.

Kauj Ruam 5: Kev Qhia Tawm

Image
Image

Nov yog daim vis dis aus ntawm qhov haujlwm, thov txim uas nws tsis piav qhia ntau, tab sis tsawg kawg nws qhia cov khoom hauv kev nqis tes ua.

Pom zoo: