Cov txheej txheem:

Yooj Yim Arduino Sound Board: 5 Kauj Ruam (nrog Duab)
Yooj Yim Arduino Sound Board: 5 Kauj Ruam (nrog Duab)

Video: Yooj Yim Arduino Sound Board: 5 Kauj Ruam (nrog Duab)

Video: Yooj Yim Arduino Sound Board: 5 Kauj Ruam (nrog Duab)
Video: Thai Sounders - Yooj Yim (Official Music Video) 2024, Hlis ntuj nqeg
Anonim
Yooj Yim Arduino Sound Board
Yooj Yim Arduino Sound Board

Hauv qhov kev sim no koj yuav nkag siab tias lub suab nrov nrov ua haujlwm zoo li cas thiab koj tuaj yeem tsim cov lus yooj yim Arduino li cas. Siv qee lub khawm thiab xaiv lub suab sib xws, koj tuaj yeem tsim suab nkauj! Cov ntu uas kuv tau siv yog los ntawm Kuman's Arduino UNO cov khoom siv pib

Kauj Ruam 1: Qhov Yuav Tsum Tau

Qhov Yuav Tsum Tau
Qhov Yuav Tsum Tau

Koj yuav xav tau:

  • ib pawg Arduino
  • ib daim ntawv qhia zaub mov
  • ib USB Cable
  • 10 x Jumper xov hlau
  • 3 x Nyees khawm (tus lej ntawm lub kaus mom thiab cov nyees khawm yog nyob ntawm yeem)
  • 3 x 10k ohm resistors

Allchips yog cov khoom siv hluav taws xob hauv online pabcuam platform, koj tuaj yeem yuav txhua yam khoom siv los ntawm lawv

Kauj Ruam 2: Txuas Cov Khawm

Txuas Cov Khawm
Txuas Cov Khawm
Txuas Cov Khawm
Txuas Cov Khawm

Ua ntej tshaj, cia pib nrog cov nyees khawm. Rau txhua khawm, xaiv ib qho ntawm nws sab. Koj yuav pom 2 tus pin. Ib qho ntawm sab laug (koj tuaj yeem sib pauv lawv ib yam) txuas rau hauv av ntawm Arduino (dhau ntawm lub khob cij) nrog 10k resistor. Txuas tib kab rau tus lej digital 2, 3 lossis 4 ntawm Arduino (tuaj yeem teeb tsa hauv txoj cai). Tus pin ntawm sab xis ntawm txhua lub pob txuas rau 5V. Koj tuaj yeem siv daim duab saum toj no rau kev siv. Ua cov kauj ruam no rau tag nrho koj cov nyees khawm.

Kauj Ruam 3: Txuas Buzzer

Txuas Buzzer
Txuas Buzzer

Yog li, nyob rau sab saum toj ntawm lub suab nrov koj tuaj yeem pom tus cim +. Nws qhia qhov zoo ntawm nws. Koj yuav tsum txuas qhov sib thooj kawg rau hauv av thiab qhov no mus rau tus lej digital 8 ntawm Arduino (tuaj yeem hloov pauv tom qab)

Kauj Ruam 4: Tshaj Tawm thiab Hloov Kho Txoj Cai

Hloov thiab Hloov Kho Txoj Cai
Hloov thiab Hloov Kho Txoj Cai

Koj tuaj yeem pom cov cai ntawm txoj haujlwm no. Nws tag nrho rau koj ntawm yam koj tuaj yeem hloov kho - los ntawm tus lej tus lej txhawm rau ntxiv cov nyees khawm ntxiv, tab sis qhov tseem ceeb dua - koj tuaj yeem hloov txhua tus neeg lub suab. Nov yog piav me ntsis:

suab (buzzPin, 1000, 300); / / Ntawm no yog Arduino tone function

buzzPin yog tus pin zoo ntawm tus buzzer

1000 yog lub suab nws tus kheej, hauv Hz (nws tuaj yeem nyob txhua qhov chaw ntawm 31 txhua txoj kev mus rau 65535)

300 yog lub sijhawm hauv ms (yeem)

Kauj ruam 5: Yees duab

Nov yog cov vis dis aus ntawm qhov haujlwm hauv kev nqis tes ua, tsim cov nkauj tsis zoo.

Pom zoo: