Cov txheej txheem:
- Kauj Ruam 1: Cov Cheeb Tsam
- Kauj Ruam 2: Hlawv Cov Duab ntawm MicroSD Card
- Kauj Ruam 3: Teeb Tus Audioplayers
- Kauj Ruam 4: Teeb Squeezebox Server
- Kauj Ruam 5: Kev Txhim Kho - Chav pw
- Kauj Ruam 6: Kev Txhim Kho - Chav Dej
- Kauj Ruam 7: Kev Sib Koom Hauv Tsev Automation
Video: Ntse Suab Nkauj hauv Chav Dej thiab Da Dej Nrog Raspberry Pi - Sib Koom Ua Ke Hauv Chav, Tswb, Khawm Tswj thiab Kev Siv Tsev Hauv Tsev: 7 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:28
Hnub no peb xav muab koj ob qho piv txwv ntawm yuav ua li cas koj tuaj yeem siv Raspberry Pi nrog peb Max2Play software rau kev siv tshuab hauv tsev: hauv chav dej thiab chav pw. Ob txoj haujlwm zoo ib yam hauv cov suab paj nruag siab ncaj los ntawm ntau qhov chaw tuaj yeem rub tawm los ntawm qhov zoo, qhib-qhov Squeezebox thev naus laus zis uas los ua dawb ib-nias installer nrog Max2Play.
Qhov zoo ntawm kev teeb tsa Multiroom yog qhov uas koj tuaj yeem sib koom ua ke cov players hauv txhua chav (ua si ib txhij), siv ntau yam suab sib txawv rau Squeezebox Server (network tsav NAS, USB drive, DLNA, Spotify, Google Music, Internet Radio, Bluetooth, thiab lwm yam) thiab ua tiav kev tswj hwm txhua tus neeg siv suab nrog tsuas yog ib qho App uas koj xaiv.
Ua tsaug rau cov kho vajtse nthuav tawm hauv qib 1, qhov zoo ntxiv tau qhib:
- kev ua suab paj nruag zoo
- tus nqi tau txais tsawg (qhov project DIY)
- lub tswv yim kho vajtse zoo lub tswv yim (Raspberry Pi, daim npav suab tsis tu ncua thiab ua tiav)
- WAF (Tus Poj Niam Txais Qhov Zoo): ua tsaug rau kev teeb tsa zais lossis lub ntsej muag zoo kawg, cov xov tooj thiab cov cuab yeej tuaj yeem muab zais tag nrho
Kauj Ruam 1: Cov Cheeb Tsam
Cov khoom xav tau rau lub kaw lus no yuav sib txawv, nyob ntawm seb koj xav kom koj chav teeb tsa ntau npaum li cas. Ntawm no, peb yuav xav txog kev teeb tsa yooj yim siv ib txheej hais lus rau txhua chav. Raws li lub hom phiaj xav tau ntawm koj teeb tsa, koj tuaj yeem ntxiv lossis tshem tawm ntau tus players raws li koj xav tau.
Kev sib xyaw ua ke ntawm digital-analogue-hloov pauv thiab lub tshuab ua haujlwm ua rau muaj kev nkag siab tshaj plaws rau chav uas tsis muaj cov khoom siv ua ntej. Cov npav suab no hu ua Amp HATs (Hardware Attached on Top) thiab tuaj hauv ntau yam sib txawv. Koj tuaj yeem sib piv qhov sib txawv Amp HATs hauv peb daim duab sib piv txhawm rau nrhiav qhov haum rau koj thaj chaw ntau chav.
Koj xav tau ib qho Raspberry Pi Amplifier HAT pob teeb tsa rau txhua chav. Yog li rau qhov piv txwv tshwj xeeb no, ob qhov kev teeb tsa Amp HAT tus kheej tuaj yeem raug xaiv raws chav ntawm cov kev cov nyom thiab txoj hauv kev.
Kev teeb tsa yooj yim:
Raspberry Pi 3B
Lub plawv ntawm lub chaw tshaj xov xwm no yog qhov pheej yig tab sis muaj zog 3B, nws tuaj yeem ua haujlwm ntau lub suab thiab vis dis aus nrog nws cov tub ntxhais ua haujlwm plaub thiab 1 GB RAM. Koj tseem tuaj yeem siv 2B yog tias koj tsis xav tau WiFi lossis Bluetooth, lossis 3B+. Txawm li cas los xij, 3B+ tsis muaj qhov txiaj ntsig tseem ceeb rau kev teeb tsa no thiab xav tau lub zog ntau dua.
Amp HAT suab daim npav
Nrog kev sib xyaw ua ke ntawm digital-analogue-hloov pauv thiab lub suab nrov koj yuav tau txais lub suab zoo dua thiab muaj peev xwm ua kom muaj zog hais lus ncaj qha los ntawm Pi.
daim npav microSD
Peb pom zoo siv 8 lossis 16 GB microSD nrog sau nrawm Chav Kawm 10 lossis siab dua. Linux-based Max2Play cov duab suav nrog ntau yam kev daws teeb meem suab thiab lwm yam txuas ntxiv uas tuaj yeem tswj hwm los ntawm txhua lub vev xaib. Thaum hlawv, lub kaw lus nkag tau los ntawm thawj khau raj los ntawm lub vev xaib interface thiab tsis xav tau ib qho kev hais kom ua console lossis Linux paub.
Hwj chim Mov
Koj tsuas yog xav tau ib lub zog siv los ua haujlwm txhua yam (Pi, Amp HAT thiab hais lus tsis zoo).
Koj tuaj yeem tau txais tag nrho cov khoom ib zaug nrog ib qho ntawm peb AMP-Bundles.
Cov neeg hais lus tsis zoo (peb siv JBL-One Control thiab Canton GLE 410.2)
Txhua tus neeg hais lus tuaj yeem siv tau, tsuas yog ua tib zoo saib xyuas koj li Amp HAT lub peev xwm thiab lub zog siv thaum xaiv lawv. Raws li qhov cuam tshuam thiab qhov siab tshaj plaws wattage koj tuaj yeem pom qhov sib xyaw ua ke zoo tshaj plaws rau txhua cheeb tsam.
Yeem: Rotary Encoder lossis IR Receiver rau kev tswj hwm kho vajtse
Kauj Ruam 2: Hlawv Cov Duab ntawm MicroSD Card
Max2Play Duab tuaj yeem hlawv mus rau daim npav siv cov cuab yeej yooj yim xws li WinDiskImager lossis Etcher. Tsuas yog cia nws hlawv thiab thaum txheej txheem ua tiav, muab daim npav tso rau hauv Raspberry Pi.
Kev teeb tsa ntawm cov khoom siv tau yooj yim heev ua tsaug rau Max2Play. Koj tuaj yeem nkag mus rau Max2Play web interface los ntawm kev nkag mus "max2play/" rau hauv txhua lub browser ntawm ib lub cuab yeej txuas nrog tib lub network (PC, Mac, Smartphone, Tablet, thiab lwm yam).
Tom qab thawj zaug pib, peb pom zoo kom hloov pauv lub cuab yeej ntawm Cov Chaw/Reboot nplooj ntawv ntawm lub vev xaib interface. Txoj hauv kev no, lub npe kuj tseem yuav siv rau lub tshuab ntaus suab paj nruag lub npe thiab pom zoo li hauv Squeezebox Server.
Yog tias koj lub router muaj WPS (Kev Tiv Thaiv Kev Tiv Thaiv Wireless) thiab lub cuab yeej nkag tau WiFi hauv lub network, thawj qhov pib tuaj yeem ua tiav tag nrho. Tsuas yog qhib WPS ntawm koj lub router thiab txuas lub cuab yeej rau lub zog siv. Peb kuj tau tsim cais qhia rau teeb tsa WPS.
Tsis teb los tau: Koj tseem tuaj yeem xaj qhov twb tau hlawv thiab teeb tsa daim npav microSD los ntawm Max2Play.
Kauj Ruam 3: Teeb Tus Audioplayers
Thaum koj xub pib koj li Max2Play ntaus ntawv koj tuaj yeem xaiv cov chaw tsim khoom ntawm koj daim npav txuas nrog. Ib lub plugin tshwj xeeb rau daim npav suab npe yuav raug thauj khoom thiab tom qab ntawd, koj tuaj yeem xaiv koj daim npav tshwj xeeb hauv cov ntawv qhia zaub mov tshiab uas qhib.
Nyem tseg. Tom qab rov pib dua koj lub cuab yeej, xaiv "Advanced" hauv qab daim npav xaiv suab kom tau txhua yam teeb tsa zoo rau kev teeb tsa ntau chav. Tom qab lwm qhov rov pib dua koj cov neeg uas ua ntawv yuav tsum tau siv tau los ua suab paj nruag rau.
Kauj Ruam 4: Teeb Squeezebox Server
Txhawm rau teeb tsa Squeezebox Server koj yuav tsum teeb tsa nws ua ntej. Lub plugin nws tus kheej tau teeb tsa ua ntej ntawm Max2Play duab, yog li tsis tas yuav rub nws ua ntej.
Tseem ceeb: Koj tsuas xav tau ib qho kev teeb tsa ntawm Squeezebox Server rau koj cov kab ke ntau chav.
Txhua yam koj yuav tsum ua yog mus rau cov ntawv qhia zaub mov ntawm Squeezebox Server hauv Max2Play web interface, xaiv ib qho ntawm Logitech Media Server (7.9.1 pom zoo) thiab nyem rau nruab. Max2Play cia li rub tawm koj cov ntawv xaiv thiab nruab nws tag nrho ntawm Raspberry Pi.
Tom qab kev teeb tsa tiav, koj tuaj yeem qhib Squeezebox Server tus kheej lub vev xaib los ntawm txhaj rau lub pob xiav loj ntawm nplooj ntawv. Tam sim no koj tuaj yeem xaiv koj cov players, teeb tsa koj lub tsev qiv ntawv thiab kev pabcuam nkauj thiab, tau kawg, ua suab paj nruag.
Kauj Ruam 5: Kev Txhim Kho - Chav pw
Tam sim no tias Tus Neeg rau zaub mov tau ua haujlwm thiab ua haujlwm, peb yuav tsum teeb tsa kho vajtse ncig peb Raspberry Pi teeb tsa.
Rau kev teeb tsa chav pw peb tsim cov thawv ntoo uas peb cov neeg hais lus yuav haum rau hauv. Thaum kawg, peb ntsia cov thawv nruj rau ntawm phab ntsa. Txhua lub cuab yeej tseem tuaj yeem nkag tau los ntawm kev qhib kho dua tshiab.
Txhawm rau tswj tus hais lus, koj tuaj yeem siv lub xov tooj smartphone app lossis txuas tus neeg ua si nrog lub tsev siv tshuab hauv tsev uas twb muaj lawm piv txwv. ntawm lub qhov rooj ntawm koj chav pw. Koj tuaj yeem ntxiv khawm ntev nias kom qhib lub sijhawm pw tsaug zog thiab luv luv rau Kev Ua Si/Pause. Squeezebox Server, ua tsaug rau nws qhib interface, muaj ntau txoj hauv kev los teeb tsa ib qho lus txib. Haum HTTP thiab CLI cov lus txib tuaj yeem pom hauv peb API-Piv txwv plugin uas tseem tau teeb tsa ua ntej thiab tuaj yeem qhib tau dawb hauv peb ntu tsis siv Plugins ntu hauv Chaw/Rov Pib Dua.
Piv txwv HTTP hais kom ua rau "pib ua si":
SQUEEBOXSERVERIP: PORT/status.html? p0 = play & player = MACADDRESS
Kauj Ruam 6: Kev Txhim Kho - Chav Dej
Cov neeg hais lus tuaj yeem tso rau hauv qab nthab lossis, zoo li daim duab, mus rau sab laug thiab sab xis ntawm daim iav. Yog tias koj tseem tab tom npaj tsim koj chav dej, kev tsim kho phab ntsa hauv ntej yuav zoo tagnrho kom haum rau ob lub iav iav thiab hais lus tib lub sijhawm (saib duab). Hauv qhov xwm txheej no, lub ntsej muag hais lus loj dua tuaj yeem yuav (muag cais) kom muaj qhov ciam teb pom rau cov neeg hais lus (saib daim duab 1).
Ib lub laub khawm daws kom nrawm Ua Si/Ncua ntawm lub qhov rooj ntawm chav dej, txuas nrog lub tshuab ua haujlwm hauv tsev uas twb muaj lawm, ua rau niaj hnub siv tau yooj yim dua. IR chaw taws teeb lossis lub pob tswj lub ntim nrog khawm sib xyaw kuj tseem tuaj yeem ua ke rau kev tswj ncaj qha. Feem ntau, txawm li cas los xij, nws yog qhov yooj yim tshaj plaws thiab yooj yim siv lub xov tooj ntawm tes thiab ib qho ntawm ntau lub apps muaj, xws li iPeng, OrangeSqueeze lossis Squeezer (daim duab, app pub dawb), kom tau txais txiaj ntsig ntawm txhua qhov ua tau zoo tshaj plaws (xaiv suab paj nruag, tswj cov npe, lwm yam).
Kauj Ruam 7: Kev Sib Koom Hauv Tsev Automation
Txog kev koom ua ke ntawm lub tsev siv tshuab hauv tsev thiab rau lub phiaj xwm ntawm lub laub khawm ntawm lub qhov rooj (piv txwv li hauv Homematic Software), CLI (Command Line Interface) cov lus txib ntawm Squeezebox Servers tuaj yeem siv tau. Koj tuaj yeem txawm nruab qhov qhib-qhov chaw hauv tsev autmation server ntawm Max2Play. Peb nyuam qhuav tso tawm ib-nias nruab ntawm qhov nrov openHAB 2 neeg rau zaub mov nrog Ntawv UI ua tus hwm tshiab plugin.
Cov kev siv tshuab hauv tsev no tso cai rau kev tswj hwm ib puag ncig ntawm cov neeg siv ib leeg, ib qho nrog HTTP cov lus txib yooj yim (zoo li qhib qee yam ntawm browser), ntawm Telnet, lossis nrog qhov txuas ncaj qha txuas rau lwm lub software. Cov lus txib ua piv txwv thiab cov piv txwv rau qhov no tuaj yeem pom thiab theej ncaj qha hauv Max2Play API-Piv txwv Plugin thiab hauv ntu kev pabcuam sab hauv ntawm Squeezebox Servers nyob rau hauv "Cov Ntaub Ntawv Xov Xwm> Hais Kom Kab Interface".
HTTP cov lus txib kuj tseem tuaj yeem sim tau yooj yim hauv qhov browser. Tsuas yog muab cov lus txib tso rau hauv qhov URL bar ntawm qhov browser thiab ntaus nkag.
Qhov ntawd yog nws! Peb vam tias koj nyiam peb cov tswv yim ntawm kev koom ua ke ntau chav suab rau hauv cov tshuab hauv tsev. Siv lawv los ua kev tshoov siab rau koj tus kheej kev daws teeb meem, qhia peb koj cov kev teeb tsa thiab qhia peb tias koj xav li cas!
Pom zoo:
Tswb Tswb Tswb Tswb Tswb Ntse Teeb: 8 Kauj Ruam (nrog Duab)
Tswb Tswb Tswb Tswb Tswb Lub Teeb: Hauv qhov haujlwm no kuv tau siv lub tshuab cua-tsoo lub tswb tawg tag. Lub ntsej muag ntawm lub moos tau hloov pauv los ntawm 12 LEDs, teeb pom kev los ntawm LED kab ib ncig ntawm ntug ntawm lub moos. 12 LEDs qhia lub sijhawm thiab cov hlua LED tau teeb tsa los ua lub tswb, tig
Ntse Tswb Tswb: Ntse Tswb Tswb Ua Nrog Raspberry Pi: 10 Kauj Ruam (nrog Duab)
Ntse Tswb Tswb: Ntse Tswb Tswb Ua Nrog Raspberry Pi: Koj puas tau xav tau lub moos ntse? Yog tias yog, qhov no yog kev daws teeb meem rau koj! Thaum lub tswb nrov tawm, yuav muaj lub suab (buzzer) thiab 2 lub teeb yuav
Kev Tswj Dej Hauv Dej Hauv Dej Hauv Dej: 10 Kauj Ruam (nrog Duab)
Underwater Remote Control Drone: Kuv txiav txim siab los tsim ROV no rau lub hom phiaj ntawm kev tshawb fawb thiab kev qhuas ntawm lub ntiaj teb hauv qab dej vim tias tsis muaj ntau tus nqi tsim txiaj hauv cov drones hauv qab. Txawm hais tias nws siv sijhawm ntau, tshawb fawb, thiab autodidacticism, nws yog qhov kev lom zem
Arduino Push Alerts rau Lub Tswb, Tswb Tswb, Tswb Tswb Tswb Thiab Lwm Yam: 8 Kauj Ruam
Arduino Push Alerts rau Tswb, Tswb Tswb, Tswb Tswb Tswb thiab lwm yam: IoT Cov Ntawv Ceeb Toom los ntawm koj lub Tswb, Tswb Tswb, Tswb Tswb thiab lwm yam siv Arduino Uno thiab Ethernet Shield. Cov ncauj lus kom ntxaws ntawm kuv lub vev xaib ntawm no Hais txog Arduino Push Alert Box Siv Arduino Uno thiab Ethernet Shield raws li Wiznet W5100 nti rau
LED Tswb Tswb Tswb Tswb Tswb Tswb Tsa Tswm Tsa: 7 Kauj Ruam (nrog Duab)
LED Tswb Tswb Tswb Tswb Tswb Tswb Tsa Tswm Tsa Tswm Tswm: Tsa Kuv Lub Caij Ntuj No Lub caij ntuj no kuv tus hluas nkauj muaj teeb meem sawv thaum sawv ntxov thiab zoo li raug kev txom nyem los ntawm SAD (Lub Caij Caij Nyoog Muaj Teeb Meem). Kuv txawm pom tias nyuaj npaum li cas kom sawv thaum lub caij ntuj no vim lub hnub tsis tuaj