Cov txheej txheem:

Arduino MP3: 4 Kauj Ruam
Arduino MP3: 4 Kauj Ruam

Video: Arduino MP3: 4 Kauj Ruam

Video: Arduino MP3: 4 Kauj Ruam
Video: Master the MP3-TF-16P (DF Player Mini) on Arduino: Seamless Sound Integration & Easy Setup! 🎶 2024, Kaum ib hlis
Anonim
Arduino MP3
Arduino MP3

Ntawm Cov Lus Qhia no, Kuv yuav qhia koj li cas kuv tau ua tus neeg siv mp3 rudimentary heev. Hauv ntej, muaj cov nkauj tso rau hauv lub cim xeeb uas yuav ua si raws li cov nyees khawm raug nias.

Kauj Ruam 1: Cov Cheeb Tsam

Cov Cheeb Tsam
Cov Cheeb Tsam

Resistors

1x220 hmo

1x560 ua

1x4,7k wb

1x1 kwm

1x10 kwm

1x1m hmo

1 x LED

4 x Pushbutton

1x Pes

Kauj ruam 2: Teeb

Teeb
Teeb

Kev tso cov nyees khawm thiab cov khoom tiv thaiv pub rau hauv cov lus sib piv, thiab nws tau hu ua resistor ntaiv.

Thawj lub khawm txuas nrog tsuas yog xaim, thib 2 nrog 220 ohm resistor, thib 3 nrog 10K ohm resistor, thiab 4th nrog 1M ohm resistor.

Thaum kawg, lub Circuit Court yuav tsum ua kom tiav nrog 1K ohm resistor. Lub caij no, lwm cov hlau yuav tsum txuas rau analog hauv A0 txhawm rau nyeem qhov tsis kam.

Hauv nruab nrab, cov xaim los ntawm tus lej digital 8 yuav tsum txuas nrog lub suab nrov thiab tus tiv thaiv. Cov zis los ntawm tus pin 8 yog lub suab nrov lub suab nrov yuav ua si thiab thaum LED yuav qhib lossis tua.

Thaum kawg, lub suab nrov yuav tsum ua kom tiav nrog 4.7k ohm kom txo qis ntim ntxiv rau ua kom lub suab meej dua.

Kauj Ruam 3: Txoj Cai

Rau cov cai, nws muaj ob ntu rau nws. Coding rau cov nkauj, thiab coding rau zaj nkauj twg los ua si thaum nias lub pob.

Cov nkauj yog thiab cim los ntawm:

Lub Hnub Qub Wars Imperial Lub Peb Hlis

los ntawm eserra/www.instructables.com/id/How-to-Easily-Play-Music-With-Buzzer-on-Arduino-Th/

Harry Potter ntsiab lus nkauj

los ntawm Borderliner/www.instructables.com/id/Arduino-Harry-Potter-Theme-Song

Tetris

Los ntawm electricmango/https://electricmango.github.io

Kuv tau hloov kho me ntsis nrog cov lej kom lawv ua haujlwm nrog kuv lub rooj tsavxwm.

Kauj Ruam 4: Kev txhim kho

Muaj ntau yam uas kuv tuaj yeem txhim kho yav tom ntej. Cov no suav nrog, ntxiv potentiometer nruab nrab ntawm kev txuas ntawm tus pin 8 rau lub suab nrov. Nrog lub zog ntsuas, kuv yuav tuaj yeem tswj qhov ntim ntawm lub suab nrov. Tsis tas li, kuv yuav tsum muab cov ntawv sau cia cais los ntawm cov tsev qiv ntawv lossis tag nrho rau hauv ib qho. Ntxiv qee yam xws li 555 lub sijhawm thiab txuas ob peb LEDS yuav ua rau nws ci dua. Thaum kawg, Kuv tuaj yeem ntxiv SCR thiab khawm uas nres ib zaj nkauj ib nrab thaum nias.

Txawm li cas los xij, ua tsaug rau kev nyeem kuv Cov Lus Qhia.

Pom zoo: