Cov txheej txheem:

Ua Lub Vev Xaib-Xov Tooj Tsawg dua $ 15: 4 Cov Kauj Ruam (nrog Duab)
Ua Lub Vev Xaib-Xov Tooj Tsawg dua $ 15: 4 Cov Kauj Ruam (nrog Duab)

Video: Ua Lub Vev Xaib-Xov Tooj Tsawg dua $ 15: 4 Cov Kauj Ruam (nrog Duab)

Video: Ua Lub Vev Xaib-Xov Tooj Tsawg dua $ 15: 4 Cov Kauj Ruam (nrog Duab)
Video: Saib Mis paub Poj niam (hluas nkauj) tus yam ntxwv lub siab 2024, Hlis ntuj nqeg
Anonim
Image
Image
Nqi Khoom
Nqi Khoom

Yog li, kuv txiav txim siab ua ib txoj haujlwm uas kuv tau ncua ib ntus: Ua hauv tsev, ua haujlwm tau zoo hauv xov tooj cua web, ua tiav nrog lub suab nrov thiab hais lus, rau qis dua 15 €!.

Koj tuaj yeem hloov pauv ntawm cov xov tooj cua tau tshaj tawm ua ntej nrog kev thawb lub pob thiab koj tuaj yeem tswj lub ntim los ntawm kev tig lub zog zoo.

Kauj Ruam 1: Nqi Khoom

Nqi Khoom
Nqi Khoom
  • ESP-WROOM32 raws microcontroller board. Muaj qhov tsawg kawg yog ob qhov kev hloov pauv ntawm kev txaus siab nrog lub microcontroller nti (saib daim duab) - Kuv siv WEMOS LOLIN32, uas tsis muaj lub pob onboard, vim kuv xav siv kuv tus kheej. Yog tias, txawm li cas los xij, koj xav kom zam kev siv ntau li ntau tau, koj tuaj yeem mus rau lwm qhov kev hloov pauv, uas los nrog lub pob thiab tus pin uas twb tau muag lawm.
  • Adafruit I2S 3W Class D Amplifier Breakout - MAX98357A. Lub Rooj Tswjhwm Saib feeb no muaj cov txuj ci tseem ceeb los ntawm Maxim Electronics uas yog DAC (Digital rau Analog Converter) thiab 3W Class D Amplifier! Koj pub nws cov cim digital los ntawm koj tus tswj hwm thiab tsav cov neeg hais lus ncaj qha, tsis xav tau lwm qhov kev siv hluav taws xob.
  • Hais lus 4Ω/8Ω. Kuv siv SHARP RSP-ZA249WJZZ L, 8 Ω, 10 W, seem Sharp TVs ib feem, uas kuv tau yuav los ntawm khw muag khoom seem hauv online.
  • Hollow bushing 5.5/2.1 hli
  • Tawm Potentiometer 120Ω. Qhov no yuav tsis ua rau lub xov tooj cua ntsiag to thaum tig tag nrho txoj hauv kev, tab sis koj tau txais ntau qhov siv tau ntawm cov neeg hais lus ntim siv nws.
  • Miniature Button (yog tias koj ua raws qhov muag tsis pom cov lus qhia no, xyuas kom tseeb tias lub pob koj siv yog ib txwm nyob hauv txoj haujlwm, thiab thaum nias). Koj kuj tseem yuav tau hloov kho qhov chaws los txhawm rau txhim kho khawm tus cwj pwm (saib software kauj ruam). Hla qhov no, yog tias koj muaj lub microcontroller nrog lub pob onboard.
  • Cov hlau zoo (hauv ntau xim)
  • Kub-ntsws tubing
  • Lub hwj chim-muab 5V nrog 5.5/2.1 tso tawm ntsaws
  • Case. Yog tias koj tswj hwm nrhiav tus neeg hais lus uas muaj qhov ntev sib xws rau qhov kuv siv (11cm x 4cm), tom qab ntawv koj tuaj yeem luam tawm rooj plaub raws li stl cov ntaub ntawv uas kuv tau muab. Txwv tsis pub, koj tuaj yeem tsim kho tshiab: Piv txwv, los ntawm daim cardboard yuav ua txoj haujlwm zoo kawg nkaus!

Koj tuaj yeem mus txawm tias pheej yig dua, los ntawm

  • scavenging tus hais lus los ntawm pov tseg cov khoom siv hluav taws xob (Kuv tau ua qhov no hauv kuv thawj zaug sim thiab tom qab ntawd saib rau qee yam zoo dua).
  • hla lub zog muab khoom siv tshwj xeeb thiab 5.5/2.1bushing, thiab tsuas yog siv lub microcontroller tus microUSB chaw nres nkoj thiab lub xov tooj them. Nco ntsoov txuas 5V/GND ntawm lub microcontroller nrog Amplifier breakout thiab tseem siv lub xov tooj uas muaj zog txaus.
  • hla lub khawm tshwj xeeb thiab siv onboard ib.

Txoj kev no, koj tuaj yeem tso koj cov nqi qis dua $ 10!

Kauj Ruam 2: Kev Siv Hluav Taws Xob Ua Ke

Soldering Electronics Ua Ke
Soldering Electronics Ua Ke
Soldering Electronics Ua Ke
Soldering Electronics Ua Ke
Soldering Electronics Ua Ke
Soldering Electronics Ua Ke

Koj xav tau qee qhov txuj ci yooj yim los ua kom tiav cov kauj ruam no

Txuas lub zog

Muab ob txoj hlua txuas rau ntawm 5.5/2.1 cov khoom siv bushing lub dav hlau. Yog tias koj muaj xim sib txawv, nws tsis yog lub tswv yim phem los siv liab lossis xim av rau qhov zoo (5V) thiab dub lossis ntsuab rau qhov tsis zoo (GND). Txoj kev no, koj ib txwm paub tias cable twg yog qhov hluav taws xob/qhov zoo thiab uas yog hauv av/tsis zoo.

Siv lwm qhov kawg ntawm cov kab txuas rau ESP32 thiab MAX98357A cov laug cam (saib cov qauv).

Txuas ESP32 mus rau MAX98357A

raws li nram no:

ESP tus pin ----------------- I2S teeb liab GPIO25/DAC1 --------- LRCKGPIO26/DAC2 --------- BCLK GPIO22 --- --------------- DATA Source:

Khawm me me

Txuas lub pob me me nrog GPIO0 tus pin thiab GND. Qhov no yog siv los hloov ntawm cov xov tooj cua.

Hais lus & Potentiometer

Txuas tus neeg hais lus tso tawm ntawm MAX98357A hauv koob nrog tus hais lus thiab lub zog ntsuas.

Qhwv

Tom qab ua tiav, qhwv txhua yam hauv cov cua sov-ntsws tubing. Nyob lossis seb koj npaj yuav ntim koj lub xov tooj cua li cas, tej zaum koj tseem xav npog lub ntsej muag tom qab ntawm tus hais lus nrog qee daim npog ntsej muag, kom tsis txhob cuam tshuam nrog hluav taws xob sib txuas.

Kauj ruam 3: Software (Firmware)

Lub software rau lub vev xaib xov tooj cua twb muaj nyob ntawm no:

Txhua yam koj yuav tsum ua yog:

  1. Teeb tsa qhov chaw ib puag ncig cryptic rau ESP kev txhim kho hu ua ESP-IDF. Cov txheej txheem teeb tsa sib txawv me ntsis, nyob ntawm koj lub operating system. Koj tuaj yeem pom cov lus qhia ntxaws ntawm no:

    docs.espressif.com/projects/esp-idf/en/lat… Nws tsis yog tus neeg siv tiag tiag, tab sis tsis txhob cia qhov ntawd ua rau koj ntshai!

  2. Rub tawm lossis (git clone) qhov chaws los ntawm qhov chaw nyob saum toj no.
  3. Kho qhov nkag mus rau koj li WLAN: ua menuconfig thiab nkag mus rau koj li ntawv pov thawj wifi.
  4. hloov kho Web Radios daim ntawv teev npe rau koj nyiam: Cov npe tuaj yeem pom ntawm

    ESP32_MP3_Decoder/lub ntsiab/playlist.pls

  5. Yog tias koj tau txuas koj tus kheej lub pob (tsis zoo li siv lub rooj sib tham hloov pauv nrog lub pob built-in), koj yuav xav hloov cov ntaub ntawv web_radio.c hauv ESP32_MP3_Decoder/components/web_radio/nrog rau ib qho muab ntawm no. Kuv tau ua qee qhov kev hloov kho kom tiv thaiv ntau lub khawm khawm cov xwm txheej los ntawm garbling li lub vev xaib xov tooj cua. Tsawg kawg yog qhov no tau tshwm sim hauv kuv qhov xwm txheej nrog cov cai tsis tau hloov kho.
  6. upload tag nrho txhua yam rau koj ESP32 ontcontroller: ua thiab tom qab ntawd (yog tsim qhia tsis muaj qhov ua yuam kev) ua rau nyem. Hauv kuv qhov xwm txheej, ua rau flash tsis ua haujlwm, tab sis thaum koj ua haujlwm, qhov no qhia cov lus txib (qee yam zoo li nab nab ~/esp/esp-idf/components/esptool_py/esptool/esptool.py bla bla), uas yuav tsum ua haujlwm feem ntau rooj plaub

Kauj ruam 4: Ua tiav

Ua tiav
Ua tiav

Muab txhua yam tso rau hauv rooj plaub, saib xyuas kom tsis muaj cov nplaim hluav taws sib kov ib leeg. Rau lub hom phiaj no, koj tuaj yeem siv cua sov-ntsws tubing, PVC cais kab xev lossis txawm tias rab yaj phom. Ib rab yaj phom nplaum kuj tseem xav tau txhawm rau txhim kho txhua yam hauv txoj haujlwm. Ua qhov no tom qab koj tau sim txhua yam thiab paub txhua yam ua haujlwm raws li qhov xav tau!

Qhov ntawd yog nws, txaus siab!

Pom zoo: