Cov txheej txheem:
- Kauj Ruam 1: Cov Cheeb Tsam thiab Cov Cuab Yeej Xav Tau
- Kauj ruam 2: Schematic
- Kauj Ruam 3: Kev tsim kho
- Kauj ruam 4: Software thiab Txhim Kho
- Kauj Ruam 5: Kev Npaj SD Card
- Kauj Ruam 6: Kev Ua Haujlwm Ib Leeg
- Kauj Ruam 7: Ua Haujlwm Li Qub Browser
- Kauj Ruam 8: Pib Ua Haujlwm Browser
Video: ESP8266 DfPlayer Audio Player: 8 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:28
Nov yog mp3 audio player tsim los ntawm esp8266 wifi module thiab dfPlayer mp3 module. Nws ua cov ntaub ntawv los ntawm SD daim npav.
Kuv nyob hauv nws lub khoos phis tawj qub hais lus thiab ua rau lub roj teeb ua haujlwm, tab sis nws tuaj yeem tsim ua rau hauv ib qho chaw hais lus.
Nta xws li
- 4 cov nyees khawm hauv zos rau kev siv tus kheej (ntim, xaiv yooj yim)
- Txawb browser cuam tshuam nrog kev tswj hwm kev ua si thiab kev nthuav dav
- Mute tswj kom tso cai siv lub mloog pob ntseg
- Teeb tsa tau yooj yim ntawm WifiManager
- Tshaj tawm cov huab cua hloov tshiab
- Cov ntaub ntawv browser rau kev saib xyuas
- dfPlayer txog 2W tso suab rau tus hais lus (mono). Lub tso suab rau lub mloog pob ntseg
Kauj Ruam 1: Cov Cheeb Tsam thiab Cov Cuab Yeej Xav Tau
Cov hauv qab no xav tau
- ESP-12F wifi ua qauv
- dfPlayer mp3 module nrog daim npav micro SD
- 18650 roj teeb thiab tus tuav
- LIPO charger module
- Laub khawm hloov x4
- Lub zog swb x 1
- Tus tswj hluav taws xob siv qhov poob qis 3.3V nti (piv txwv li XC6203)
- Seem ntawm Circuit Board los ua tus tswj hwm
- 2.2K tiv thaiv
- 10K resistor x 2
- 47K tiv thaiv
- 220 uF decoupling capacitor
- Txuas xov hlau
- Lub suab nrov + lub thawv ntawv (piv txwv li hais lus hauv computer lossis xov tooj cua qub)
- Lub mloog pob ntseg. Tej zaum twb muaj nyob ntawm cov ntaub ntawv uas twb muaj lawm.
- SD daim npav (4GB pom zoo tab sis yuav luag txhua qhov loj tuaj yeem siv tau)
Tag nrho cov no tuaj yeem nrhiav tau rau tus nqi qis heev ntawm cov chaw xws li eBay
Cov cuab yeej xav tau
- Laum thiab cov ntaub ntawv los ua qhov hauv qhov thaiv
- Cov ntsiab lus zoo soldering hlau
DfPlayer module tuaj yeem ua kom nyuaj vim nws xav tau kom muaj kev nkag sab nraud mus rau qhov nkag mus rau ntawm daim npav SD. Rau cov ntaub ntawv uas muaj lub vaj huam sib luag tiaj kuv tau siv daim ntawv luam tawm 3D tsim los tuav cov qauv kom ruaj ntseg tiv thaiv vaj huam sib luag
Kauj ruam 2: Schematic
Schematic yog yooj yim haum.
LIPO lub roj teeb them nqi siv los them lub roj teeb.
Lub roj teeb pub lub dfPlayer module ncaj qha thiab ESP-12F ntawm tus tswj hwm 3.3V.
DfPlayer tau tswj hwm tus lej sib txuas yog li 2 tus pin ntawm ESP-12F module txhawb qhov no.
4 lub laub khawm tau khi rau ESP-12F GPIO rau kev ua haujlwm ib leeg.
Tus hais lus thiab lub mloog pob ntseg tau txhawb nqa ncaj qha los ntawm dfPlayer module.
Kauj Ruam 3: Kev tsim kho
Cov ncauj lus kom ntxaws ntawm kev tsim kho cov tshuab yuav sib txawv nrog hom thaiv uas yuav siv. Piv txwv ntawm no siv lub tshuab hais lus hauv computer. Qhov no muaj ntau chav sab hauv rau cov qauv thiab khoom siv hluav taws xob.
Daim duab qhia pom qhov ua tiav rau qhov piv txwv no. USB, hloov hluav taws xob, thiab thawb cov nyees khawm nyob ntawm sab xis. LIPO tau teeb tsa nyob tom qab. ESP-12F module, lub mloog pob ntseg thiab dfPlayer tau teeb tsa ntawm sab laug. Lub roj teeb tau teeb rau sab nraub qaum.
Cov theem dav dav tom qab ua haujlwm txheej txheem uas haum rau koj lub thawv ntim khoom yog
- Laum thiab ua cov ntaub ntawv tawm los nqa USB cov tswv yim, hloov mus, 4 khawm nyaum, lub mloog pob ntseg thiab qhov rau micro SD daim npav. Daim npav SD daim npav yuav tsum tau ua tib zoo ua kab nrog qhov twg dfPlayer module yuav raug teeb tsa.
- Yog tias xav hais lus ntsiag to tso cai mloog lub mloog pob ntseg ces lub dfPlayer xav tau kev hloov kho me me raws li qhia. Muaj lub suab ntsiag to ntawm lub tshuab hluav taws xob me me ntawm lub nkoj tab sis nws tau txuas rau hauv av los ntawm 0 Ohm resistor. Tshem tawm tus tiv thaiv no thiab hloov nrog 10K tus tiv thaiv. Muab cov hlau lead tso rau ntawm lub ncoo raws li qhia. Nov yog lub suab ntsiag to uas tom qab ntawd tuaj yeem tswj tau los ntawm ESP-12F
- Nco tseg koj yuav xav nyem ESP-12F module ua ntej ua ntej kev tsim kho tshuab kawg. Saib cov software qib.
- Ua tus 3.3V tus tswj hwm ntawm ib qho ntawm seem seem pawg thawj coj saib. Tsuas muaj 2 yam thiab nws tuaj yeem ua rau txuas thiab txuas rau ESP-12F module.
- Mechanical mount lub laub khawm hloov, ruaj ntseg nrog kua nplaum thiab ua kom lub voj hauv av hla ib sab ntawm txhua qhov hloov pauv.
- Cuab Yeej 4 ya coj mus rau USB txuas thiab teeb nws hauv qhov thaiv thiab ruaj ntseg nrog kua nplaum
- Cov kab laug sab ua los ntawm tus tuav lub roj teeb dhau mus rau LIPO them nyiaj thiab lub zog swb hloov. Kaw lub charger thiab swb hloov hauv qhov thaiv.
- Solder ya coj mus rau lub mloog pob ntseg, txuas thiab lo rau hauv qhov chaw.
- Ntxiv 2.2K resistor, ADC divider thiab CH/Up txuas mus rau ESP-12F module
- Cov laug ya mus ua rau ESP-12F module rau kev sib txuas hauv xov tooj, 4 GPIO khawm.
- Mount dfPlayer nyob rau hauv qhov chaw saib xyuas uas lub qhov nkag tau rau SD daim npav.
- Ua kom tiav cov xov hluav taws xob los ntawm ESP12-F mus rau kev sib txuas fais fab, thawb cov nyees khawm, sib txuas sib txuas thiab kaw suab tswj ntawm dfPlayer
- Ua kom tiav cov xov hluav taws xob, USB cov ntaub ntawv khub, lub mloog pob ntseg thiab hais lus rau dfPlayer
Muab ob npaug rau xyuas cov kab hluav taws xob!
Kauj ruam 4: Software thiab Txhim Kho
ESP software tau sau hauv Arduino ib puag ncig. Cov peev txheej muaj nyob ntawm https://github.com/roberttidey/dfPlayer Lub tsev qiv ntawv uas tswj hwm dfPlayer nyob ntawd. Lwm lub tsev qiv ntawv xav tau thiab teev tseg muaj cov qauv txheej txheem.
Daim duab ino tsis xav tau hloov pauv ntau txawm hais tias koj yuav xav hloov WifiManager thiab hloov kho cov password tshiab.
Sib sau ua ke hauv Arduino ESP8266 ib puag ncig thiab ua thawj zaug nyem dua tus qauv txuas txuas. Kev hloov kho ntxiv tuaj yeem ua tiav los ntawm kev xa tawm cov ntaub ntawv binary hauv Arduino IDE thiab ua OTA (hla huab cua) hloov tshiab ncaj qha rau chav tsev yam tsis muaj xov hlau.
Thawj zaug siv cov software yuav tsis muaj ntawv pov thawj wifi hauv zos tab sis hloov pauv yuav tsim Kev nkag mus rau nws tus kheej hu ua dfPlayerSet. Txuas rau qhov no (piv txwv li los ntawm lub xov tooj lossis ntsiav tshuaj) thiab tom qab ntawv mus rau 102.168.4.1. Qhov no yuav coj mus rau lub interface kom tso cai xaiv ntawm lub network tiag tiag thiab nkag mus rau nws tus password. Txij thaum ntawd los qhov no yuav raug siv tau.
Muaj cov ntaub ntawv uploader yooj yim uas yuav tsum tau siv los thauj cov ntaub ntawv yooj yim mus rau SPIFFS cov ntaub ntawv kaw lus ntawm ESP-12F (hloov kho.htm.gz, index.html, basic.htm, favicon*-p.webp
Txij thaum ntawd los koj tuaj yeem siv https:// ip/kho kom xa cov ntaub ntawv ntxiv hauv kev ua phooj ywg zoo.
Koj tuaj yeem hloov kho qhov index.htm kom xa mus rau cov ntaub ntawv favicon sib txawv thiab muab nws lub npe sib txawv yog xav tau.
Cov favicon yuav siv yog tias ntxiv qhov luv rau ntawm lub vijtsam ntawm hais lub xov tooj.
Kauj Ruam 5: Kev Npaj SD Card
DfPlayer rov ua cov ntaub ntawv ncaj qha los ntawm daim npav SD tab sis nws muaj qhov txwv cov ntawv tais ceev tseg thiab cov npe cov phiaj xwm.
Txhawm rau ua kom yooj yim siv thiab tswj hwm ib tsab ntawv tau muab nrog cov software uas tuaj yeem txhawb nqa lub npe no tab sis tseem tso cai rau cov npe qub raug foob ntawm lub vev xaib interface.
Txhawm rau siv nce daim npav SD mus rau PC thiab luam hla daim nplaub tshev nrog cov ntawv nrog lawv thawj lub npe (piv txwv li albums rau cov ntawv tais ceev tseg thiab cov npe rau cov ntaub ntawv).
Khiav tsab ntawv (dfPlayer-makeSD.vbs). Nws yuav ua kom nrawm rau daim npav SD. Hloov qhov no raws li qhov tsim nyog. Tom qab ntawd nws yuav hloov pauv txhua cov ntawv tais ceev tseg thiab cov ntaub ntawv ntawm SD daim npav thiab tsim cov ntaub ntawv khij los ntawm cov npe yooj yim rov qab mus rau cov npe qub. Folders.txt muaj cov npe ntawm cov lej thiab npe. Ib tus neeg Track.txt cov ntaub ntawv muaj daim duab qhia chaw hauv txhua daim nplaub tshev. Tsuas yog Folders.txt xav tau ntawm theem no. Kev txhim kho software tuaj yeem siv cov npe teev npe yav tom ntej.
Cov ntawv Folders.txt yuav tsum tau xa mus rau ESP-12F SPIFFS cov ntaub ntawv kaw lus ntawm /hloov kho uploader.
Nco ntsoov tias koj tuaj yeem tshem cov ntawv tais ceev tseg thiab ntxiv cov tshiab. Thaum koj ntxiv qhov tshiab nrog thawj lub npe tsuas yog khiav tsab ntawv ntxiv. Nws yuav hloov npe tsuas yog cov ntawv tshiab thiab cov ntaub ntawv thiab rov tsim kho cov duab qhia chaw. FOlders.txt tshiab yuav tsum tau muab tso dua.
Kauj Ruam 6: Kev Ua Haujlwm Ib Leeg
4 khawm ua haujlwm raws li hauv qab no.
- Ntim Up. Kev nias luv zuj zus ntxiv ntim, Ntev nias unmutes tus hais lus
- Volume Down Cov xovxwm luv luv txo lub ntim. Nias ntev mute tus hais lus
- Xaiv 1 Nyuaj Nyuaj Tshaj ntxiv cov lej nplaub tshev uas yuav tsum tau ua. Xovxwm ntev pib ua si cov ntawv xaiv
- Xaiv 2 Cov Xov Xwm Luv luv txo tus lej naj npawb. Xovxwm Ntev pib ua si tsis raug
Kauj Ruam 7: Ua Haujlwm Li Qub Browser
Qhov no tau nkag mus ntawm https:// ip (index.htm default)
Nws coj mus rau qhov yooj yim web interface nrog ntim slider thiab txheej ntawm kev ua si tswj
- Ncua
- Ua si
- Random
- Nres
- Hla mus tom ntej
- Hla mus rau Yav dhau los
- UnMute Tus Hais Lus
- Mute Speaker
Hauv qab no yog txheej txheej nyees khawm ib ntawm ib daim nplaub tshev ntawm daim npav nrog lawv cov npe qub. Nyem rau ntawm ib qho ntawm no yuav pib ua cov ntawv ntawd.
Kauj Ruam 8: Pib Ua Haujlwm Browser
Qhov yooj yim browser interface tuaj yeem siv feem ntau rau lub hom phiaj sim. Qhov no tau nkag mus ntawm
Nws tso cai xaiv cov lus txib thiab nws cov kev txwv xa mus rau software.
Cov lus txib no raug xa mus rau ESP12-F siv
http:/ip/dfPlayer? cmd = hais kom ua & p1 = thawj & p2 = thib ob & p3 = thib peb
Cov lus txib muaj yog
- ? cmd = ua si & p1 = nplaub tshev & p2 = khiav
- ? cmd = playmp3 & p1 = khiav
- ? cmd = ntim & p1 = qib (0-30)
- cmd = nres
- ? cmd = ntim
- ? cmd = volumedown
- ? cmd = hais lus & p1 = offon (0/1)
- cmd = ncua
- cmd = pib
- cmd = tom ntej
- cmd = yav dhau los
- ? cmd = hom & p1 = yam
- ? cmd = loopFolder & p1 = nplaub tshev
- cmd = random
- ? cmd = eq & p1 = yam
- ? cmd = ntaus ntawv & p1 = hom
- ? cmd = teeb tsa & p1 = teeb tsa 1 & p2 = teeb tsa 2
- ? cmd = pw
- ? cmd = pib dua
- ? cmd = raw & p1 = cmdcode & p2 = par1 & p3 = par2
- cmd = pib
ip/dfPlayerStatus muab qee qhov xwm txheej tseem ceeb ntawm cov neeg uas ua ntawv suav nrog roj teeb hluav taws xob
Pom zoo:
Yuav Ua Li Cas MP3 Player Nrog LCD Siv Arduino thiab DFPlayer Mini MP3 Player Module: 6 Kauj Ruam
Yuav Ua Li Cas MP3 Player Nrog LCD Siv Arduino thiab DFPlayer Mini MP3 Player Module: Hnub no peb yuav ua MP3 player nrog LCD siv Arduino thiab DFPlayer mini MP3 Player Module. thiab ua si zoo ib yam li lub cuab yeej 10 xyoo dhau los. Thiab nws tseem muaj nkauj yav dhau los thiab nkauj tom ntej lom zem
DIY VEX Player Player: 6 Kauj Ruam
DIY VEX Cov Neeg Ua Si Cov Ntaub Ntawv: Nov yog phau ntawv qhia rau kev tsim kho ntawm DIY VEX Cov Ntaub Ntawv Ua Si. Nco ntsoov tias ntau yam hauv qab no muaj lwm txoj hauv kev uas tuaj yeem ua haujlwm tau zoo dua, cov no tsuas yog cov ntaub ntawv uas muaj. Tus Neeg Sau Cov Ntawv no tuaj yeem ua 33 1/3 thiab 45 rpm cov ntaub ntawv
Audio Player Siv Arduino Nrog Micro SD Card: 7 Kauj Ruam (nrog Duab)
Audio Player Siv Arduino Nrog Micro SD Card: Thov SUBSCRIBE kuv cov channel rau ntau cov haujlwm ……………………. Coob leej Neeg xav nrog SD daim npav sib cuam tshuam nrog arduino lossis xav tau qee lub suab tso tawm ntawm arduino.So ntawm no yog txoj hauv kev yooj yim tshaj plaws thiab pheej yig tshaj los cuam tshuam nrog SD daim npav nrog arduino. koj tuaj yeem pab peb
ESP32 Audio Player: 6 Kauj Ruam (nrog Duab)
ESP32 Audio Player: Vim muaj kev sib kis, kuv tau siv sijhawm nyob hauv tsev ntau dua li ib txwm nyob rau lub hli dhau los. Nws yog qhov tsis yooj yim sua tias ib tus neeg yuav nkees nyob hauv tsev, yog li kuv tau ua lub suab nrog ESP32 kom dhau sijhawm. ESP32 tuaj yeem siv los ua kev ywj pheej txhawm rau ua ntawv thov
Sounds Unit for Scratch Built Toys Siv DFplayer Mini MP3 Player: 4 Kauj Ruam
Sounds Unit for Scratch Built Toys Siv DFplayer Mini MP3 Player: Txais tos rau kuv " ible " #35. Koj puas xav tsim lub suab uas koj tuaj yeem siv tau hauv ntau txoj kev, tso suab uas koj xav tau rau koj cov khoom ua si los kos, hauv ob peb vib nas this? Nov yog cov lus qhia uas piav qhia yuav ua li cas, siv D