Cov txheej txheem:

DVD Portable + Pi Zero W: 13 Kauj Ruam
DVD Portable + Pi Zero W: 13 Kauj Ruam

Video: DVD Portable + Pi Zero W: 13 Kauj Ruam

Video: DVD Portable + Pi Zero W: 13 Kauj Ruam
Video: Kiosk mode Bruteforce Evasion with Flipper Zero 2024, Kaum ib hlis
Anonim
DVD Portable + Pi Zero W
DVD Portable + Pi Zero W

Puas muaj tus qub DVD player tso ib ncig? Kuv tau ua, thiab kuv xav ua qee yam lom zem nrog nws. Yog li kuv jam Pi Zero W sab hauv thiab teeb tsa Libreelec nrog KODI rau nws yog li nws tuaj yeem ua yeeb yaj kiab tawm ntawm tus ntiv tes xoo!

Cov cuab yeej koj yuav xav tau:

  • Tej zaum yuav muaj qee qhov kev paub txog Python lossis coding (yog tias koj tsis muaj lub DVD player uas hais meej)
  • Yuav ua li cas siv kab hais kom ua
  • Multimeter- yuav tsum
  • Soldering hlau nrog lub ntsiab lus zoo thiab cov laug (pom tseeb)
  • Hlau
  • Kub kua nplaum phom
  • Daim kab xev hluav taws xob
  • Hobby rab chais / rab riam
  • Hlau snips
  • Tuav tes ruaj khov, ua siab ntev, thiab tswj tus kheej zoo

Kev ceeb toom me ntsis- qhov no yog kev koom tes ncaj ncees thiab qhia paub txuj ci. Yog tias koj sim qhov no, ua li ntawd nrog kev nkag siab koj tuaj yeem ua tau zoo kawg nrog lub tshuab nqa DVD tuag (Kuv tau ua ntawm kuv thawj zaug sim). Tshwj xeeb tshaj yog tias koj tab tom sim qhov no ntawm hom sib txawv/qauv ntawm DVD player. Txawm li cas los xij, koj tsis tau siv cov khoom qub ntawd ib qho ntxiv lawm.

Kauj ruam 1: Lob Koj Qhov Chaw

Lob Koj Qhov!
Lob Koj Qhov!
Lob Koj Qhov!
Lob Koj Qhov!
Lob Koj Qhov!
Lob Koj Qhov!
Lob Koj Qhov!
Lob Koj Qhov!
  • Qhov tseem ceeb tshaj plaws yog lub portable DVD player nws tus kheej. Ua ntej tshaj yog Panasonic DVD-LS ### qauv. Qhov no yuav ua haujlwm nrog lwm lub npe/qauv, tab sis kuv tsis muaj lub tswv yim. Koj nyob ntawm koj tus kheej hauv qhov xwm txheej ntawd. Yog li yog tias koj tsis muaj ib qho thiab koj xav ua qhov no rau qee qhov laj thawj khib koj tuaj yeem pom cov muag no siv ntawm ebay rau $ 40- $ 50. Tus qauv kuv siv rau qhov kev hloov pauv no yog Panasonic DVD-LS850. Qhov kev tsim no yuav txawv raws tus qauv neeg uas ua ntawv uas koj muaj. *** DVD player uas koj siv yuav tsum muaj cov pab cuam sib txuas hauv chaw nres nkoj. ***
  • Raspberry Pi Zero W ($ 10). (Yog tias koj xav siv Pi Zero, koj yuav xav tau ntau lub chaw nres nkoj USB thiab lub hauv paus loj dua)
  • Koj yuav xav tau USB hub ntawm qee yam. Kuv muaj qhov no uas xav tau lub tsev. Nws yog $ 10, thiab nws zoo thiab me me- zoo meej rau cramming rau hauv qhov chaw nws tsis txhais tau tias yuav mus.
  • Tom ntej no, Kuv yuav pom zoo daim npav USB suab. Koj tuaj yeem tau txais lub suab analog tawm ntawm Pi, tab sis nws suab txaus ntshai. Tau txais ib qho ntawm cov no. Lawv nyob ntawm Amazon rau ($ 5). Txuas mus ua raws…
  • Koj yuav xav tau MCP3008-I/P Analog to Digital Converter (ADC). ($ 6) Cov haujlwm no los ntawm kev siv lub teeb liab sib piv (qhov hluav taws xob) thiab xa cov txheeb ze sib piv tus nqi mus rau Pi.
  • Ib daim npav micro SD nrog Libreelec flashed rau nws.

Kauj ruam 2: Sawb lub USB Hub

Tshem tawm USB Hub
Tshem tawm USB Hub
Tshem tawm USB Hub
Tshem tawm USB Hub
Tshem tawm USB Hub
Tshem tawm USB Hub

Qhov me me no tawg zoo heev. Nrog qee qhov kawg koj tuaj yeem rub lub USB lub taub hau tawm ntawm txhais tes tawm tom qab tsuas yog cov hlau hlau. Nws yooj yim heev rau de-solder cov ib los ntawm ib qho. Hauv plawv ntawm lub cuab yeej yog qhov me me PCB 2xUSB hub.

Nov yog $ 10 ntawm Amazon.

Kauj Ruam 3: Sawb USB Card Card

Tshem tawm USB Sound Card
Tshem tawm USB Sound Card
Tshem tawm USB Sound Card
Tshem tawm USB Sound Card

Nov yog daim npav USB uas pheej yig tshaj kuv tuaj yeem pom. Siv tus ntsia hlau los yog ib yam dab tsi nyias txhawm rau txhawm rau lub hnab yas. Nws tau ua tsis zoo yog li nws yuav yooj yim sib nrug. Tom qab ntawd txhua yam koj yuav tsum ua yog de-solder lub jacks. Lawv tsis tshua txuas nrog PCB yog li koj tuaj yeem ua haujlwm sai ntawm lawv. Koj yuav tsis xav tau lub microphone tso tawm, tab sis nws nyuaj rau nrhiav USB lub npav suab pheej yig no yam tsis muaj lawv.

Ntawm no nws yog qis dua $ 5 ntawm Amazon.

Kauj Ruam 4: Tau Txais Koj Tus Kheej ADC

Tau koj tus kheej ADC
Tau koj tus kheej ADC

Tshwj xeeb, qhov 8 -channel analog to digital converter - MCP3008:

Nov yog $ 6 ntawm Amazon

Cov DVD player cov nyees khawm ua haujlwm los ntawm kev xa cov qib sib txawv (0v - 3.3v) mus txog 5 txoj kev sib txawv nyob ntawm seb khawm twg koj nias. Yog li koj tsis tuaj yeem txuas lawv ncaj qha rau GPIO ntawm koj tus Pi. Koj yuav tsum hloov pauv qhov hluav taws xob mus rau pob ntawv digital ntawm cov ntaub ntawv uas Pi tuaj yeem nkag siab.

Kauj ruam 5: Project Layout

Txoj Haujlwm Layout
Txoj Haujlwm Layout

Nov yog qhov kuv txuas txhua yam.

Kuv tau siv daim DVD logic board rau 5v lub zog los ua haujlwm Pi. Tom qab ntawd kuv txuas lub TV pins los ntawm Pi mus rau AUX video hauv DVD player thiab USB daim npav suab suab mus rau AUX audio hauv tus neeg ua si. Txhawm rau pom Pi, koj nias lub AUX khawm ntawm DVD player kom hloov pauv ntawm DVD player (uas kuv tau tso tseg lawm) thiab cov pabcuam hauv.

Kauj Ruam 6: Nrhiav 5v Lub Hwj Chim Source

Nrhiav 5v Lub Hwj Chim Source
Nrhiav 5v Lub Hwj Chim Source
Nrhiav 5v Lub Hwj Chim Source
Nrhiav 5v Lub Hwj Chim Source

Kuv siv kuv lub ntsuas ntsuas los ntsuas ntau yam khoom ntawm DVD player lub logic board kom txog thaum kuv pom ib qho uas nyeem ~ 5v thaum lub zog rau DVD player tau qhib thiab 0v thaum lub zog rau DVD player tsis ua haujlwm. Qhov no tseem ceeb. Koj tsis muaj koj Pi khiav thaum lub DVD player "tawm", tsuas yog nqus lub roj teeb. Koj kuj yuav tsum ntsuas tias cov ntaub qhwv tau nyob ntawm 5v thaum lub DVD player tau ntsaws rau hauv phab ntsa, lossis tshem tawm roj teeb lub zog.

*** Ceev faj koj yuav tsis txuas qhov txuas nrog koj lub ntsuas qhov ntsuas lossis koj yuav tshuab lub fuse ntawm DVD lub logic board. Yog tias koj ua li ntawd, txhua yam tsis ploj, koj tuaj yeem taug qab cov hluas fuse nrog koj lub multimeter thiab dhia nws nrog me ntsis xaim.

Thaum koj pom koj cov ntsiab lus fais fab, muab koj cov xov hlau tso rau hauv qhov chaw, thiab kub kua nplaum rau cov nqus vim tias koj tsis xav tawm cov ntaub los tawm. Txuas koj lub zog thiab cov xov hlau hauv av rau Pi. Kuv txuas nws mus rau 5v thiab GND tus pin ntawm Pi's GPIO, tab sis koj tuaj yeem muab lawv txuas rau USB lub hwj huam yog tias koj ntshai kib koj Pi. (Kuv siv cov ntaub qhwv los muab lub zog rau USB hub, tab sis koj tuaj yeem siv 5v GPIO rau lub hom phiaj ntawd yog tias koj mus rau txoj kev no.)

Kauj Ruam 7: Nyem rau khawm

Nyem khawm
Nyem khawm
Nyem khawm
Nyem khawm
Nyem khawm
Nyem khawm
Nyem khawm
Nyem khawm

Los ntawm kev sim thiab ntau qhov yuam kev, Kuv muaj peev xwm los txiav txim siab yuav ua li cas khawm nias tau sau npe ntawm tus neeg ua si no. Koj tsis tuaj yeem txuas cov nyees khawm rau Pi's GPIO ncaj qha. Lawv tsis yog cov hloov pauv ib ntus. Lawv ua haujlwm los ntawm kev muab cov teeb liab sib piv rau cov logic board hla tsib txoj kev sib cais.

Muaj ntau lub ntsiab lus koj tuaj yeem siv coj mus rhaub rau hauv cov channel uas muab lub pob hluav taws xob khawm. Tus qauv ntawm cov neeg uas ua ntawv no tau muaj qee qhov kev xeem kuv tuaj yeem txuas cov xov me me rau. Tsuas yog cov nyees khawm Kuv tsis tuaj yeem nrhiav cov ntaub qhwv rau yog khawm nrawm thiab rov thim rov qab vim tias lawv tau nyob ntawm sab nraud ntawm pawg thawj coj los ntawm khawm PCB. Lawv tau koom nrog txoj cai rau hauv pawg thawj coj saib xyuas qhov twg zoo li lwm cov nyees khawm nyob ntawm ib qho PCB cais. Kuv yuav tsum xaim ncaj qha mus rau qhov ntsuas hluav taws xob+ sib koom ua ke ntawm khawm nrawm mus.

Kuv yuav tsis nkag mus rau kab txuas MCP30008 ntawm no vim tias muaj cov peev txheej zoo nyob ntawd uas qhia koj yuav ua li cas. Kuv yuav nco ntsoov tias *** lub zog/GND pins ntawm MCP3008 yuav tsum tau txuas rau DVD player 3.3v/GND pins thiab tsis yog Pi vim peb tab tom ua zog Pi los ntawm cov neeg ua si. Kuv muaj peev xwm pom cov ntaub qhwv rau 3.3v thiab GND txoj cai ib sab ntawm cov ntaub qhwv rau cov kab ntawv kuv tau siv (cov kab liab thiab dub ntawm cov xiav).

Nov yog cov ntaub ntawv zoo los pab koj pib nrog MCP3008

*** Siv koj lub multimeter los tshuaj xyuas thiab rov txheeb xyuas koj cov laug txuas kom paub tseeb tias koj tsis muaj kev dhia ntawm cov xov hlau, lossis koj yuav muaj lub sijhawm tsis zoo *** Thaum koj muaj kev ntseeg siab hauv koj lub qhov muag lawm, GLUE Nws DOWN kom koj tsis txhob txhuam cov ntaub qhwv. Cov neeg, Kuv tsis tuaj yeem ntxhov siab qhov no txaus. Cov ntaub qhwv no tsis tau tsim los muab muag los ntawm qee tus neeg hloov pauv 20 xyoo yav tom ntej. Lawv tsis muaj zog thiab yuav rub tawm yog tias muaj kev nyuab siab.

Kauj Ruam 8: Txuas Txuas USB Hub

Txuas Txuas USB Hub
Txuas Txuas USB Hub

Txuas koj ntau yam USB yam. Qhov no tsuas yog zoo li ntsaws USB cov khoom siv txuas rau hauv lub hub tab sis tsis txhob siv cov ntsaws uas koj tab tom siv. Nco ntsoov muab lub zog rau USB hub siv 5v qhov chaw ntawm Pi. Tsis muaj ntau ntxiv rau ntawm no. Koj yuav tsum zaum xim xim txhua yam kom tsis txhob ສັບ ສົນ. Txuj USB xim yog Liab (+5v), Dawb (Cov Ntaub Ntawv +), Ntsuab (Cov Ntaub Ntawv -), Dub (Hauv av).

Kauj Ruam 9: Nqa A/V Cov Cim Tom Qab CRAM

Nqa A/V Cov Cim Tom Qab CRAM
Nqa A/V Cov Cim Tom Qab CRAM
Nqa A/V Cov Cim Tom Qab CRAM
Nqa A/V Cov Cim Tom Qab CRAM
Nqa A/V Cov Cim Tom Qab CRAM
Nqa A/V Cov Cim Tom Qab CRAM

Hlau A/V kab

Koj yuav tsum siv koj tus Pi lub TV pins kom tau txais lub teeb liab video analog. Nov yog lus piav qhia yuav ua li cas. Nqa lub teeb liab video mus rau DVD player AUX cov vis dis aus hauv, los ntawm kev txuas mus rau 3.5mm jack lub ntsiab lus txuas ntawm sab hauv qab ntawm PCB. Tom qab ntawd txuas tus USB daim npav suab suab mus rau AUX suab zoo ib yam. *** Kuv yuav tsum nco ntsoov tias cov qauv sib txawv ntawm DVD player muaj ntau txoj hauv kev sib txuas mus rau lawv qhov chaw nres nkoj AUX. Kuv siv RCA cable uas tuaj nrog nws thiab lub ntsuas cua kom paub tseeb tias kuv tau siv kuv cov xov hlau txuas mus rau qhov chaw raug (tv teeb liab+, GND, suab sab laug, suab sab xis).

CRAM

Npog cov hlau uas tuaj yeem kov lub DVD player lub phaj hauv av nrog qee daim kab xev hluav taws xob los tiv thaiv kom luv. Kuv tsuas yog yuav tsum npog sab nraub qaum ntawm kuv Pi.

Txhua yam uas tau ua dhau los ua ntej cov khoom software yog txhawm rau ntsuas haum hauv qab rooj, txiav qhov twg xav tau kom tau txais yam khoom kom haum. Koj tseem yuav tau txiav tawm lub qhov rau sab nraud USB chaw nres nkoj. Thaum koj tau txais txhua yam haum zoo GLUE KOJ COMPONENTS DOWN. Ceev faj tsis txhob siv kua nplaum ntau dhau. Koj xav tawm txhua yam qis profile yog li koj tseem tuaj yeem haum koj lub npog hauv qab thaum cov kua nplaum nyob hauv qhov chaw. Cram zoo li koj tsis tau crammed ua ntej. Yog tias koj ua tau zoo, tej zaum koj tsis tas yuav cram txhua. Kuv tsis zoo. Kuv nruj. Thiab zoo li ib txwm- tsis txhob sib zog heev lossis koj tuaj yeem tsoo qee yam.

Kauj Ruam 10: Tua Nws

Tua Nws
Tua Nws

Kuv vam tias koj tau sim txhua kauj ruam raws txoj hauv kev kom paub tseeb tias Pi lub zog thiab pub A/V teeb liab rau DVD player lub AUX chaw nres nkoj. Vim tias yog tias koj qhib lub zog thiab tsis muaj dab tsi tshwm sim, koj yuav tsum rov qab mus rau thawj kauj ruam ntawm cov lus qhia no. Thiab tawm koj cov cawv isopropyl vim tias koj yuav tsum tau siv lub zog zoo ntawm nws thiab pib txhuam nws thoob koj cov kua nplaum kub kom tshem nws. Koj kuj tseem yuav muaj hmoo tsis tau hla ib qho los ntawm PCB yog tias koj yuav tsum ua qhov no. Ua haujlwm zoo.

Txuas tus nas rau koj qhov chaw nres nkoj USB sab nraud thiab ntaus lub pob ON. Yog tias txhua yam mus tau zoo, koj yuav tau txais tos los ntawm Libreelec txaws npo tom qab KODI thiab ob peb lub suab bloops qhia rau koj paub tias koj tsis tau ntsia koj lub suab. Yog tias koj tsis hnov dab tsi koj yuav tsum teeb tsa KODI kom siv koj lub USB suab.

Raws li koj teeb tsa KODI, koj yuav xav paub tseeb tias ssh tau qhib thiab teeb tsa koj li kev sib txuas hauv network, vim tias peb yuav xav tau ua cov khoom tom ntej. Thaum koj txuas nrog lub network nco tseg koj DVD player's IP address.

Kauj Ruam 11: Nruab Raspberry PI Cov Cuab Yeej Program Ntxiv-hauv KODI

Nruab Raspberry PI Cov Cuab Yeej Program Ntxiv-hauv KODI
Nruab Raspberry PI Cov Cuab Yeej Program Ntxiv-hauv KODI
Nruab Raspberry PI Cov Cuab Yeej Program Ntxiv-hauv KODI
Nruab Raspberry PI Cov Cuab Yeej Program Ntxiv-hauv KODI

Koj yuav tsum tau teeb tsa KODI ntxiv-hu ua Raspberry Pi Cov Cuab Yeej vim qhov no teeb tsa lub nab hab sej GPIO lub tsev qiv ntawv peb yuav xav nyeem qhov tso tawm ntawm MCP3008 ADC.

Txhawm rau tau nws, mus rau hauv Add Ons menu thiab xaiv Download. Nrhiav 'Program ntxiv-ons' thiab xaiv nws. Koj yuav pom Raspberry Pi Cov Cuab Yeej hauv cov npe uas ua raws. Xaiv thiab nruab nws.

Mus tom ntej thiab lub zog hloov pauv koj Pi ntawm qhov no.

Kauj Ruam 12: Sijhawm SSH thiab Sijhawm Khawm

Tau txais cov ntaub ntawv no ntawm koj lub DVD player

Qhib qhov koj nyiam hloov pauv cov neeg siv khoom (Kuv siv Fetch ntawm Mac) thiab txuas rau koj lub DVD player. Tus neeg siv lub hauv paus thiab tus password yog libreelec.

  • poob cov ntawv test_adc.py rau hauv ~/rub tawm cov npe
  • poob cov ntawv autoexec.py rau hauv ~/.kodi/userdata

autoexec.py yog tsab ntawv sej uas khiav ntawm KODI pib. Koj tuaj yeem siv nws xa cov lus txib rau KODI. Peb yuav siv qhov no los txhais peb lub pob nyem rau hauv kev ua hauv KODI GUI.

Xav paub ntau ntxiv txog autoexec.py

Xam tawm lub pob qhov hluav taws xob thiab cov channel lawv nyob ntawm:

Mus rau lwm lub computer thiab SSH rau hauv koj lub DVD player. Txhawm rau ssh rau hauv libreelec:

ssh hauv paus@DVDPLAYER_IP_HERE

lo lus zais: libreelec

Thaum koj tau nkag mus nkag rau hauv phau ntawv teev npe rub tawm thiab khiav test_adc.py

python test_adc.py

Pib nias lub pob ntawm koj lub DVD player! Thaum koj nias lub pob koj lub davhlau ya nyob twg ssh yuav luam tawm tias lub channel khawm nyob rau qhov twg thiab qhov voltage qhov channel poob mus rau thaum lub pob ntawd nias. Yog tias koj tsis siv kuv tus qauv ntawm DVD player, sau cov channel no thiab cov hluav taws xob. Koj yuav xav tau lawv thaum koj zam tsis dhau yuav tsum hloov kho cov ntaub ntawv autoexec.py.

Kauj Ruam 13: Kho Koj Cov Ntaub Ntawv Autoexec.py

Yog tias koj tsis muaj DVD-LS850 qhov kawg uas koj yuav tsum tau ua yog kho cov ntaub ntawv autoexec.py. Kuv thov txim, tab sis yog tias koj ua tau qhov no deb, Kuv zoo siab heev thiab koj pom tseeb heev ntse rau kev xam tawm kuv qhov kev qhia rambling. Uas tau hais tias, Kuv xav tias koj tuaj yeem txiav txim siab yuav hloov kho cov ntaub ntawv autoexec.py ua haujlwm nrog koj li DVD player li cas. Kuv yeej muaj cov ntaub ntawv autoexec uas yuav ua haujlwm rau DVD-LS86, yog li kuv twv kuv yuav muab nws tso rau ntawm no vim li cas tsis ua. Pom tseeb, koj yuav tau hloov nws mus rau autoexec.py ua ntej muab tso rau hauv koj Pi.