Cov txheej txheem:

Kuv Sim ntawm Arduino Button Buzzer Melody: 11 Kauj Ruam
Kuv Sim ntawm Arduino Button Buzzer Melody: 11 Kauj Ruam

Video: Kuv Sim ntawm Arduino Button Buzzer Melody: 11 Kauj Ruam

Video: Kuv Sim ntawm Arduino Button Buzzer Melody: 11 Kauj Ruam
Video: මන් කියන විදියට කරලා බලන්නකෝ. 😮😮 #funny #love #interesting 2024, Kaum ib hlis
Anonim
Kuv Sim ntawm Arduino Button Buzzer Melody
Kuv Sim ntawm Arduino Button Buzzer Melody

Hauv qhov kev qhia no kuv yuav qhia koj li cas lub pob tuaj yeem pib ua suab paj nruag. Thaum lub xyoo kawm ntawv, peb lub neej ntau lub tswb nrov lossis suab nrov uas qhia rau peb paub thaum twg txog lub sijhawm tawm mus lossis sijhawm mus. Peb txhua tus tsis tshua tso tseg thiab xav txog tias yuav ua cov suab sib txawv li cas. Kuv paub thaum kuv xav txog kev tsim lub suab nrov sib txawv rau tswb hauv tsev kawm ntawv, kuv lub siab ib txwm rov qab mus rau qhov tshwm sim los ntawm cov yeeb yaj kiab Grease thaum tus thawj xibfwb siv lub xylophone me me los qhia qhov pib thiab nres ntawm nws tshaj tawm. Tswb thiab lub suab nrov puag ncig peb txhua qhov chaw yog li kuv xav kawm me ntsis ntxiv txog lawv. Hauv qhov kev qhia no kuv tau tsim cov kab ke uas lub suab tau ua thaum lub pob raug thawb. Kev teeb tsa yog yooj yim heev thaum siv cov cuab yeej xav tau yog li kuv pom zoo kom cov pib tshiab sim nws. Qhov kev sib tw loj tshaj plaws uas kuv pom yog nyob hauv tus lej. Raws li koj yuav pom hauv Kauj Ruam 10, koj yuav tsum teeb tsa pitches.h hauv ib qho cais tab ua ntej txheeb xyuas koj tus lej. Thaum koj lub cev raug tsim, nias lub pob thiab pom pes tsawg zaus uas lwm tus nyob ib puag ncig koj txheeb xyuas lawv lub xov tooj lossis saib rau "tsev kawm qub" video game nyob ze vim tias lawv tsis tuaj yeem txheeb xyuas qhov suab nrov ntawd los ntawm qhov twg!

Kauj Ruam 1: Yam Koj Xav Tau:

Yam Koj Xav Tau
Yam Koj Xav Tau
  • Arduino Ib
  • Cov qhob cij
  • Piezo Buzzer Cov
  • Khawm
  • Jumper Hlau (5)
  • 10 k resistor
  • USB Cable

Kauj Ruam 2: Muab Khawm rau ntawm koj lub Breadboard

Tso lub pob rau ntawm koj daim ntawv qhia zaub mov
Tso lub pob rau ntawm koj daim ntawv qhia zaub mov

Kauj Ruam 3: Txuas 10k Tus Kws Tiv Thaiv rau Tus Kheej ntawm Khawm

Txuas tus 10k Resistor rau Tus Cawm Seej ntawm Khawm
Txuas tus 10k Resistor rau Tus Cawm Seej ntawm Khawm

Kauj Ruam 4: Hauv av Qhib Qhov Ncauj ntawm Tus Tiv Thaiv Nrog Jumper Hlau

Hauv av Lub Cev Tsis Txaus Siab ntawm Tus Tiv Thaiv Nrog Jumper Hlau
Hauv av Lub Cev Tsis Txaus Siab ntawm Tus Tiv Thaiv Nrog Jumper Hlau

Kauj Ruam 5: Txuas Khawm Lwm Tus Ceg mus rau +5V

Txuas Khawm Lwm Tus Ceg mus rau +5V
Txuas Khawm Lwm Tus Ceg mus rau +5V

Kauj Ruam 6: Txuas Khawm Sab Saum Toj mus rau Digital 12

Txuas Khawm Sab Saum Toj mus rau Digital 12
Txuas Khawm Sab Saum Toj mus rau Digital 12

Kauj Ruam 7: Muab Piezo Buzzer tso rau ntawm Breadboard

Muab Piezo Buzzer tso rau ntawm Breadboard
Muab Piezo Buzzer tso rau ntawm Breadboard

Kauj Ruam 8: Txuas Buzzer's Short Leg (-) rau hauv av

Txuas Buzzer's Short Leg (-) rau hauv av
Txuas Buzzer's Short Leg (-) rau hauv av

Kauj Ruam 9: Txuas Buzzer's Long Leg (+) rau Digital 8

Txuas Buzzer's Long Leg (+) rau Digital 8
Txuas Buzzer's Long Leg (+) rau Digital 8

Kauj ruam 10: Nws yog Lub Sijhawm rau Code

Nws yog Lub Sijhawm rau Code!
Nws yog Lub Sijhawm rau Code!

Siv qhov txuas hauv qab no los theej cov cai.

Buzzer Button Melody Code

Tsis txhob hnov qab lub tsev qiv ntawv pitches.h!

Nov yog cov lus qhia luv luv rau kev teeb tsa (nrawm rau 4:50 rau pitches.h lub tsev qiv ntawv nkaus xwb)

Video nyeem code

Kauj Ruam 11: Xeem Nws

Cov ntaub ntawv:

ARDUINO - BUTTON BUZZER MELODY In -text: (Instructables.com, 2018) Koj Cov Ntawv Sau: Instructables.com. (2018). Arduino - Khawm Buzzer Melody. [online] Muaj nyob ntawm: https://www.instructables.com/id/Arduino-Button-B… [Nkag mus rau 14 Tsib Hlis 2018].

Pom zoo: