Cov txheej txheem:

Tes Clap Teeb Hloov: 4 Kauj Ruam
Tes Clap Teeb Hloov: 4 Kauj Ruam

Video: Tes Clap Teeb Hloov: 4 Kauj Ruam

Video: Tes Clap Teeb Hloov: 4 Kauj Ruam
Video: Tseem Ev Lub Kawm - Koos Loos 2024, Kaum ib hlis
Anonim
Tes Clap Teeb Hloov
Tes Clap Teeb Hloov

Heev feem ntau koj yuav tsum tau ua ob peb kauj ruam hauv qhov tsaus ntuj ua ntej koj tuaj yeem mus txog lub teeb hloov. Tam sim no nrog tes npuaj teg koj tuaj yeem qhib lub teeb, tsis siv zog.

Kauj Ruam 1: Yuav Ua Li Cas HW Teeb:

Yuav Ua Li Cas HW Teeb
Yuav Ua Li Cas HW Teeb

1. Connect jumper hlau #1 nruab nrab ntawm 5V pinout los ntawm Arduino board thiab VCC tus pin los ntawm lub rooj tsav xwm microphone.

2. Connect jumper hlau #2 nruab nrab ntawm GND pinout los ntawm Arduino board thiab GND tus pin los ntawm lub rooj tsav xwm microphone.

3. Connect jumper hlau #3 nruab nrab ntawm A0 pinout los ntawm Arduino board thiab OUT tus pin los ntawm lub rooj tsav xwm microphone.

4. Txuas USB cable rau koj lub computer USB chaw nres nkoj.

Kauj Ruam 2: Yuav Ua Li Cas Teeb SW:

Yuav ua li cas thiaj teeb tsa SW
Yuav ua li cas thiaj teeb tsa SW

1. Install Arduino IDE, los ntawm qhov txuas hauv qab no:

2. Nyem rau ntawm Windows installer

3. Nyem rau rub tawm

4. Tom qab rub tawm tiav, nyem rau RUN khawm

5. Nyem rau Kuv Pom Zoo khawm (Arduino IDE yog software pub dawb)

6. Xaiv txhua yam khoom los ntawm daim ntawv thiab nyem rau Next khawm

7. Ua tiav nrog kev teeb tsa tom qab xaiv qhov chaw xav tau

8. Install tus tsav tsheb "Adafruit Industries LLC Ports", los ntawm txhaj rau Nruab Nruab

9. Install tus tsav tsheb Arduino USB Tsav Tsheb los ntawm txhaj rau lub pob Install

10. Install tus neeg tsav tsheb "Linino Ports (COM & LPT)" los ntawm txhaj rau Nruab pob

11. Nias CLOSE khawm thaum teeb tsa tiav.

12. Download daim ntawv thov kev thov: Clap_switch.ino

Kauj Ruam 3: Yuav Ua Li Cas Kho Koj Cov Teeb

1. Tom qab ntawv cov ntaub ntawv (“Clap_switch.ino”) tau rub tawm, ob zaug nyem rau nws thiab nyem OK khawm los tsim cov npe hu ua “Clap_switch”.

2. Xaiv hom pawg thawj coj los ntawm Arduino IDE ntawv qhia zaub mov: Cov Cuab Yeej Cuab Yeej: "Arduino/Genuino Uno"

3. Txheeb xyuas qhov chaw sib txuas lus uas Arduino pawg thawj coj yuav sib tham, los ntawm kev nkag mus rau Tus Thawj Saib Xyuas Ntaus Ntawv

4. Set kev sib txuas lus chaw nres nkoj (txheeb xyuas hauv kauj ruam 3), los ntawm Arduino IDE ntawv qhia zaub mov: Cov Cuab Yeej / Chaw Nres Nkoj: COM7

Kauj Ruam 4: Yuav Kho Li Cas Koj Daim Ntawv Thov

Yuav Kho Li Cas Koj Daim Ntawv Thov
Yuav Kho Li Cas Koj Daim Ntawv Thov
Yuav Kho Li Cas Koj Daim Ntawv Thov
Yuav Kho Li Cas Koj Daim Ntawv Thov

1. Non-configurable tsis:

• AnalogPin -> Pinout nyeem los ntawm Arduino header

• Index -> Counter rau npuaj teg

2. Configurable tsis:

• Threshold down -> yam tsawg kawg nkaus suab nrov

• Threshold nce -> qib suab nrov tshaj plaws

3. Compile thiab upload software rau Arduino board los ntawm txhaj rau Upload khawm.

4. Collected cov ntaub ntawv tuaj yeem pom ua daim duab, los ntawm Arduino IDE ntawv qhia zaub mov: Cuab Yeej Cuab Yeej Plotter

5. Collected cov ntaub ntawv tuaj yeem tso tawm ua tus lej, los ntawm Arduino IDE ntawv qhia zaub mov: Cov cuab yeej / Serial Monitor

Pom zoo: