Cov txheej txheem:

MP3 ALARM: 4 Kauj Ruam
MP3 ALARM: 4 Kauj Ruam

Video: MP3 ALARM: 4 Kauj Ruam

Video: MP3 ALARM: 4 Kauj Ruam
Video: Aram Mp3 feat 3.33 - SKSUM ENQ 2024, Kaum ib hlis
Anonim
MP3 TSHIAB
MP3 TSHIAB
MP3 TSHIAB
MP3 TSHIAB
MP3 TSHIAB
MP3 TSHIAB

Ua nkauj tawm ntawm daim npav micro sd kom koj sawv thaum sawv ntxov. Teem lub sijhawm tswb xav tau ib zaug thiab tsis tas yuav cuam tshuam nrog nws dua. Ib lub pob kaw lub tswb uas pib ua si txhua yam mp3 uas koj muaj ntawm daim npav micro sd.

Qhov:

Pawg Arduino

MP3 Player Shield

Laub khawm hloov

Tus hais lus aux

Yog lub hwj chim yog xav tau

Kauj ruam 1: Tsim

Tsim
Tsim

Muab koj daim thaiv npog rau sab saum toj ntawm arduino thiab tom qab ntawd txuas lub laub khawm rau A5 thiab hauv av. Lub pob ua haujlwm ua qhov nres tsis txhob rov pib dua lub rooj tsavxwm. Txuas tus neeg hais lus aux rau daim ntaub thaiv.

Kauj ruam 2: Code rau lub suab

Rub tawm SDFat (https://github.com/greiman/SdFat), SDFatUtil (https://github.com/adafruit/SD/blob/master/utility…, thiab SFEMP3Shield (https://github.com/madsci1016/) Sparkfun-MP3-Player-…) cov tsev qiv ntawv mus rau koj pawg thawj coj. Mus rau qhov piv txwv thiab hauv SFEMP3Shield qhib "File Player".

Rub tawm mp3 nkauj mus rau micro sd thiab npe lawv "track.001", "track.002", thiab lwm yam. Tab sis tsuas yog cuaj zaj nkauj yuav ua haujlwm zoo nrog daim thaiv. Muab cov mp3s tso rau hauv koj lub micro sd thiab muab tso rau hauv daim ntaub thaiv. Rov qab rau hauv File Player piv txwv, upload rau koj lub rooj tsavxwm thiab qhib qhov saib ua ntej. Koj yuav tsum tau teeb tsa lub baud rau 115200 bps. Xa cov lus txib "1" thiab koj yuav tsum hnov lub suab pib ua si. Yog tias tsis txheeb xyuas yog tias koj cov ntaub ntawv npe raug lossis tso koj lub micro sd rau hauv koj lub computer thiab mus rau hauv cov khoom. Hloov mus rau hauv sd los ntawm SD32 thiab sim dua.

Kauj Ruam 3: Ntxiv Tswb

Cov cai ntawm no yog rub los ntawm lub tswb LCD lub tswb yog li koj mus dhau thiab ntxig lcd hloov ntawm cov ntawv koj yuav muaj peev xwm ntxiv cov zaub. Tab sis tsis lees paub, nws ua haujlwm qeeb. (Tej zaum ntxiv cov nkauj twg ua si ib yam?)

Kauj Ruam 4: Ua ke Cov Codes

Okay koom ua ke cov lej ua ke thiab ntxiv qhov ua kom pib ua nkauj. Koj yuav tsum teeb tsa lub sijhawm ntawm koj lub khoos phis tawj ib zaug thiab lub tswb nrov. Tom qab ntawd ua rooj plaub lossis ntxiv teeb thiab koj yuav muaj kev lom zem ntxiv rau koj chav!

Pom zoo: