Cov txheej txheem:

Partyduino: 7 Kauj ruam
Partyduino: 7 Kauj ruam

Video: Partyduino: 7 Kauj ruam

Video: Partyduino: 7 Kauj ruam
Video: nkauj ntsuag lub kuas muag daim 7 2024, Kaum ib hlis
Anonim
Partyduino
Partyduino

Nov yog qhov phiaj xwm zaum kawg ntawm peb tog tsheb npav hu ua Partyduino teeb tsa nrog Arduino uas muaj lub suab nrov tsis zoo thiab ua haujlwm puv puv.

Kauj Ruam 1: Sau Cov Khoom Siv Xav Tau rau Txoj Haujlwm Arduino no

Sau Cov Khoom Siv Xav Tau rau Txoj Haujlwm Arduino no
Sau Cov Khoom Siv Xav Tau rau Txoj Haujlwm Arduino no

Koj xav tau cov ntaub ntawv teev hauv qab no:

Cov ntaub ntawv:

1. Nruam Tsab Ntawv Servo

2. Passive Buzzer

3. Cov xov hlau (MM xov hlau)

4. Roj teeb (Tsis teb los tau)

5. Cov qhob cij

6. Log (3 lossis ntau dua)

7. USB Cable (txuas rau lub khoos phis tawj)

8. Arduino Code App lossis Account

9. Cardboard (Los yog lwm yam ntaub ntawv los tsim cov qauv)

Kauj Ruam 2: Tsim Txoj Haujlwm

Tsim Txoj Haujlwm
Tsim Txoj Haujlwm

Pib tsim koj txoj haujlwm los ntawm kev sau tag nrho koj cov khoom siv hauv ib cheeb tsam. Tom qab ntawd koj tuaj yeem kos duab kos ib yam li peb tau ua. Koj tuaj yeem ntxiv lub log rau koj lub tsheb lossis tsheb npav. Tom qab koj yuav tsum tau kub lo cov khoom ntawm cov khoom siv, duab los qhia rau ib leeg kom lub npov sawv cev rau lub tsheb. Koj kuj yuav tsum tau kub kua nplaum lub log ntawm lub tsheb npav mus rau qhov kev pabcuam tas mus li. Koj tuaj yeem ntxiv cov kauj ruam ntxiv rau cov txheej txheem no yog tias koj nyiam.

Kauj Ruam 3: Tsim Koj Li Circuit Court

Tsim Koj Li Circuit Court
Tsim Koj Li Circuit Court

Daim duab txuas rau cov kauj ruam no qhia seb peb muab cov xov hlau nyob hauv txhua tus pin li cas. Koj tuaj yeem siv tus lej sib txawv, tab sis koj kuj tseem yuav tau hloov qhov chaws qhov uas hais tias "txuas" thiab rau lub suab nrov nrov.

Kauj Ruam 4: Ua Txoj Cai rau Nkauj "Havana" thiab Cov Kev Pab Cuam kom txav mus rau tib lub sijhawm

Ua Txoj Cai rau Nkauj "Havana" thiab Cov Kev Pab Cuam Ua Haujlwm kom txav mus rau tib lub sijhawm
Ua Txoj Cai rau Nkauj "Havana" thiab Cov Kev Pab Cuam Ua Haujlwm kom txav mus rau tib lub sijhawm

www.musicnotes.com/sheetmusic/mtd.asp?ppn=…

#suav nrog Servo myservo;

#suav nrog "pitches.h"

void teeb tsa () {

// muab koj cov cai teeb tsa ntawm no, kom khiav ib zaug:

myservo.attach (9);

pinMode (12, NTAWV);

}

void lub voj ()

{

// muab koj cov cai tseem ceeb ntawm no, kom rov ua dua:

myservo.write (40);

suab (12, NOTE_C5);

ncua (300);

noTone (12);

suab (12, NOTE_E5);

ncua (270);

noTone (12);

suab (12, NOTE_E5);

ncua (270);

noTone (12);

suab (12, NOTE_C5);

ncua (270);

noTone (12);

suab (12, NOTE_C5);

ncua (270);

noTone (12);

suab (12, NOTE_A4);

ncua (400);

noTone (12);

suab (12, NOTE_E5);

ncua (250);

noTone (12);

suab (12, NOTE_D5);

ncua (250);

noTone (12);

suab (12, NOTE_E5);

ncua (250);

noTone (12);

suab (12, NOTE_F5);

ncua (250);

noTone (12);

suab (12, NOTE_E5);

ncua (250);

noTone (12);

suab (12, NOTE_D5);

ncua (250);

noTone (12);

suab (12, NOTE_C5);

ncua (270);

noTone (12);

suab (12, NOTE_E5);

ncua (270);

noTone (12);

suab (12, NOTE_E5);

ncua (270);

noTone (12);

suab (12, NOTE_C5);

ncua (270);

noTone (12);

suab (12, NOTE_C5);

ncua (270);

suab (12, NOTE_A4);

ncua (400);

noTone (12);

suab (12, NOTE_E5);

ncua (250);

noTone (12);

suab (12, NOTE_D5);

ncua (250);

noTone (12);

suab (12, NOTE_E5);

ncua (250);

noTone (12);

suab (12, NOTE_F5);

ncua (250);

noTone (12);

suab (12, NOTE_E5);

ncua (250);

noTone (12);

suab (12, NOTE_D5);

ncua (250);

noTone (12);

suab (12, NOTE_C5);

ncua (250);

noTone (12);

suab (12, NOTE_E5);

ncua (270);

noTone (12);

suab (12, NOTE_E5);

ncua (270);

noTone (12);

suab (12, NOTE_C5);

ncua (270);

noTone (12);

suab (12, NOTE_C5);

ncua (270);

noTone (12);

suab (12, NOTE_A4);

ncua (400);

noTone (12);

suab (12, NOTE_E5);

ncua (250);

noTone (12);

suab (12, NOTE_D5);

ncua (250);

noTone (12);

suab (12, NOTE_E5);

ncua (250);

noTone (12);

suab (12, NOTE_F5);

ncua (250);

noTone (12);

suab (12, NOTE_E5);

ncua (250);

noTone (12);

suab (12, NOTE_D5);

ncua (250);

noTone (12);

suab nrov (12, NOTE_C5); ncua (270);

noTone (12);

suab (12, NOTE_E5);

ncua (270);

noTone (12);

suab (12, NOTE_C5);

ncua (270);

noTone (12);

suab (12, NOTE_E5);

ncua (250);

noTone (12);

suab (12, NOTE_D5);

ncua (270);

noTone (12);

suab (12, NOTE_E5);

ncua (270);

noTone (12);

suab (12, NOTE_D5);

ncua (270);

noTone (12);

suab (12, NOTE_C5);

ncua (270);

noTone (12);

suab (12, NOTE_E5);

ncua (270);

noTone (12);

suab (12, NOTE_B4);

ncua (300);

noTone (12);

suab (12, NOTE_C5);

ncua (270);

noTone (12);

suab (12, NOTE_B4);

ncua (270);

noTone (12);

suab (12, NOTE_C5);

ncua (270);

noTone (12);

suab (12, NOTE_B4);

ncua (270);

noTone (12);

suab (12, NOTE_C5);

ncua (270);

suab (12, NOTE_A4);

ncua (400);

noTone (12);

}

Kauj ruam 5: Txuas rau Computer

Txuas mus rau Computer
Txuas mus rau Computer

Siv USB Cable txuas koj Arduino rau lub khoos phis tawj. Qhov no yuav tsum hloov txoj cai mus rau Arduino. Tom qab ntawd koj tuaj yeem siv lub roj teeb los ua si tom qab.

Kauj Ruam 6: Sim Koj Txoj Haujlwm Tawm

Sim Koj Qhov Project Tawm
Sim Koj Qhov Project Tawm

Tshaj tawm Arduino, thiab saib seb nws puas ua haujlwm. Yog tias nws ua haujlwm, zoo, koj tau ua haujlwm zoo saib xyuas cov lus qhia, thiab yog tias nws tsis ua haujlwm, koj kuj ua tau haujlwm zoo. Yog tias nws tsis ua haujlwm hla ob peb kauj ruam kawg ntxiv. Sim dua thiab ntau dua txog thaum koj ua tiav nws raws li koj xav kom nws ua. Nws coj peb ntau qhov kev sim kom tau nws qhov peb xav tau.

Kauj Ruam 7: Peb Txoj Haujlwm Kawg

Vam tias koj txaus siab rau peb tes num!

Pom zoo: