Cov txheej txheem:

Raspberry Pi Audio Dac-Amp-Streamer: 14 Kauj Ruam
Raspberry Pi Audio Dac-Amp-Streamer: 14 Kauj Ruam

Video: Raspberry Pi Audio Dac-Amp-Streamer: 14 Kauj Ruam

Video: Raspberry Pi Audio Dac-Amp-Streamer: 14 Kauj Ruam
Video: The BEST DIY Raspberry Pi Music Streamer?! | Audiophonics Evo-Sabre 2024, Kaum ib hlis
Anonim
Raspberry Pi Audio Dac-Amp-Streamer
Raspberry Pi Audio Dac-Amp-Streamer
Raspberry Pi Audio Dac-Amp-Streamer
Raspberry Pi Audio Dac-Amp-Streamer

Rov ua lub hom phiaj hnub tim Google AIY lub kaus mom lub suab raws li lub siab tsis mloog lub suab tso suab tso tawm.

Tam sim no tias Google AIY cov khoom siv suab tau ze rau ob xyoos, koj yuav pom qhov tshiab tau hnav me ntsis. Lossis, koj yuav xav tsis thoob yog tias koj lub browser tshaj tawm rau kev ua koob tsheej nco txog kev rov muaj dua tshiab muaj dab tsi cuam tshuam nrog cov lus nug koj tau nug txog qhov twg koj tuaj yeem pom qhov kev pom zoo ntawm cov khau tiv thaiv.

Yog tias koj twb muaj ib tus lawm, txoj haujlwm no yuav qhia koj yuav ua li cas coj koj lub cuab yeej Google AIY lub suab uas twb muaj lawm, thiab rov ua lub hom phiaj nws li kev mob siab rau mloog tsis tau taub. Yog tias koj tseem tsis tau muaj cov khoom siv, thiab koj nyob ze ntawm Micro Center; koj muaj hmoo - tseem muaj ntau nyob ib puag ncig, thiab kuv tsis ntseeg tias lawv yuav tau txais qhov pheej yig dua li tus nqi tam sim no ntawm $ 5. (qhov tseeb, lawv yog $ 3 raws li Lub Xya Hli 2019).

Txoj haujlwm no yog txhua yam txog suab thiab tsis muaj dab tsi ua nrog AI. Peb yuav ua haujlwm ntawm ib qho kev ua haujlwm sib cais uas tau muab khaws cia rau ntawm daim npav micro sd cais, uas yuav tso cai rau koj kom txhua qhov ua haujlwm AI tsis cuam tshuam. Tsis tas li ntawd, peb yuav txhim kho cov neeg siv kev paub los ntawm kev qhia lub suab tso suab (rau ob peb duas las ntxiv) raws li peb tsim cov cuab yeej tso suab nrov. Thaum kawg, thaum ua tiav txoj haujlwm no, peb yuav tso lub kaus mom lub suab nyob hauv lub xeev npaj rau kev nthuav dav yav tom ntej. Cov kev txwv ntawm kev nthuav dav yuav tsuas yog ntawm peb qhov kev muaj tswv yim.

Kauj ruam 1: Kev yuav khoom

Kev yuav khoom
Kev yuav khoom

Kuv yuav sau cov lus qhia no los ntawm kev xav uas koj tsis muaj Google Voice cov khoom siv hauv koj li. Koj puas yuav tsum tau teeb tsa lub suab - cov khoom ntxiv xav tau yog cim nrog * hauv qab no. Tsis tas li, qhov tseeb Raspberry Pi muab (Pi 3 A+) zoo kawg nkaus haum rau txoj haujlwm no raws nws daim ntawv foos, thiab kuv pom zoo kom yuav ib qho lawm. Txawm li cas los xij ib tus Pi yuav tsum ua ntev li ntev tau nws yuav haum lub kaus mom lub suab thiab GPIOs.

Cov khoom xyaw:

  • Raspberry Pi (pom zoo Pi 3 A +)
  • 5.25V 2.4 amp micro usb fais fab mov
  • Micro SD Card (nyob ntawm koj qhov kev sau cov nkauj, 16gb yuav tsum tsim nyog)
  • Max 98357A dac thiab amp (los ntawm Adafruit)*
  • Hais lus*(s). Cov khoom siv los nrog ib qho, txawm li cas los kom tau lub tso suab peb yuav xav tau tus hais lus ntxiv. (tseem Adafruit)
  • Google AIY Voice kit
  • Header - ib leeg band*
  • Hais Lus Hlau*

Cov cuab yeej xav tau: Cov hlau txuas, cov laug, cov ntsia hlau loj philips 00 lossis 000. cov hlua hlau, daim npog ntsej muag lossis cov xim pleev xim rau kom ruaj ntseg lub taub hau ib ntus thaum siv, USB rau micro SD adapter.

Kauj Ruam 2: Sib dhos Cov Khoos Phis Tawj

Sib dhos kho vajtse
Sib dhos kho vajtse

Tawm ntawm lub thawv, lub kaus mom lub suab tuaj txog hauv hom mono. Ua tsaug, cov kws tsim txuj ci hauv Google tsim pawg thawj coj los tso cai hloov kho rau lub tso suab yooj yim los ntawm kev ntxiv lwm Max98357a pawg thawj coj los zaum ua lwm lub kaus mom. Lawv txawm piav qhia lub thawv rau peb.

Koj twv nws: Peb yuav tsim lub kaus mom ntawm lub kaus mom. Kho vajtse nyob saum Hardware twb nyob saum lawm.

Siv lub taub hau muab los ntawm Adafruit Max98357a txheej teeb, peb pib los ntawm kev siv lub 7 tus pin lub taub hau rau lub suab lub kaus mom ncaj qha hauv qab cov lus "AIY cov phiaj xwm Lub Suab". Ib daim kab xev npog rau tus txiv neej ntev txuas rau lub ntsej muag ntawm pawg thawj coj saib yuav muaj txiaj ntsig los tiv thaiv lub taub hau los ntawm swb ntawm qhov chaw raws li peb yuav ua haujlwm nrog lub rooj tsavxwm upside down nyob rau theem no ntawm cov laug.

Kuj tseem txuas ob lub pins sab hauv lub npov dawb qhia rau lub suab lub kaus mom qhov twg lub max max 98357a lub rooj zaum yuav zaum.

Tsis txhob muag tus hais lus txuas rau MAX98357a BOARD!

Txuas tus neeg hais lus txuas mus rau lub suab lub kaus mom hloov pauv, ncaj qha hauv qab qhov twg ob tus ncej tau nyuam qhuav muag. Kev txuas tus hais lus sab laug thiab sab xis hais lus txuas yuav tsum tau ua ke ua ke ib sab, hauv ib kab ntawm plaub lub dav hlau.

Tig lub rooj tsavxwm sab xis.

Muab cov jumper tso rau hauv daim ntawv lo "JP4" kaw los ntawm kev tso cov laug txuas ntawm lub jumper. Tsis txhob hnov qab qhov no lossis peb yuav tsis muaj lub tso suab!

Ua tib zoo xa daim ntawv max98357a xiav rau tus txiv neej ntev pins nthuav tawm los ntawm lub suab lub kaus mom. Qhov no nyuaj me ntsis, yog li sim muab cov pins sib dhos rau ntawm lub rooj tsavxwm li sai tau. Nrog qee qhov kev sib cav me me ntawm ob tus pin header, Kuv tuaj yeem ua tiav qhov no nrog tsuas yog siv zog me me.

Ua kom tiav cov laug ntawm tus txiv neej tus pin rau xiav max98357a nti - ob lub xya tus pin header thiab ob tus pin header yuav tsum tuav qhov max98357a khov kho.

Ua tiav nrog Soldering!

Kauj Ruam 3: Txuas rau Pi thiab Txuas Koj Cov Hais Lus

Txuas rau Pi thiab Txuas Koj Cov Hais Lus
Txuas rau Pi thiab Txuas Koj Cov Hais Lus

Siv ob lub nylon spacers muab nrog cov khoom siv, ua tib zoo sib koom ua ke cov poj niam lub suab ntim rau ntawm tus txiv neej lub taub hau ntawm raspberry pi. Cov nylon spacers yuav tsum muab tso rau hauv qhov chaw muab rau koj kom muaj kev nyab xeeb haum ntawm qhov fab ntxeev ntawm lub taub hau.

Siv me me Philips lub taub hau ntswj taub hau (000 lossis 00), tshem lub hau ntswj rau ntawm tus neeg hais lus lub dav hlau kom txaus tso cai rau koj lub xov tooj hais lus kom haum rau qhov qhib qhov qhib. Koj yuav tsum tsis txhob tshem cov ntsia hlau, tab sis qhib lawv kom txaus qhov uas lawv xav tias xoob.

Ntxig koj lub xov tooj cua me me hais lus xaim rau hauv qhov qhib thiab kaw lub hau ntswj kom tuav tus hais lus xaim kom ruaj khov.

Kuv pom cov kauj ruam no yog qhov nyuaj tshaj plaws ntawm tag nrho txoj haujlwm - Kuv tsis tuaj yeem pom tus ntsia hlau me me txaus, lossis kuv lub xov tooj cua hais lus yooj yim heev kom nqus tau cov ntsia hlau ntswj thiab xav kom tawg ntau dua li tuav ruaj. Kuv tau hloov kho los ntawm kev tsim "nibs" lossis cov xov hlau me uas tau ruaj khov txaus kom tiv taus qhov kev sib zog, thiab tsuas yog ntev txaus kom muab muag rau qhov tsis muaj qhov xaus ntawm tus hais lus xaim. Dab tuag, yog- tab sis siv tau.

Ua tiav nrog Kho Vajtse!

Kauj ruam 4: Rub Raspbian Lite

Rub tawm Raspbian Lite
Rub tawm Raspbian Lite
Rub tawm Raspbian Lite
Rub tawm Raspbian Lite

Coob leej ntawm koj twb tau paub zoo txog cov txheej txheem rub tawm thiab hlawv cov duab mus rau SD daim npav, thiab cov kauj ruam tom ntej yog me ntsis dhau ntawm qhov haujlwm no. Kuv yuav ntaus cov theem hauv qab no tsuas yog hauv rooj plaub, tab sis yog tias koj pom koj tus kheej tseem nyam, muaj ntau qhov peev txheej los pab.

Hloov Kho zaum kawg: Lub Rau Hli 2020 rau Buster Lite Rub Tawm.

· Rub tawm thiab teeb tsa Etcher los ntawm Balena Software

· Rub tawm qhov tseeb Raspbian Lite OS los ntawm raspberrypi.org

· Siv Etcher, sau Raspbian Duab rau SD daim npav

· Thaum ua tiav, tshwj tsis yog siv tus lej xoom w - hloov daim SD daim duab tshiab rau peb Raspberry Pi. Yog tias koj siv tus lej xoom w, peb yuav tsum tau kho qee qhov hloov pauv rau WPA_Supplicant.conf cov ntaub ntawv hauv kev faib ua khau raj txhawm rau teeb tsa koj li wifi.

Kauj ruam 5: Configure Pi

Configure Pi
Configure Pi

Nrog peb cov duab tsim tshiab, Cia peb txhawb lub pi. Tab sis ua ntej cia qiv cov saib thiab keyboard los pab nrog teeb tsa. Ntxig daim npav micro sd, thiab txuas lub micro usb them cable. Nrog hmoov zoo, lub teeb ntsuab ntsuab yuav nyem ob peb zaug thaum nws tab tom pib. Thawj khau raj yuav siv li ob peb feeb, tab sis tsis pub dhau 5 feeb peb yuav tsum tau npaj ua haujlwm ntawm peb kev teeb tsa. "Lite" Raspbian tsis muaj lub desktop.

Ib zaug ntawm qhov hais kom ua sai sai: nkag mus ua pi, tus password "raspberry".

· Nkag mus rau lub teeb tsa teeb tsa los ntawm kev ntaus "sudo raspi-config" ntawm qhov hais kom ua.

· Hloov koj tus password tam sim ntawd.

· Teeb koj wifi siv cov kev xaiv network ntawm lub vaj huam sib luag teeb tsa

· Hloov koj cov kev xaiv hauv zos thiab teeb tsa koj lub sijhawm

· Pab kom SSH siv qhov kev sib cuam tshuam vaj huam sib luag xaiv

· Khiav "sudo apt-tau hloov tshiab" txhawm rau hloov kho koj li software rau qhov hloov tshiab kawg

Peb yuav xav tau tus IP chaw nyob ntawm Pi. Kuv pom zoo ib qho app hu ua "FING" uas tuaj yeem rub tawm rau ib qho khoom siv hauv Android thiab nws yuav teev txhua yam khoom siv txuas nrog koj lub network. Peb yuav tab tom nrhiav lub cuab yeej hu ua "raspberrypi". Sau tus IP chaw nyob.

Txij ntawm no mus rau tom ntej, peb yuav tsis xav tau lub monitor lossis keyboard ntxiv lawm. Txhua qhov kev teeb tsa ntxiv yuav ua tiav siv kab hais kom ua los ntawm kev sib tham SSH.

Kauj Ruam 6: Siv SSH qhib Kev Sib Tham ntawm Lub Tshuab Siv Hluav Taws Xob

Siv SSH yog qhov yooj yim heev. Qhib lub davhlau ya nyob twg qhov rai los ntawm ib lub cuab yeej ntawm koj lub network, thiab ntaus cov lus txib

ssh pib@myipaddress

Hloov "myipaddress" nrog cov lej suav tau los ntawm kev siv ntiv tes.

Thawj thawj zaug, koj yuav tau txais tos nrog cov lus ceeb toom txaus ntshai qhia tias koj tsis nyob hauv daim ntawv teev npe, txawm li cas los xij muaj kab lus uas yuav tsum nyeem "kom tshem tawm qhov no …" prompt, ntaus nkag. Tom qab ntawd siv tus xub xub tseem ceeb, rov ua ssh pi@myipaddress hais kom ua, xaiv yog, thiab tam sim no nkag mus rau koj tus password. Nrog koj zoo siab!, Tam sim no koj tau txuas nrog koj lub cuab yeej yog tias koj tab tom saib cov lus txib ntawm "pi@raspberrypi: ~ $".

Kauj ruam 7: Nruab Mopidy

Nruab Mopidy
Nruab Mopidy

Peb tab tom yuav teeb tsa Mopidy ua peb cov nkauj server. Muaj ntau txoj hauv kev xaiv ntawm no, tab sis kuv yuav qhia koj yuav ua li cas txhawm rau txhim kho txuas ntxiv hu ua "Music Box" uas yuav tso cai rau koj los tswj koj lub suab paj nruag los ntawm lub vev xaib sib tham tsis txhob hais kom sai.

Mopidy yog dab tsi? Raws li nws lub vev xaib, Mopidy yog txoj hlua ntawm cov lus loj uas ua rau kuv zoo li tsis zoo nyob rau tam sim no, tab sis cia peb hais Mopidy yog lub platform uas peb cov nkauj yuav ua los ntawm. Nws yuav yog lub suab paj nruag server, MPD (music player daemon), thiab lub web server. PiMusic Box addon yuav muab lub vev xaib uas peb tuaj yeem nkag mus rau thiab tswj Mopidy los ntawm. Kuv xam pom tias txij li nws ua tau zoo nrog pab pawg ntawm cov kev pabcuam nrov xws li Spotify lossis Google Play Music, nws yuav haum rau cov lus qhia no. Ntxiv rau nws txias heev.

Hauv qab no yog cov lus qhia tsis txaj muag theej los ntawm Mopidy rau nruab los ntawm kab hais kom ua:

1. Ntxiv cov ntawv khaws cia tus yuam sij GPG:

sudo wget -q -O -https://apt.mopidy.com/mopidy.gpg | sudo apt -key ntxiv -

2. Ntxiv APT repo rau koj cov peev txheej:

sudo wget -q -O /etc/apt/sources.list.d/mopidy.list

Thaum kawg teeb tsa mopidy:

sudo apt-tau hloov tshiab

sudo apt-tau nruab mopidy

Xaus daim ntawv txaj muag.

Kauj Ruam 8: Siv Python Pip rau Nruab Nrab Lwm… Kev teeb tsa (txuas ntxiv)

Peb nyuam qhuav tau teeb tsa vanilla Mopidy dawb, tab sis peb tsuas yog pib ua. Kev txuas ntxiv yuav yog peb lub tsev thaiv kom ntxiv kev hloov kho rau peb cov vanilla vanilla Mopidy dawb. Vim tias feem ntau ntawm kev txuas ntxiv peb yuav kho rau qhov yooj yim mopidy tau sau hauv nab nab, peb yuav siv qhov sib npaug ntawm apt uas yog nab nab tshwj xeeb.

Ua ntej peb pib siv pip, cia ua ntej kom ntseeg tau tias peb muaj txhua tus gstreamer plugins siv apt:

sudo apt nruab

python3-gst-1.0 / gir1.2-gstreamer-1.0 / gir1.2-gst-plugins-base-1.0 / gstreamer1.0-plugins-good / gstreamer1.0-plugins-ugly / gstreamer1.0-plugins-phem / gstreamer1.0-cov cuab yeej

Qhov no yuav siv ob peb feeb los nruab. Yog tsis muaj Gstreamer, koj yuav tsis tuaj yeem tso suab paj nruag.

Thiab tam sim no peb tuaj yeem nruab python pip:

sudo apt nruab tsim-qhov tseem ceeb python3-dev python3-pip

Tam sim no peb tuaj yeem siv pip ntxiv ntau mopidy nuggets. Pip yog cov cuab yeej nab nab, zoo ib yam li apt, tab sis kuv pom nws ua haujlwm me ntsis nrawm dua li apt. Me ntsis qeeb ntawm qhov thaiv, tab sis nws ncaws hauv nrawm heev.

Hauv qab no yog plaub kom peb pib:

Lub web front kawg. Cia peb siv Iris, tab sis yog tias koj xav tau koj tuaj yeem sim mopidy-musicbox-webclient hloov chaw:

sudo python3 -m pip nruab Mopidy -Iris

Ib lub chaw xov tooj cua hauv xov tooj cua hauv internet nrog 30 raws:

sudo python3 -m pip nruab mopidy -somafm

Lwm qhov chaw pabcuam xov tooj cua hauv Is Taws Nem nrog ntau txoj hauv kev:

sudo python3 -m pip nruab mopidy -TuneIn

Thiab lwm qhov kawg kawg rau lub xov tooj ntawm tes. Xov tooj cua thiab Iris tsis ua si zoo, tab sis lub xov tooj ntawm tes muaj txhua yam hauv internet chaw noj kom mloog:

sudo python3 -m pip nruab Mopidy -Mobile

Thaum ua tiav, koj yuav tsum muaj peev xwm nkag mus rau Music Box siv:

myipaddress: 6680/iris/-or- https:// localhost: 6680/musicbox_webclient

Peb tseem yuav tsis muaj dab tsi los ntawm cov neeg hais lus tseem yog koj sim ua suab paj nruag.

Txog cov npe ntawm lwm cov yam ntxwv thiab txuas ntxiv: Pab koj tus kheej:

sudo pip tshawb nrhiav mopidy

Los ntawm no, koj tuaj yeem txuas ntxiv txuas ntxiv ntawm qhov koj xaiv.

Kuv muaj tus qauv mopidy teeb tsa cov ntawv txuas nrog. Xav tias dawb siv cov ntsiab lus hauv /etc/mopidy/mopidy.conf

sudo nano /etc/mopidy/mopidy.conf

Kauj Ruam 9: Teeb Mopidy Raws Li Kev Pabcuam

Teeb Mopidy Raws Li Kev Pabcuam
Teeb Mopidy Raws Li Kev Pabcuam

Txij li thaum peb yuav xav khiav mopidy thaum pib, ob lo lus txib yuav tso cai rau mopidy khiav ntawm khau raj:

sudo systemctl pab mopidy

sudo dpkg-reconfigure mopidy

Reboot, thiab tom qab ntawd khiav

sudo systemctl xwm txheej mopidy - l

los tshuaj xyuas koj li xwm txheej. Koj yuav tsum pom lub cim ntsuab. Mopidy muaj qhov chaw pabcuam muaj txiaj ntsig zoo los pab nrog kev xaiv teeb tsa ntxiv. Txheeb xyuas Mopidy Documentation site kom paub ntau ntxiv.

Kauj Ruam 10: Ntxiv Koj Lub Suab Nkauj

Ntxiv Koj Tus Kheej Music
Ntxiv Koj Tus Kheej Music

Los ntawm lub neej ntawd, mopidy yuav xav khaws cov nkauj hauv zos hauv daim nplaub tshev hauv qab/var/lib/mopidy/media. Luam koj cov nkauj sau rau ntawd. Kuv pom nws yooj yim tshaj plaws tsuas yog tshem daim npav SD los ntawm pi (tom qab kaw zoo), thiab siv lub micro sd rau usb adapter, ntsaws lub adapter rau koj lub chaw cia khoom thiab luam/muab tso rau ntawd. (qhov no yuav siv sijhawm me ntsis nyob ntawm qhov loj ntawm koj cov khoom sau). Thaum ua tiav, xa rov qab daim npav sd mus rau pi, khau raj nws, rov txuas dua, thiab tom qab ntawd ntaus:

sudo mopidyctl scan hauv zos

Qhov no yuav ntxiv koj cov nkauj rau hauv lub tsev qiv ntawv xov xwm hauv zos hauv Music Box. Koj yuav pom.wma cov ntaub ntawv tsis raug lees paub tias yog suab, thiab.ogg cov ntaub ntawv zoo li tau ploj thaum lub sijhawm tshuaj xyuas. Cov ntaub ntawv Mp3 yuav tsum tsis muaj teeb meem txawm hais tias.

Kauj Ruam 11: Cov Ntaub Ntawv Kho Kom Zoo Nkauj Card - Asound.conf

Koj yuav tsum tsis muaj dab tsi hauv /etc/asound.conf tsis tau, tab sis yog tias koj ua, hloov cov ntsiab lus nrog cov hauv qab no, lossis tsim ib qho siv:

sudo nano /etc/asound.conf

thiab muab tshuaj txhuam:

xaiv snd_rpi_googlehat_soundcard index = 0

pcm.softvol {hom softvol slave.pcm dmix tswj {lub npe Master card 0}} pcm.! default {type asym playback.pcm "plug: softvol"} ctl.! default {hom hw card 0}

ctrl-x thiab Y kom txuag tau cov saum toj no raws li koj cov ntaub ntawv asound.conf tshiab.

Kauj Ruam 12: Nco Ntsoov Peb Siv Qhov Kho Kom raug los Configure.txt hauv /khau raj

yam

sudo nano /boot /config.txt

Ob peb kab kawg yuav tsum zoo ib yam li cov hauv qab no. Peb xav kom ntseeg tau tias tus qauv suab tau tawm tswv yim, nrog rau ib qho dhau los yav dhau los xws li kuv hifiberry dac, thaum siv google lub suab lub kaus mom overlay. Thaum kawg, peb xav qhia tus pi kom siv daim duab i2s. Qhov ntsuas # qhia rau lub kaw lus kom tsis quav ntsej cov kab.

# Pab kom lub suab (thauj khoom snd_bcm2835)

#dtparam = audio = on #dtoverlay = hifiberry-dac dtoverlay = googlevoicehat-soundcard dtoverlay = i2s-mmap

reboot yog tias txhua yam zoo ib yam li cov saum toj no. Tos ob peb feeb, qhib qhov browser mus rau lub suab paj nruag url, thiab ua si qee cov nkauj.

Kauj ruam 13: Txaus siab rau Music

Yog tias koj mloog lub tso suab zoo, lub hom phiaj ua tiav!

Ib qho ntawm cov khoom zoo nkauj txog kev siv raspberry pi ua lub suab paj nruag tsis muaj lub mloog pob ntseg txuas nrog wifi yog tias nws tau ua haujlwm yam tsis siv tag nrho cov peev txheej. Muaj tseeb, peb tab tom tso tawm tsuas yog 3 watts ib channel, tab sis qhov ntawd tej zaum txaus rau kev mloog ze. Koj lub xov tooj roj teeb yuav ua tsaug rau koj.

Muaj qhov tseem ceeb ntsuab tseem ceeb heev - peb tsuas yog siv lub zog 5.25 volts. Thiab piv rau Bluetooth, peb tuaj yeem teeb tsa lub xov tooj cua thiab tsis txuas mus rau 30 ko taw bluetooth ntau. Hais txog peb lub xov tooj, peb tuaj yeem hu xov tooj, ua si game, thiab taug kev me ntsis kom muaj kev ywj pheej yam tsis cuam tshuam cov suab paj nruag. Peb tsuas yog khawb qhov saum npoo. Muaj ntau qhov muaj mopidy txuas ntxiv mus tshawb nrhiav, thiab mopidy muaj cov neeg tsim khoom loj hlob zuj zus raws li nws tau qhib qhov chaw. Kuv yuav cia koj tshawb xyuas cov yam ntxwv uas koj nyiam ntawm koj tus kheej.

Kauj Ruam 14: Xaus

Xaus
Xaus

Ib qhov tshwj xeeb tshaj plaws ntawm txoj haujlwm no yog tias peb tsis txwv peb tus pi los ntawm kev kaw nkag mus rau GPIO. Qhov no tso cai rau peb nkag mus rau ntau qhov kev xaiv ntxiv vim tias lub kaus mom lub suab tau tsim los zoo. Piv txwv li, kuv txoj haujlwm tom ntej yuav yog ntxiv lub pob nyem ib ntus hloov ua lub pob kaw. Nws yuav tsum yooj yim, thiab kuv twb paub tias cov pins xav tau tsaws qhov twg: Lawv tsis muaj kev cuam tshuam. Los ntawm qhov ntawd? Zoo, rau txoj haujlwm no peb tau tsis quav ntsej lub microphone - tej zaum yog pi karaoke? Tej zaum lub teeb pom kev zoo ntawm LED, lossis ntxiv lub cev muaj zog rau lub rooj sib tw jukebox? Txhua tus pins tseem muaj thiab siv tau. Cov lus nug dhau los vim li cas tsis? Thiab tsuas yog thaum koj xav rov qab mus rau AI, tsuas yog pop hauv daim npav SD qub thiab muaj google teb hauv lub tso suab.

Pom zoo: