Cov txheej txheem:

Arduino Mp3 Player: 5 Kauj Ruam
Arduino Mp3 Player: 5 Kauj Ruam

Video: Arduino Mp3 Player: 5 Kauj Ruam

Video: Arduino Mp3 Player: 5 Kauj Ruam
Video: Master the MP3-TF-16P (DF Player Mini) on Arduino: Seamless Sound Integration & Easy Setup! 🎶 2024, Hlis ntuj nqeg
Anonim
Image
Image
Suab Dab Tsi
Suab Dab Tsi

Hav cov neeg tsim khoom, kuv yuav qhia koj yuav ua li cas kom koj Arduino muaj peev xwm tawm suab, siv sd daim npav nyeem ntawv thiab tus hais lus.

Hauv cov vis dis aus saum toj no kuv tau qhia koj 3 lub voj voog ntawm yuav ua li cas xaim cov phiaj xwm no kom tau txais txiaj ntsig zoo tshaj plaws.

Cov ntu koj xav tau rau txoj haujlwm no yog (rau 3 teeb tsa):

* Arduino nano, yog

* SD daim npav nyeem ntawv

* hais lus

* khob cij

* cov kab

* 2 npn transistors

*1 tus tiv thaiv 1k yuav ua txoj haujlwm

* lub suab nrov (kuv yuav tso cai rau koj xaiv yam koj xav tau, ib tus yuav ua rau lub suab nrov dua, tab sis nrov npaum li cas koj xav tau nws nyob ntawm koj).

Kauj Ruam 1: Lub Suab Yog Dab Tsi

Lub suab yog lub zog nthwv dej uas tsim los ntawm cov khoom siv vibrating. Qhov kev co no teeb tsa cov khoom me me nyob hauv qhov nruab nrab puag ncig (huab cua zoo ib yam) hauv kev txav mus los, yog li thauj lub zog los ntawm nruab nrab. (los ntawm google)

Hauv cov khoom siv hluav taws xob peb xav tau DAC: digital rau analog hloov pauv kom tuaj yeem tawm suab huv, tab sis thaum Arduino peb tsis muaj ib qho. Yog li peb yuav dag thiab siv PWM hu nkauj los ua suab, tsis yog DAC thiab PWM yog tsis zoo ib yam tab sis rau qhov xwm txheej tshwj xeeb no peb tuaj yeem ua piv txwv tias lawv yog.

ceeb toom tseem ceeb: qhov txiaj ntsig yuav tsis huv thiab lub suab zoo yuav dhau mus tab sis tsis zoo

yog tias koj xav tau qhov ua tau zoo tshaj plaws muaj qee qhov mp3 player modules uas tuaj yeem siv nrog arduino.

tab sis kuv tsis muaj ntawm tes tam sim no, tab sis kuv yuav ua cov vis dis aus ntawm nws hauv futre

Kauj ruam 2: CODE

Ua raws cov vis dis aus thiab hloov koj cov ntaub ntawv mp3 kom yoj thiab rub lub tsev qiv ntawv xav tau rau txoj haujlwm.

Txoj cai tau yooj yim thiab kuv muab ntau cov lus pom, yog tias koj muaj lus nug dab tsi qhia rau kuv paub.

Kauj ruam 3: Thawj Ciruit

Thawj Ciruit
Thawj Ciruit

Nov yog thawj qhov kev sib tw hauv txoj haujlwm no, qhov no yog pob txha dais teeb tsa yam tsis muaj kev nthuav dav li qub, yog li lub suab yuav zoo heev.

Kev txuas yog yooj yim heev tsuas yog ua raws cov txheej txheem.

ceeb toom tias qee tus nyeem daim npav sd tuaj yeem ua haujlwm nrog 3.3v lossis 5v yog li nws yog koj li hu.

Kauj Ruam 4: Thib Ob

Qhov thib ob Circuit Court
Qhov thib ob Circuit Court
Qhov thib ob Circuit Court
Qhov thib ob Circuit Court

Nov yog qhov Circuit thib ob, peb yuav siv 2 npn transistors thiab 1 resistor, ceeb toom tias ib qho npn transistor yuav ua haujlwm.

koj tseem tuaj yeem siv qee lub suab nrov IC zoo li LM386.

NCO TSEG; Kuv tau txais qhov Circuit Court shematic los ntawm google, lawv muaj lub platform zoo

Kauj Ruam 5: 3rd Circuit

Qhov thib 3 Circuit
Qhov thib 3 Circuit
Qhov thib 3 Circuit
Qhov thib 3 Circuit

Nov yog qhov kawg ntawm Circuit, peb tau siv hom kev lag luam ua kom tau txais lub suab paj nruag nrov heev, hauv cov vis dis aus kuv tsuas yog nthuav lub suab me ntsis vim tias kuv lub zog muab ntaus rau qhov txwv tam sim no thiab kaw nws tus kheej.

Kuv siv 15 w 2 channel amplifier, kuv 12 v 2 amp hwj chim qhov chaw.

nyob ntawm koj qhov kev xav tau koj tuaj yeem mus nrog lub tshuab hluav taws xob me me lossis lub suab nrov, lub zog ntau dua lub zog tau ntsuas rau lub suab nrov dua. thiab ntau lub zog koj xav tau kom nws ua haujlwm tau zoo.

txoj hlua yog yooj yim tsuas yog siv tib yam li thawj Circuit tab sis lub sijhawm no tus pin 9 yuav mus rau lub suab nrov.

Pom zoo: