Cov txheej txheem:

Ntoo thiab 3D Luam ESP32 Webradio: 5 Kauj Ruam
Ntoo thiab 3D Luam ESP32 Webradio: 5 Kauj Ruam

Video: Ntoo thiab 3D Luam ESP32 Webradio: 5 Kauj Ruam

Video: Ntoo thiab 3D Luam ESP32 Webradio: 5 Kauj Ruam
Video: Plab Plab Ntswg..(Pluav Pluav Ntswg) Maiv Twm New Song 2023-2024 2024, Kaum ib hlis
Anonim
Ntoo thiab 3D Luam ESP32 Webradio
Ntoo thiab 3D Luam ESP32 Webradio
Ntoo thiab 3D Luam ESP32 Webradio
Ntoo thiab 3D Luam ESP32 Webradio

Hauv Cov Lus Qhia no Kuv yuav qhia koj yuav ua li cas thiaj tsim webradio/"SDcard MP3" player siv ESP32 thiab yuav ua li cas thiaj tsim lub tsev luam ntawv 3D nrog cov khoom ntoo rau nws.

Kuv niam tsis ntev los no tau hloov mus rau hauv lub tsev tshiab thiab xav hloov lub boombox qub uas siv los ua nkauj hauv chav dej, yog li kuv tsim lub xov tooj cua no kom haum rau lub txee hauv chav dej tshiab. Nws tsis yog HiFi system, tab sis nws zoo txaus los hu nkauj nrog rau qee cov nkauj hauv da dej.

Lub sofware yog los ntawm qhov txaus GitHub Project los ntawm Ed Smallenburg. Nws tau sau rau Arduino IDE thiab tau sau tseg zoo heev, yog li txawm tias koj tsis paub ntau txog ESP32, lossis yuav ua haujlwm li cas, koj yuav tsum tsis muaj teeb meem kom tau qhov no los ua haujlwm: https://github.com /Edzelf/ESP32-Xov tooj cua

Koj yuav xav tau:

  • ESP32 Dev Cov Khoom
  • A VS1053B MP3 Decoder Board
  • 1.8 "TFT LCD Zaub nrog SD Card qhov
  • Class D Stereo Audio Amplifier
  • A 3W 4Ohm Stereo Speakers
  • Micro-B USB Breakout Board
  • Saj zawg zog Jumper Xov
  • Lub laub khawm (ON-OFF)
  • M3 Tshuab Ntsia Hlau thiab Ceev
  • Ntoo Veneer (Walnut sib piv zoo nrog PLA dub)
  • Ib qho FFF 3D Tshuab Luam Ntawv lossis Kev Luam Ntawv xws li 3D Hubs
  • Utiliy Riam
  • Ntoo Varnish
  • CA kua nplaum
  • Kub nplaum

Kauj ruam 1: Program ESP32

Qhov program ESP32
Qhov program ESP32

Cia peb pib los ntawm kev thau khoom ESP32 nrog rau software teeb tsa tus pin uas peb xav siv. Rub tawm GitHub chaw cia ua zip file lossis clone nws rau koj lub khoos phis tawm ntawm no. Unzip cov ntawv khaws tseg thiab qhib lub ntsiab.ino cov ntaub ntawv hauv Arduino IDE. Txuas ESP32 rau koj lub khoos phis tawj ntawm USB cable.

Yog tias koj tsis tau siv ESP32 nrog Arduino IDE, ntxiv qhov URL hauv qab no rau hauv cov npe "Lwm Tus Thawj Saib Xyuas Haujlwm URL's" hauv qhov ua ntej ntawm IDE: https://dl.espressif.com/dl/package_esp32_index.js. Tom ntej no, mus rau Cov Cuab Yeej> Pawg Thawj Coj> Boardmanager…, tshawb rau “ESP32” thiab teeb tsa tus thawj tswj hwm tshiab. Thaum nws tau teeb tsa, koj tuaj yeem xaiv "ESP32 Dev Module" los ntawm cov npe ntawm cov laug cam.

Tej zaum koj yuav xav tau teeb tsa qee lub tsev qiv ntawv ntxiv, tab sis yog li ntawd, IDE yuav ceeb toom rau koj txog qhov no thaum xub sim muab cov cai tso rau hauv pawg thawj coj. Arduino lub vev xaib piav qhia yuav ua li cas ntxiv cov tsev qiv ntawv zoo heev.

Tom qab xa cov cai, ESP yuav tsim WiFi AP los ntawm qhov uas koj tuaj yeem mus txog lub web interface uas koj tuaj yeem hloov kho lub webradio teeb tsa. Cov ntsiab lus yuav hloov pauv yav tom ntej, raws li txoj haujlwm txhim kho, yog li kuv yuav txuas rau cov ntaub ntawv PDF tsis txhob rov ua dua qhov uas twb tau sau lawm.

Hauv lub qhov rai teeb tsa koj tuaj yeem nkag mus rau ib lossis ntau pawg ntawm WiFi daim ntawv pov thawj, hloov qee qhov pins siv ntawm ESP ntxiv rau ntxiv thiab tshem tawm txog 100 qhov chaw nres tsheb xov tooj cua presets.

Kauj Ruam 2: Luam Vaj Tsev

Kuv tsim lub tsev nyob rau webradio hauv Fusion360 thiab luam tawm hauv dub PLA ntawm kuv 3D Tshuab Luam Ntawv. Tus qauv tsim muaj lub cev tseem ceeb, nrog rau pem hauv ntej thiab lub phaj tom qab uas khawm haum rau hauv qhov chaw. Txhua ntu luam tawm nrog kev txhawb nqa tsawg. Kuv suav nrog.f3d cov ntaub ntawv ntxiv rau cov ntaub ntawv.stl, yog li xav tias yuav hloov pauv vaj tsev li cas koj nyiam. Koj tseem tuaj yeem pom cov ntaub ntawv CAD ntawm kuv nplooj ntawv sib txawv.

Kuj tseem muaj qee tus neeg hais lus npog uas koj tuaj yeem luam tawm. Kuv txhais tau tias yuav npog lawv nrog daim ntaub zoo nkauj thiab kom lawv txuas nrog lub tsev nrog cov hlau nplaum, yog li lawv tuaj yeem raug tshem tawm. Hmoov tsis zoo cov hlau nplaum/ntsia hlau combo kuv siv tsis ua haujlwm thiab kuv tsuas xav txog kev siv cov hlau nplaum tom qab nws lig dhau lawm (saib cov kauj ruam tom ntej), yog li kuv tsis siv lawv.

Cov phaj pem hauv ntej tuav lub LCD, lub suab nrov nkag thiab ob tus neeg hais lus thiab yuav tsum luam tawm lub ntsej muag. Lub phaj tom qab muaj qhov tsis txaus ntseeg rau ESP32 thiab lub micro USB breakout board. Lub cev tseem ceeb muaj lub qhov rau 12 hli LED latching laub khawm uas tuaj yeem ua lub zog khawm.

Kuv kuj tau tsim lub pob qhov rooj rau lub tshuab nkag teb chaws raws li kuv nrhiav tsis tau ib qho hauv online, uas yog ob qho tib si hauv kuv cov peev nyiaj thiab saib zoo txaus. Kuv xav tsis thoob los ntawm qhov ua tau zoo npaum li cas thiab tsis cia siab tias kuv tus Anet A8 muaj peev xwm los daws qhov kev sib tsoo me me. Qhov no kuj luam tawm yam tsis muaj kev txhawb nqa.

Kauj Ruam 3: Thov Ntoo Veneer

Ua ntawv thov ntoo Veneer
Ua ntawv thov ntoo Veneer
Ua ntawv thov ntoo Veneer
Ua ntawv thov ntoo Veneer
Ua ntawv thov ntoo Veneer
Ua ntawv thov ntoo Veneer

Txawm hais tias koj tuaj yeem tawm hauv vaj tsev zoo li yog, Kuv xav ntxiv qee qhov hais lus ntoo rau nws. Yog tias koj luam tawm lub phaj pem hauv ntej thiab tom qab lub ntsej muag, koj tsis tsuas yog siv qhov kev txhawb nqa tsawg tshaj plaws, tab sis saum npoo txawm tias txaus los lo qee cov veneer rau nws. Ua tib zoo txiav ib qho ntawm verneer mus rau qhov ntxhib ntawm lub phaj tom qab. Thov cov hlaws ntawm CA kua nplaum nyob ib puag ncig ntawm daim ntawv luam tawm thiab qee qhov mus rau nruab nrab ib yam (cov kua ua tau zoo dua rau qhov uas hom gel). Tig cov ntawv rov qab thiab maj mam txo nws mus rau lub veneer, tom qab ntawd nias kom khov kho. Ua qhov no rau ntawm qhov chaw tiaj thiab so tawm cov kua nplaum ntau dhau uas tuaj yeem ntws los ntawm ob sab. Tom qab ob peb feeb, cov kua nplaum yuav tsum tau kho kom txaus rau koj nqa lub phaj nrog cov veneer ntawm nws rov qab los.

Tom ntej no koj tuaj yeem txiav cov veneer ntau dhau nrog rab riam muaj txiaj ntsig lossis rab chais hniav. Siv koj lub sijhawm ua qhov no, raws li cov veneer yuav txiav tau yooj yim nrog cov nplej, tab sis yog nkig heev thaum txiav hla nws. Ua kom ze rau ntawm cov ntawv luam ntawv raws li koj nyiam nrog cov hniav, tom qab ntawd txhuam cov veneer npoo nrog cov ntawv xuab zeb. Kuv tau maj nrawm, yog li kuv txiav txhua txoj hauv kev mus rau cov ntawv luam nrog cov hniav thiab ntais qee cov veneer tawm ntawm lub phaj tom qab. Kuv glued nws rov qab rau hauv qhov chaw thiab koj tsis tuaj yeem pom nws, tab sis nws tuaj yeem zam tau yog tias kuv tau siv sijhawm qee lub sijhawm ntxiv rau nws.

Cov phaj pem hauv ntej yog qhov nyuaj me ntsis vim tias muaj ntau qhov qhib los txiav thiab txiav, tab sis cov txheej txheem yog ib yam nkaus. Kuv tsis xav kom cov ntsia hlau uas tuav Cov Hais Lus kom pom tom qab, yog li kuv tau muab lawv tso rau hauv qhov chaw siv M3 tshuab ntsia hlau thiab cov txiv ntoo sib thooj ua ntej thov cov veneer. Qhov no ua rau txiav tawm cov hais lus qhov me ntsis ntau dua, raws li koj yuav tsum tau ceev faj tsis txhob txiav rau hauv tus hais lus membrane. Yog tias koj tsis xis nyob ua qhov no, tsuas yog lo cov veneer ua ntej thiab txiav tawm cov ntsia hlau qhov tom qab.

Yog tias koj xav tau koj tuaj yeem sim stain cov veneer, tab sis kuv tsis paub meej tias yuav cuam tshuam li cas rau CA kua nplaum hauv qab. Kuv txiav txim siab mus nrog cov ciab raws cov kua roj vanish uas yuav tsuas yog tiv thaiv cov ntoo mus rau qee qib, tab sis twv yuav raug hu ua cov qoob loo ntau dua, uas zoo li zoo nkauj heev.

Kauj Ruam 4: Nqa Cov Khoom Siv Hluav Taws Xob

Hook Up Electronics
Hook Up Electronics
Hook Up Electronics
Hook Up Electronics
Hook Up Electronics
Hook Up Electronics

Cov khoom siv hluav taws xob yog qhov yooj yim, tab sis tuaj yeem ua rau tsis haum yog tias koj maj nrawm zoo li kuv yog:

Sib dhos lub tshuab hluav taws xob, yog tias xav tau, thiab teeb lub jumper rau qhov tsim nyog tau txais. (Faj seeb: Txais tsis sib npaug ntim. Xaiv qhov nce siab kuj tseem tuaj yeem ua suab nrov ntau ntxiv rau hauv lub suab.)

Raws li txhua qhov khoom siv txuas rau ESP32 hauv qee txoj kev, koj tuaj yeem siv Jumper cables rau feem ntau ntawm kev sib txuas. Qee tus pin yuav nyob ntawm seb koj teeb tsa qhov teeb tsa li cas, tab sis lub teeb tsa tsis raug kuj tau hais tawm rau hauv thawj ob peb kab ntawm cov ntawv tseem ceeb Arduino.

Raws li muaj qee qhov txuas txuas nrog, qee tus pin ntawm ESP yuav xav tau txuas nrog ntau dua ib lub rooj tsav xwm. Kuv yooj yim hlais cov kab uas xav tau ua ke, txawm li cas los xij, kuv khuv xim tsis tau tsim PCB kev cai uas kuv tuaj yeem txuas tau yooj yim feem ntau ntawm cov laug cam ntawm lawv lub taub hau. Nws yuav tau cawm kuv dim ntawm kev kub ntxhov ntawm cov xov hlau uas tau tshwm sim. Yog hais tias splicing zoo li tsis meej pem thiab tsim PCB zoo li zoo li ntau qhov tsis meej pem, koj tuaj yeem mus nrog daim me me ntawm perfboard.

Kuv yuav xaus tsim PCB tom qab txhua yam kom tau txais kev coj ua. Yog tias kuv ua kuv yuav ntxiv cov ntaub ntawv gerber ntawm no.

Nco ntsoov ntsia hlau khawm lub zog ua ntej yog tias koj npaj yuav siv nws rau lwm yam khoom.

Thaum txuas lub tshuab hluav taws xob mus rau VS1053 koj tuaj yeem txiav cov txheej qub ntawm lub mloog pob ntseg sib nrug rau 3.5mm nkaus thiab txuas cov xov hlau mus rau lub tshuab hluav taws xob, lossis txuas cov hlua txuas txuas rau cov pawm ntawm lub tog raj txuas rau hauv qab ntawm VS1053 MP3 decoder (saib sketch). Adafruits qhia ntawm lub tshuab raj tseem piav qhia yuav ua li cas txuas cov khoom sib txawv.

Txuas txhua yam sib nrug ntawm tus hais lus. Nws yog qhov yooj yim dua los txuas lawv rau cov ntsia hlau txuas ntawm lub tshuab hluav taws xob kawg.

Kauj Ruam 5: Rooj Sib Tham Kawg

Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg

Kauj ruam kawg yog kom haum txhua yam rau hauv vaj tsev.

Pib nrog phaj pem hauv ntej. Nias lub LCD mus rau qhov sawv ntsug thiab ruaj ntseg nws nrog qee cov kua nplaum kub nyob ib puag ncig sab nraub qaum. Yog tias koj tseem tsis tau txuas cov hais lus, ua tam sim no. Kev tshem lub LCD ua kom txuas tau yooj yim dua (Tipp: Siv cov kua nplaum kub los txuas lub jumper headers ua ke, txoj kev ntawd lawv nyob hauv qhov yog thiab koj tsis tas yuav txheeb xyuas ob zaug ua ntej rov txuas lawv rau LCD). Cov encoder teb tau txuas nrog lub tshuab ntxhua khaub ncaws thiab txiv ntseej.

Tom ntej no, txuas ESP32 mus rau qhov sawv ntawm lub phaj tom qab nrog rau micro USB tawg thiab txuas ob qho nrog qee cov kua nplaum kub. (Saib xyuas kom tsis txhob muab kua nplaum rau hauv USB txuas, nws yog qhov mob kom rov qab tawm. Sim muab nws tso rau hauv qhov chaw nrog USB cable txuas nrog nws). Lub Amplifier tseem tuaj yeem ua rau sab nraub qaum.

Qhov ntawd tsuas yog lub MP3 decoder board. Qhov twg koj lo rau qhov no yog nyob ntawm koj thiab tej zaum yuav vam khom koj txoj kev tswj kab. Kuv glued kuv mus rau ib qho ntawm phab ntsa ntsug hauv lub cev tseem ceeb.

Pub cov neeg hais lus nyob ib puag ncig lub cev tseem ceeb, txiav tawm JST txuas thiab txuas lawv mus rau lub tshuab hluav taws xob nrog cov ntsia hlau txuas.

Thaum kaw qhov thaiv, koj yuav tsum tau siv qee qhov quab yuam. Sim nyem lub cev tseem ceeb kom khawm lub nraub qaum thiab pem hauv ntej.

Thaum kawg lo lub xov tooj mus rau rotrary encoder. Nws yuav tsum muaj kev sib txhuam haum thiab tsis xav tau cov kua nplaum.

Kuv vam tias koj nyiam qhov webradio tsim no. Mus txheeb xyuas Ed's GitHub Page, nws kuj muaj qhov haujlwm zoo sib xws siv ESP8266. Yog tias koj muaj lus nug lossis tswv yim txhim kho, tawm hauv kuv cov lus hauv qab no thiab kuv yuav sim rov qab rau koj sai li sai tau. Yog tias koj sim thiab ntxiv qee cov veneer rau ib qho ntawm koj cov ntawv luam tawm, qhia rau kuv paub tias koj tau txais li cas, Kuv xav hnov txog nws.

Pom zoo: