Cov txheej txheem:

Jukebox Nrog Raspberry Pi: 3 Kauj Ruam
Jukebox Nrog Raspberry Pi: 3 Kauj Ruam

Video: Jukebox Nrog Raspberry Pi: 3 Kauj Ruam

Video: Jukebox Nrog Raspberry Pi: 3 Kauj Ruam
Video: खिलाडी - Khiladi - Video JukeBOX - Khesari Lal - Bhojpuri Hit Songs 2016 new 2024, Kaum ib hlis
Anonim
Image
Image
Jukebox Nrog Raspberry Pi
Jukebox Nrog Raspberry Pi

Cov ntawv qhia no uas yuav tso cai rau koj los tsim Jukebox no (lossis koj tus qauv kev cai:)).

Txoj haujlwm no, xav tau yam tsawg kawg ntawm DIY tus yam ntxwv, kev ntseeg siab nrog lub suab cable thiab computer science feem ntau.

Nco tseg: Cov software muab rau ntawm qhov kev qhia no los ntawm tus sau nws tus kheej, yog nyob hauv daim ntawv tso cai GNU GPLv2.

Khoom siv

Khoom Kho Khoom Siv

- Raspberry Pi

- Saib

- Lwm yam kab (hdmi, suab thiab lwm yam)

- Nyees khawm + USB tswj thiab teeb LED

Hais lus

Yeem:

- Tsheb hifi

- 12 volts fais fab mov (txawm tias ib qho qub lossis PC tuaj yeem ua tau zoo)

- RCA hloov

- RCA lub suab tawm tswv yim

Software Shoplist

- Raspbian GNU Linux (Kuv siv version 9.6)

Fruitbox (Kuv siv version v1.12.1)

- Cov ntawv sau tshwj xeeb thiab teeb tsa (kom rub tawm tom qab ntawm phau ntawv qhia no)

Kauj ruam 1: Kho vajtse

Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse
Kho vajtse

Hauv ntu no, kuv tsuas yog hais ob peb yam lus xwb, vim tias nws zoo ib yam li txheej txheem los tsim lub txee rau khoom, thiab lub network muaj cov lus qhia tag nrho (nug txiv ntxawm Google).

Kuv yuav tsuas hais tias qhov no suav nrog:

- Tus saib

- cov tswj

- Raspberry Pi 3B+ (tab sis nws ua haujlwm nrog Raspberry 2 ib yam nkaus).

- Ntau kab

- Teeb thiab ntau yam

Kuv tsuas tso qee cov duab hais txog theem kev tsim kho ua kev tshoov siab rau koj txoj haujlwm.

Kev xaiv, koj tuaj yeem ntxiv lub tsheb hi-fi, los mloog CDs ib yam. Raws li ib tus neeg, qhov no cuam tshuam qhov haujlwm me ntsis, tab sis hauv kuv lub tswv yim nws hloov nws mus rau hauv lub xov tooj ntawm tes hi-fi ntau dua li lub tshuab MP3 loj heev:)

Txhawm rau txuas lub hwj chim rau lub xov tooj cua hauv tsheb, muaj lwm daim ntawv qhia. Txhawm rau hloov pauv ntawm CD, lub jukebox thiab lwm yam khoom siv suab, koj tuaj yeem siv rca hloov, muaj nyob hauv khw muag khoom hauv online loj.

Kauj ruam 2: Software

Software
Software

Hauv kuv lub tswv yim nqe lus no yog qhov nthuav tshaj plaws, vim nws muaj qhov tshwj xeeb uas kuv tau ua los ua lub jukebox ib feem ua haujlwm, uas yog qhov tseem ceeb ntawm txoj haujlwm.

Cov lus qhia kuv muab, uas kuv tus kheej tso rau hauv kev coj ua, yog yuav yam khoom kho vajtse yam tsawg kawg nkaus kom tuaj yeem ua tus qauv. Los ntawm kev ua li ntawd, yog tias peb paub tias qhov phiaj xwm no yog qhov muaj siab heev, peb yuav txo tus nqi thaum tso tseg.

Peb ua raws cov kauj ruam:

Rub tawm thiab nruab Raspbian ntawm Raspberry

Phau Ntawv Qhia Kev Ua Haujlwm

Rub tawm thiab teeb tsa Fruitbox rau Retropie

Rub tawm thiab qhia

Thawj teeb tsa thiab ntsuas

NCO TSEG: Txhua cov lus txib xav tias yog Raspbian thiab kev teeb tsa lub thawv ntim khoom. Qhov kev hloov kho ntawm cov no yuav tsis tuaj yeem lav qhov ua haujlwm raug, uas tsis tau lees paub

Txog ntawm no, Fruitbox yuav tsum nyob hauv/home/pi/rpi-fruitbox-master directory.

Cia peb luam peb MP3s rau hauv daim nplaub tshev/tsev/pi/rpi-fruitbox-master/Music/(tsim nws yog tias nws tsis muaj) siv peb cov neeg nyiam SFTP (piv txwv li Filezilla).

Kuv pom zoo tsis pub ntau tshaj tsib caug cov ntaub ntawv raws li kev xeem (tom qab koj yuav ntxiv txhua MP3s).

Peb pib ua thawj qhov kev ua haujlwm raws li tau piav qhia hauv phau ntawv qhia:

cd/tsev/pi/rpi-fruitbox-master

./fruitbox –cfg tawv/[YOUR_THEME] /fruitbox.cfg

Qhov twg [KOJ_THEME] yog ib qho ntawm cov tawv nqaij hauv qab no:

-Granite

-Mike TV

-Niaj hnub no

- Number Ib

-Slat

-TouchOne

-WallJukeF

-WallSmall

-Ua siab loj

Sim ntau yam tawv nqaij, siv cov keyboard ua tswv yim ib ntus, tab sis xav txog tias cov nyees khawm xav tau sib txawv rau cov tawv nqaij, thiab qhov no yuav cuam tshuam rau qhov kev xaiv zaum kawg ntawm cov nyees khawm lub cev.

Khawm teeb tsa

Ib qho ntawm cov lus qhia rau tsim lub txee aracade, hais los saum no, yuav tsum piav qhia yuav ua li cas txuas USB tus tswj hwm mus rau cov nyees khawm sib xws.

Txhawm rau txheeb xyuas seb cov nyees khawm tau lees paub los ntawm lub kaw lus, khiav cov lus txib hauv qab no:

cd/tsev/pi/rpi-fruitbox-master

sudo./fruitbox esttest-buttons –cfg./skins/[YOUR_THEME]/fruitbox.cfg

Nyem rau ntawm txhua lub pob thiab sau tseg ntawm cov cai tsim ntawm lub vijtsam. Hloov kho ntawm koj lub PC cov ntaub ntawv teeb tsa fruitbox.btn, hloov pauv rau txhua tus yuam sij koj xav kom ua daim duab qhia tus lej uas peb tau sau tseg, hauv cov kauj ruam dhau los.

Luam cov fruitbox.btn teeb tsa cov ntaub ntawv ntawm SFTP ntawm txoj kev no:

/tsev/pi/rpi-fruitbox-master/rpi-fruitbox-master/

Rov ua dua daim ntawv thov fruitbox raws li qhia saum toj no:

cd/tsev/pi/rpi-fruitbox-master

./fruitbox –cfg tawv/[YOUR_THEME] /fruitbox.cfg

Txheeb xyuas yog cov yuam sij ua haujlwm.

Teem tsis siv neeg pib ntawm fruitbox ntawm khau raj thiab kaw thaum tawm

Ua ntej peb yuav tsum teeb tsa tus kheej nkag mus rau tus neeg siv pi.

Hais kom ua:

sudo raspi-teeb tsa

Ntawm cov ntawv qhia zaub mov ncurses (ib qho grey nrog rau keeb kwm xiav, piv txwv) xaiv:

3 Boot Options Configure options for start-up

Tom qab ntawd:

B1 Desktop/CLI Xaiv seb puas yuav khau raj rau hauv lub desktop ib puag ncig lossis kab hais kom ua

Thiab thaum kawg:

B2 Console Autologin Text console, tau nkag mus ua tus neeg siv 'pi'

Tawm los ntawm kev xaiv

Thiab rau lo lus nug:

Koj puas xav rov pib dua tam sim no?

Teb

Txog ntawm qhov no peb txheeb xyuas tias thaum Raspbian rov pib dua, tus password tsis tas yuav nkag mus ua tus siv pi.

Tam sim no peb yuav tsum siv lub tshuab pib thiab nres. Ua ntej peb rub cov ntawv jukebox.conf.

Cia peb hloov cov ntawv no los ntawm kev tsis pom zoo (piv txwv li: tshem tawm cov cim hash #) peb cov tawv nqaij nyiam.

Rub tawm tsab ntawv runjb.sh. Tom qab ntawd luam cov ntawv runjb.sh thiab jukebox.conf ntawm SFTP mus rau /home /pi directory ntawm peb Raspberry.

Thaum kawg, ntawm Raspbian lub davhlau ya nyob twg (cov ntawv pib ua lub vijtsam) cia ua:

chmod 770 /home/pi/runjb.sh

chmod 770 /home/pi/jukebox.conf

ncha "/home/pi/runjb.sh" >> /home/pi/.bashrc

Hauv qhov no peb tsuas yog yuav tsum rov pib dua lub system thiab txheeb xyuas qhov ua haujlwm raug.

Kauj Ruam 3: Xaus thiab Ntxiv

Yog tias tag nrho cov kauj ruam dhau los tau ua tiav raug, muaj kev lom zem sib sau ua ke thiab kho kom zoo nkauj koj lub jukebox.

Hloov kho cov npe MP3

  1. Ntxiv cov ntaub ntawv hauv/home/pi/rpi-fruitbox-master/Music/directory.
  2. Rho tawm cov ntawv /home/pi/fruitbox.db
  3. Rov pib dua lub thawv ntoo

Advanced teeb tsa

Cov ntaub ntawv rpi-fruitbox-master/tawv/[YOUR_THEME] /fruitbox.cfg muaj cov ncauj lus nthuav dav suav nrog:

  • Qhov ua tau ntawm kev ua nkauj tsis raug tom qab qee lub sijhawm tsis ua haujlwm
  • Muaj peev xwm ntawm kev tswj hwm cov nyiaj npib
  • Ntau ntau…

Cov ntaub ntawv raug cai

Framebuffer

Yog tias koj tsis nyiam "pib-pib cav" uas yog tus qauv tso tawm ntawm Raspbian pib, koj tuaj yeem kho nws nrog cov duab koj nyiam (qhia). Tab sis cov txheej txheem tsis yog rau cov neeg tshiab. Kuv tus kheej tau tso lawv tseg vim tias yog qee yam tsis raug kuv xav nkag siab tias nws yog dab tsi.

WallBradz tawv nqaij

Rau kuv qhov haujlwm kuv hloov daim tawv nqaij raws li tus thawj WallJuke. Yog tias koj xav kom muaj kuv lub ntsej muag ntawm cov yas viav vias koj tuaj yeem rub nws ntawm no

Nco tseg: Cov ntawv qhia no tseem muaj hauv Italis ib yam

Pom zoo: