Cov txheej txheem:
- Khoom siv
- Kauj ruam 1: Kev sib txuas
- Kauj Ruam 2: Ib puag ncig Programming
- Kauj Ruam 3: Txog Txoj Cai
- Kauj ruam 4: Case
- Kauj ruam 5: Kev ua haujlwm
- Kauj Ruam 6: Qhia
Video: ESP32 Audio Player: 6 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:25
Vim muaj tus kabmob sib kis, Kuv tau siv sijhawm nyob hauv tsev ntau dua li ib txwm nyob rau rau lub hlis dhau los. Nws yog qhov tsis yooj yim sua uas ib tus neeg yuav nkees nyob hauv tsev, yog li kuv tau ua lub suab nrog ESP32 kom dhau sijhawm. ESP32 tuaj yeem siv ua lub kaw lus ywj pheej los khiav cov ntawv thov, tsuas yog ntsaws rau hauv kab, txuas lub cuab yeej, thiab teeb tsa nws. Nrog rub tawm cov haujlwm sib txawv, cov neeg ua si tuaj yeem paub SD daim npav ua suab paj nruag ua haujlwm, Internet muaj nuj nqi hauv xov tooj cua, thiab suab paj nruag tswb muaj nuj nqi.
Tam sim no kuv xav qhia kuv cov txiaj ntsig thiab qhia koj yuav ua li cas.
Khoom siv
Kho vajtse:
- MakePython ESP32 (WROVER, koj tuaj yeem tau txais nws los ntawm qhov txuas no:
- MakePython Audio (koj tuaj yeem tau txais nws los ntawm qhov txuas no:
- Micro SD daim npav
- USB cable
- Suab/lub mloog pob ntseg nrog 3.5mm suab txuas
Software:
- Arduino IDE Cov
- Rub tawm nkauj (.mp3 lossis.wav) rau SD daim npav.
Kauj ruam 1: Kev sib txuas
Txuas ob lub laug cam raws li tus pin. VCC txuas nrog 3v3
Kauj Ruam 2: Ib puag ncig Programming
Txhawb ESP32
Ua raws li Cov Lus Qhia Txhim Kho ntxiv ESP32 kev txhawb nqa yog tias koj tseem tsis tau ua nws:
github.com/espressif/arduino-esp32
Nruab Tsev Qiv Ntawv
- Adafruit SSD1306 thiab cov tsev qiv ntawv nyob.
- ESP32-audioI2S.
Koj tuaj yeem tau txais cov ntawv zip los ntawm Github:
github.com/Makerfabs/Project_MakePython_Audio_Music
Unzip cov ntaub ntawv no. Qhib koj Arduino IDE thiab mus rau Sketch> suav nrog Tsev Qiv Ntawv> Tswj Tsev Qiv Ntawv> Ntxiv. ZIP Library.
Tom qab ntawd qhib daim nplaub tshev: "\ Project_MakePython_Audio_Music / old-src / esp32_mp3 / ESP32-audioI2S". Thiab koj yuav pom qhov hais kom sai uas lub tsev qiv ntawv teeb tsa tiav.
Kauj Ruam 3: Txog Txoj Cai
Suab Ua Si
- Qhib cov ntaub ntawv "/Project_MakePython_Audio_Music/music_player.ino". Koj tuaj yeem tau txais txoj cai los ntawm Github:
-
Lus ceeb toom: MicroPython Audio tuaj yeem rub tawm yam tsis tau ntsaws. Thaum rub tawm qhov program, thov tig qhov hloov pauv tom ntej ntawm 3.5mm Audio interface rau lub Suab ntsaws rau rub tawm ua tiav.
- Hloov kho lossis ntxiv cov ntawv hauv cov zaub.
void lcd_text (Cov ntawv hlua)
Hloov qhov ntim thawj zaug:
audio.setPinout (I2S_BCLK, I2S_LRC, I2S_DOUT);
audio.setVolume (14); 0… 21…
Hloov nkauj:
yog (digitalRead (Pin_next) == 0)
{Serial.println ("Pin_next"); yog (file_index 0) file_index--; lwm file_index = file_num - 1; open_new_song (file_list [file_index]); print_song_time (); button_time = millis (); }
Upload cov cai
Web Xov tooj cua
- Koj tuaj yeem tau txais cov cai los ntawm qhov txuas:
- Lub vev xaib xov tooj cua xav tau txuas rau Is Taws Nem, koj yuav tsum hloov pauv WIFI cov ntaub ntawv.
const char *ssid = "Makerfabs";
const char *password = "20160704";
Ntxiv, rho tawm lossis hloov kho xov tooj cua chaw nyob hauv cov cai hauv qab no:
Txoj hlua noj = {
"0n-80s.radionetz.de: 8000/0n-70s.mp3", "mediaserv30.live-streams.nl:8000/stream", "www.surfmusic.de/m3u/100-5-das-hitradio, 4529.m3u "," stream.1a-webradio.de/deutsch/mp3-128/vtuner-1a "," mp3.ffh.de/radioffh/hqlivestream.aac ", // 128k aac" www.antenne.de/webradio /antenne.m3u "," listen.rusongs.ru/ru-mp3-128 "," edge.audio.3qsdn.com/senderkw-mp3 "," macslons-irish-pub-radio.com/media.asx "};
Txuas mus rau lub vev xaib xov tooj cua:
tsis muaj dab tsi open_new_radio (String station)
{audio.connecttohost (chaw nres tsheb);
Tswb
- Koj tuaj yeem tau txais cov cai los ntawm no:
- hloov lub tswb sijhawm hauv cov cai hauv qab no:
const char *ntpServer = "120.25.108.11";
const ntev gmtOffset_sec = 8 * 60 * 60; // Tuam Tshoj+8 const int daylightOffset_sec = 0; Txoj hlua clock_time = "17:39:00"; Txoj hlua clock_time2 = "17:42:00";
Pib thiab tau txais lub sijhawm , thiab "gmtOffset" tau siv los teeb tsa thaj tsam sijhawm
// pib thiab tau txais lub sijhawm
configTime (gmtOffset_sec, daylightOffset_sec, ntpServer); Serial.println (F ("Nyeem tau npt lub sijhawm."));
Hloov kho lub tswb moos suab paj nruag:
void lub voj ()
{printLocalTime (); audio.loop (); yog (millis () - button_time> 600) {yog (tswb_flag == 0) {yog (showtime ()! = 0) {open_new_song ("clock.wav"); tswb_flag = 1; display.setCursor (0, 24); display.println ("TSUAS !!!!!"); display.display (); ncua (1000); button_time = millis (); }}
Kauj ruam 4: Case
Cov ntaub ntawv tuaj yeem tau txais los ntawm:
www.makerfabs.com/esp32-audio-fixture-kit.html
3D tsim
tsim rooj plaub raws li koj nyiam. Yog tias tsis xav tsim nws ib ntus, koj tuaj yeem tau txais cov ntawv tsim los ntawm no:
github.com/Makerfabs/Project_MakePython_Audio_Music
3D luam ntawv
Hloov koj cov ntawv luam tawm mus rau lub tshuab luam ntawv siv daim npav SD. 3D luam ntawv tuaj yeem ua tiav cov ntaub ntawv tsim tawm sai.
Los ua ke
Sib dhos rooj plaub thiab ob lub laug cam, thiab koj tuaj yeem tau txais lub suab tshiab.
Kauj ruam 5: Kev ua haujlwm
- Fais fab ESP32 ntawm Micro USB thiab lub vijtsam LCD qhia cov ntaub ntawv yooj yim ntawm zaj nkauj.
- Sab laug sab laug tuaj yeem hloov nkauj lossis channel xov tooj cua, thiab nias sab hauv kom ncua kev ua si.
- Kev hloov pauv ntawm sab laug tuaj yeem ua rau nce lossis txo lub ntim, nias sab hauv kom kaw lossis nres lub tswb.
Pom zoo:
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
Kev Tsim Qauv Duab Duab/Duab Duab Duab: 4 Kauj Ruam
Kev Tsim Qauv Duab Duab/Duab Duab Duab: Nyob zoo txhua tus, Hauv qhov kev qhia no, Kuv yuav qhia koj cov txheej txheem ntawm yuav ua li cas thiaj tsim 3D qauv siv cov duab digital. Cov txheej txheem hu ua Photogrammetry, tseem hu ua Image-Based Modeling (IBM). Tshwj xeeb, hom txheej txheem no tau siv los rov ua dua
Cov Duab Duab Duab thiab Cov Duab 1: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Cubes thiab Cov Duab 1: Thaum sim nrog qee cov ntoo ntoo thiab cov duab los qhia, kuv pom ob peb txoj hauv kev los ua cov voos thiab lwm yam duab los ntawm cov khoom siv yooj yim. Los ntawm kev muab cov no los ua Cov Ntawv Qhia, Kuv vam tias yuav txhawb nqa kev ua si thiab kev kawm. Kev hloov pauv ntawm qhov kev qhia no
Yuav Ua Li Cas Thiaj Li Tshem Tawm Lub Computer Nrog Cov Kauj Ruam Yooj Yim thiab Duab: 13 Kauj Ruam (nrog Duab)
Yuav Tsum Tshem Tawm Lub Khoos Phis Tawj Li Cas Nrog Cov Kauj Ruam Yooj Yim thiab Duab: Nov yog cov lus qhia txog yuav ua li cas tshem lub PC. Feem ntau ntawm cov khoom siv yooj yim yog hloov pauv thiab tshem tawm tau yooj yim. Txawm li cas los xij nws yog ib qho tseem ceeb uas koj tau koom nrog nws. Qhov no yuav pab tiv thaiv koj kom tsis txhob poob ib feem, thiab tseem ua rau kev rov ua dua tshiab
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: 4 Cov Kauj Ruam (nrog Duab)
Cov Duab Duab Duab Duab, WiFi Txuas - Raspberry Pi: Nov yog txoj hauv kev yooj yim heev thiab tus nqi qis mus rau cov duab thav duab digital - nrog qhov zoo ntawm kev ntxiv /tshem cov duab hla WiFi ntawm 'nyem thiab luag' siv (pub dawb) xa cov ntaub ntawv . Nws tuaj yeem siv tau los ntawm qhov me me £ 4.50 Pi Zero. Koj tseem tuaj yeem hloov pauv