Cov txheej txheem:

Yuav Ua Li Cas Teeb OSMC Nrog Hyperion ntawm Raspberry Pi Nrog WS2812b Coj Sawb: 8 Kauj Ruam
Yuav Ua Li Cas Teeb OSMC Nrog Hyperion ntawm Raspberry Pi Nrog WS2812b Coj Sawb: 8 Kauj Ruam
Anonim
Yuav Ua Li Cas Teeb OSMC Nrog Hyperion ntawm Raspberry Pi Nrog WS2812b Coj Sawb
Yuav Ua Li Cas Teeb OSMC Nrog Hyperion ntawm Raspberry Pi Nrog WS2812b Coj Sawb

Qee zaum kuv hais lus Askiv zoo, qee zaum tsis muaj …

Thawj yam ua ntej. Nov yog kuv thawj qhov kev qhia thiab lus Askiv tsis yog kuv hom lus, yog li thov, tsis txhob nyuaj rau kuv. Qhov no yuav tsis yog hais txog yuav tsim lub thav duab, uas yooj yim. Nws yog hais txog kev txhim kho OSMC ntawm RPi thiab feem ntau yuav ua li cas kom Hyperion ua haujlwm. Thiab cov duab, Kuv tau sau ntau ntau ntawm lawv. Ua raws li cov ntawd thiab koj yuav zoo.

Txog rau pib, dab tsi yog OSMC, Hyperion, thiab lwm yam.

"OSMC (Qhib Qhov Chaw Media Center) yog pub dawb thiab qhib qhov chaw tshaj tawm xov xwm raws li Linux thiab nrhiav tau hauv xyoo 2014 uas tso cai rau koj rov ua dua xov xwm los ntawm koj lub network hauv ib cheeb tsam, txuas nrog khaws cia thiab Is Taws Nem. teeb tsa thiab zej zog thiab ua raws Kodi qhov haujlwm."

Nov yog qhov lawv lub vev xaib hais. Basicaly nws yog tus ua tiav ntawm XBMC.

Kuv siv Raspberry Pi ver. B rau nws, uas yog me me ARM raws lub khoos phis tawj. Nws tsis muaj lub zog txaus los ua cov vev xaib, vim tias nws tsis muaj cov duab nrawm. Tab sis nws tuaj yeem ua yeeb yaj kiab puv HD, vim yog khoos phis tawj video txiav txim siab. Koj tuaj yeem nyeem ntxiv ntawm no.

Hyperion yog Abilight clone, zoo ib yam li Boblight. Nws ntes cov xim ntawm tthe ntug ntawm daim duab thiab ua haujlwm nws ntawm phab ntsa tom qab tv. Koj tuaj yeem pom qhov ntawd ntawm kuv cov duab.

EDIT 8/2020: Cov lus qhia no feem ntau yog hnub qub. Tam sim no koj txhua yam koj yuav tsum ua yog qhib SSH ntawm RPi, rub tawm HyperCon.jar, txuas ntawm HyperCon rau RPi thiab nyem nruab/hloov tshiab. Ua haujlwm nrog RPi3, RPi4 tsis raug sim txij li tsis muaj OSMC txhawb nqa. Lawv ua haujlwm rau nws. Cov chaw nyob zoo ib yam, txhua yam ntawm HyperCon.

Kauj Ruam 1: Sau Cov Khoom - Koj Xav Tau Dab Tsi?

Sau Cov Khoom - Koj Xav Tau Dab Tsi?
Sau Cov Khoom - Koj Xav Tau Dab Tsi?

Yog li cia peb yuav qee yam khoom:

Raspberry Pi - Kuv tab tom siv qauv B thiab B+, kuv kuj muaj RasPi 2, tab sis muaj qee qhov teeb meem paub, yog li kuv lo nrog cov laus no (thiab tsis muaj zog dua), kom txog thaum lawv pom cov kev daws teeb meem ntawd

SD Card - kuv pom zoo kom 16GB chav kawm 10. Qhov sai dua qhov zoo dua. Qhov nrawm yog nyob ntawm qhov nrawm nws tuaj yeem nyeem/sau ntawm daim npav ntawd, vim RasPi tsis muaj tus kheej storrage, OS thiab txhua cov ntaub ntawv nyob ntawm daim npav ntawd. Nov yog cov npe: https://elinux.org/RPi_SD_cards Kuv tab tom siv daim npav SanDisk thiab Kingston.

WS2812b coj sawb - qhov no yog ib daim kab xev coj nrog nws tus kheej hais qhia tau yooj yim. Kuv muaj ib lub nti rau txhua 16 hli ntawm kab txaij. Qhov no yog digitaly tswj cov hlua coj, TSIS TXHOB siv cov analog, nws yuav tsis ua haujlwm. Siv hom tshwj xeeb no thiab txhua yam yuav yooj yim. Cov ntawd zoo ib yam li kuv, nrhiav WS2812b:

5V Lub Hwj Chim Suply-Kuv muaj cov khoom lag luam seem 5V 20A (hom S-100F-5), kuv xav tias 5A yuav txaus. Nws ruaj khov thiab yog qhov peb xav tau, txij li peb yuav siv nws li RasPi lub zog ua tau zoo ib yam.

Kho: 5A PSU tsis txaus, coj hauv kuv kev teeb tsa xav tau yuav luag 18A

Logic Level Converter - peb tuaj yeem ua tau ib qho, tab sis lawv pheej yig.

Thiab: 300Ohm resistor, USB micro B txiv neej txuas (scavenged kuv tawm ntawm tus cable kuv tsis xav tau), xov hlau, cov cuab yeej soldering.

Raws li kuv tau sau, qhov no tsis yog hais txog tus ncej, tab sis kuv yuav sau qee cov lus qhia, ntsuas, thiab lwm yam.

Thiab qhov kawg, software: SD Formater https://www.sdcard.org/downloads/formatter_4/OSMC Installer https://osmc.tv/download/windows/PuTTY https://osmc.tv/download/windows/WinSCP https://winscp.net/eng/download.php HyperCon

Kauj Ruam 2: Txhim Kho OSMC ntawm SD Card

Txhim kho OSMC ntawm SD Card
Txhim kho OSMC ntawm SD Card
Txhim kho OSMC ntawm SD Card
Txhim kho OSMC ntawm SD Card
Txhim kho OSMC ntawm SD Card
Txhim kho OSMC ntawm SD Card

Yog tias koj tau teeb tsa OSMC, koj tuaj yeem hla qhov no thiab ntu tom ntej. Tab sis kev pib huv yog qhov zoo dua.

Kom paub meej cia pib nrog tsim peb daim npav SD nrog SD Formater. Thaum ua tiav pib OSMC installer. Yog tias koj sau cov duab koj tuaj yeem pom txhua kauj ruam ntawm kev teeb tsa nrog sau ntawv. Thawj ntu yog ntawm PC, ib zaug ua tiav, teeb tsa daim npav rau hauv RasPi tom qab ntawd peb mus hla qhov kev teeb tsa ntawm OSMC. Muaj ntaub ntawv ntau ntxiv ntawm daim duab.

Kho 29.11.2015: OSMC hloov tshiab 2015.11-1 tsis ua haujlwm nrog Hyperion kom raug. Txhim kho 2015.10-1 hloov chaw

Kho 10.12.2015: Muaj spidev0.0 ploj hauv 2015.11. Yuav raug kho hauv qhov hloov tshiab tom ntej.

EDIT: nws ua haujlwm

Kauj Ruam 3: Kev teeb tsa ntawm RasPi

Kev teeb tsa ntawm RasPi
Kev teeb tsa ntawm RasPi
Kev teeb tsa ntawm RasPi
Kev teeb tsa ntawm RasPi
Kev teeb tsa ntawm RasPi
Kev teeb tsa ntawm RasPi

Ntsaws daim npav rau hauv RasPi, ua kom muaj zog thiab ua raws cov theem. Nws yooj yim, koj yuav tsis xav tau ntu no yog koj tuaj yeem nyeem. Tab sis tsuas yog kom ntseeg tau saib cov duab uas kuv tau ntxiv. Koj tuaj yeem tswj RasPi nrog cov keyboard thiab/lossis nas, lossis nrog TVs nyob deb yog tias nws txhawb Anynet+.

Kauj ruam 4: Kev thaiv kab

Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv

Peb tab tom ua txoj hlua tom qab teeb tsa OSMC vim tias koj tuaj yeem ua qhov ntawd nrog lub xov tooj them nyiaj lossis thawj RasPi PSU (Lub Hwj Chim Suply Unit). Tab sis nco ntsoov, koj tuaj yeem ua cov thaiv thiab thav duab, tom qab ntawd teeb tsa OSMC.

CEEB TOOM! ZOO TSHAJ PLAWS koj tus PSU tau nyob ruaj khov ntawm 5V qhov tseeb, tsis yog ntau dua, yog li koj zam kev ua phem rau koj RASPI

Raws li kuv tau sau ua ntej, kuv li yog lub lag luam 5V 20A PSU. Ntawd yog ntawm ntug.

Saib ntawm daim duab kom paub meej cov xov hlau. Tab sis nco ntsoov khaws cov xov hlau los ntawm RasPi rau LED sawb luv. Kuv muaj lawv txog 20cm thiab lawv ua rau lub teeb ci.

Cov lus qhia rau tus ncej: Kuv xam tus ncej kom nws nkaum tom qab lub TV thiab coj lub teeb khoov ntawm cov cim txiav hauv kaum. Cov thav duab tag nrho yog ua los ntawm txhuas, ntsia hlau ua ke thiab ntsia ntawm cov ntsia hlau xov rau phab ntsa.

Kauj Ruam 5: Sijhawm Txhim Kho Hyperion

Peb yuav tsum teeb tsa PuTTY ntawm Windows. Nws yog txoj hauv kev rau kev nkag mus rau lub davhlau ya nyob twg ntawm OSMC. Peb yuav tsum paub RasPis IP chaw nyob, lub npe thiab tus lej zais. Koj tuaj yeem pom nws hauv OSMCs cov ntaub ntawv xov xwm

Hloov kho 2019-12-23: HyperCon tuaj yeem teeb tsa Hyperion. Kuv tau hloov kho Los ntawm RPi2 rau RPi3, tsuas yog qhov xav tau yog hloov SD daim npav los ntawm ib qho mus rau lwm qhov, txuas nrog hypercon thiab ntaus khawm hloov tshiab.

Pib PuTTY. Hauv tus tswv lub npe tso tus IP chaw nyob ib qho nias Qhib. Koj tseem tuaj yeem txuag kev sib txuas rau yav tom ntej siv.

Tam sim no nkag mus cov lus txib no rau hauv PuTTYs lub davhlau ya nyob twg:

Peb yuav tsum hloov kho thiab hloov kho qhov system:

sudo apt-tau hloov tshiab

sudo apt-tau hloov tshiab

Tam sim no teeb tsa cov tsev qiv ntawv xav tau:

sudo apt-tau nruab libqtcore4 libqtgui4 libqt4-network libusb-1.0-0 ca-daim ntawv pov

Kev xa tawm ntawm Hyperion:

wget -N

sudo sh./install_hyperion.sh

Puas yog Hyperion khiav lawm?

sudo /etc/init.d/hyperion xwm txheej

Yog tias txhua yam mus zoo koj yuav tsum tau txais "khiav" xwm txheej.

Cov cai muaj cai rau Hyperions teeb tsa cov ntawv yuav tsum tau hloov pauv, yog li peb tuaj yeem tso peb cov ntaub ntawv teeb tsa rau hauv nws.

sudo chmod +x/opt/hyperion/teeb tsa

Nws yuav ua haujlwm tsis muaj cov ntaub ntawv teeb tsa raug, yog li cia peb kawm paub yuav tsim ib qho hauv cov kauj ruam tom ntej.

Kauj Ruam 6: Hyperion Configuration Tool

Hyperion Configuration Tool
Hyperion Configuration Tool
Hyperion Configuration Tool
Hyperion Configuration Tool
Hyperion Configuration Tool
Hyperion Configuration Tool

Rau peb qhov kev xav peb siv HyperCon.jar, tsis yog SSH version. Nws teb sai dua rau kev hloov pauv ua tiav thiab peb tsis xav tau LED chaw taws teeb tswj thiab tuav cov chaw. Nws me ntsis dhau lawm, tsis muaj WS2812b teeb tsa, yog li peb yuav tsum hloov kho teeb tsa phau ntawv qhia tom qab xa mus rau RasPi. Kuj sim sib txawv teeb tsa rau thav duab thav duab luv thiab du.

Txhua yam neded tau sau tseg hauv cov duab, tsuas yog qee cov ntaub ntawv ntawm ob qho no:

Lub sijhawm luv - txiav txim siab ntau npaum li cas khaws cov xim hloov tshiab uas yog tom qab ntawd xa mus rau leds.

Smoothing - smoothes qhov kev hloov pauv ntawm cov xim ntawm leds. Kuv xav tias lub sijhawm no yuav tsum luv dua ntu.

Tom qab koj ua tiav nias Tsim khawm thiab txuag qhov teeb tsa qhov chaw uas koj tuaj yeem pom nws.

Kauj Ruam 7: Yuav luag Muaj

Tam sim no teeb tsa WinSCP thiab qhib nws. Tsim qhov chaw tshiab nrog SFPT raws tu qauv. Tus tswv yuav yog RasPis IP chaw nyob, ib yam li rau PuTTY. Tus ID nkag mus thiab tus password ib yam nkaus. Txuag qhov kev sib txuas, yog li koj tsis tas yuav ua qhov no ntxiv. Txuas thiab nrhiav Hyperions teeb tsa hauv/opt/hyperion/config/. Hloov qhov qub nrog koj cov ntaub ntawv hyperion.conf.json. Yog tias muaj teeb meem tso cai, khiav cov lus txib chmod dua. Qhib nws ntawm RasPi hauv WinSCP thiab hloov qhov no:

"ntaus ntawv":

"ntaus ntawv":

sudo /etc/init.d/hyperion rov pib dua

Ntawm PuTTY koj yuav tsum pom hyperion qhov xwm txheej - OK, thiab coj yuav tsum ua txhua yam uas koj tau teeb tsa raws li kev ua haujlwm hauv. Yog tsis yog, qee yam tsis raug. Ob qho hyperion tsis ua haujlwm (xwm txheej tsis zoo), lossis feem ntau yuav yog qhov teeb meem tsis zoo. Txheeb nws dua.

Kauj ruam 8: Bonus

Nrog koj zoo siab, koj ua tau lawm

Thiab raws li qhov tau txais txiaj ntsig rub tawm thiab teeb tsa Hyperion Free ap los ntawm Google Ua Si, yog li koj tuaj yeem tswj lub leds nyob deb ntawm koj lub xov tooj. Tsuas yog nyias uas koj xav tau yog RasPis IP chaw nyob, dua.

Kuv qhia teeb tsa IP zoo li qub rau RasPi. Kuv tau xauv kuv li tiv thaiv nws qhov chaw nyob MAC ntawm router. Txhua lub sijhawm kuv txuas qhov tshwj xeeb RasPi no kuv tau txais tus IP chaw nyob ib yam thiab kuv tsis tas yuav hloov nws hauv txhua cov apps ntawd.

Kuv vam tias kuv tsis hnov qab ib yam dab tsi …

Le FIN thiab txaus siab ua yeeb yaj kiab nrog lub teeb pom kev zoo no.

Pom zoo: