Cov txheej txheem:

Hau Hau Dance Music Siv Arduino: 6 Kauj Ruam
Hau Hau Dance Music Siv Arduino: 6 Kauj Ruam

Video: Hau Hau Dance Music Siv Arduino: 6 Kauj Ruam

Video: Hau Hau Dance Music Siv Arduino: 6 Kauj Ruam
Video: Computer Vision with Python! Resizing Images 2024, Kaum ib hlis
Anonim
Hau Hau Dance Music Siv Arduino
Hau Hau Dance Music Siv Arduino

Hauv qhov kev qhia no kuv yog li cas koj tuaj yeem siv Arduino los ua suab paj nruag siv tsuas yog nrog tus hais lus (tsis xav tau MP3 qauv). Ua ntej saib cov vis dis aus no

Kauj Ruam 1: Saib Cov vis dis aus no

Image
Image

Kauj Ruam 2: Xav Tau Kho Vajtse

Daim duab Circuit Court
Daim duab Circuit Court

1.an Arduino

2. Tus neeg hais lus lossis lub suab nrov

Kauj Ruam 3: Daim duab Circuit Court

Daim duab Circuit Court
Daim duab Circuit Court

Tsuas yog txuas ib lub xov tooj ntawm tus hais lus rau D8 ntawm arduino thiab lwm qhov kawg rau grond ntawm arduino

Kauj Ruam 4: Nws Ua Haujlwm Li Cas?

Arduino hauv Circuit no tsim cov suab ntawm ntau zaus thiab ua suab los ntawm tus hais lus txuas nrog nws. Qhov sib txawv ntawm qhov zaus ntawm lub suab (suab) nrog lub sijhawm raug (qhov sib dhos) tsim cov nkauj. Arduino tsim lub teeb liab thiab tso tawm nws los ntawm tus lej Digital 8. Qhov no ua rau tus neeg hais lus txuas nrog tus pin kom tsim suab.

Kauj Ruam 5: Kuv Ua Melody thiab Nco Ntsoov ntawm Zaj Nkauj No:

Cas Kuv Ua Melody thiab Nco Ntsoov ntawm Zaj Nkauj no
Cas Kuv Ua Melody thiab Nco Ntsoov ntawm Zaj Nkauj no

Yog tias koj ua tibzoo saib ntawm qhov program, koj tuaj yeem pom ob lub int arrays: suab paj nruag thiab noteDurations . Thawj kab ntawv muaj cov ntawv sau thiab kab ntawv thib ob muaj nws cov sijhawm sib xws. Kuv tau sau cov nkauj sau tseg ntawm zaj nkauj no ua ntej thiab tom qab ntawd sau cov nkauj kab lus nrog qhov ntawd.

Tom qab ntawd kuv tau sau noteDurations raws li qhov ntev ntawm txhua daim ntawv sau nkauj. Nov yog 8 = daim ntawv cim tseg, 4 = daim ntawv thib 8, thiab lwm yam. Tus nqi siab dua muab cov ntawv sau ntev dua. Cov ntawv thiab nws lub sijhawm sib xws yog dab tsi nyob hauv suab paj nruag thiab noteDurations feem. Koj tuaj yeem hloov kho cov ntawd thiab tsim cov nkauj raws li koj lub tswv yim

Kauj Ruam 6: Cov Cai thiab Lub Tsev Qiv Ntawv

download Arduino code thiab tsev qiv ntawv los ntawm no

muaj lus nug nug ntawm no

rau ntau tutorials

Pom zoo: