Cov txheej txheem:

Raspberry Pi Spotify Player Nrog 3D Luam Ntawv Case: 4 Cov Kauj Ruam (nrog Duab)
Raspberry Pi Spotify Player Nrog 3D Luam Ntawv Case: 4 Cov Kauj Ruam (nrog Duab)

Video: Raspberry Pi Spotify Player Nrog 3D Luam Ntawv Case: 4 Cov Kauj Ruam (nrog Duab)

Video: Raspberry Pi Spotify Player Nrog 3D Luam Ntawv Case: 4 Cov Kauj Ruam (nrog Duab)
Video: Настя и Арбуз с вымышленной историей для детей. 2024, Hlis ntuj nqeg
Anonim
Raspberry Pi Spotify Player Nrog 3D Luam Ntawv
Raspberry Pi Spotify Player Nrog 3D Luam Ntawv

Hauv cov lus qhia no kuv yuav qhia koj yuav ua li cas ua Raspberry Pi raws li Lub Tshuab Ua Si uas tuaj yeem ua suab paj nruag hauv zos, lub vev xaib xov tooj cua thiab ua raws li tus hais lus sib txuas sib txuas lus, txhua lub tsev nyob hauv phab ntsa mountable 3D luam ntawv.

Kuv tau tsim lub tshuab ntaus nkauj no rau kuv chav ua phooj ywg, vim peb nyiam mloog nkauj thaum ua noj lossis ci, tab sis lub khoos phis tawj hais lus nrov nrov los ntawm chav nyob tsuas yog tsis txiav nws.

Koj yuav xav tau:

  • Raspberry Pi 3
  • Micro SD Card (tsawg kawg 8GB)
  • Lub tso suab hais lus nrog kev sib xyaw USB DAC
  • Kev Ruaj Ntseg Kaw Hluav Taws Xob
  • 3.5 "Touchscreen
  • Poj niam rau Txiv Neej Micro USB Cable
  • Soldering Hlau
  • Hlau Stripper
  • Hlau

Rau teeb:

  • Keyboard
  • Nas
  • HDMI Saib

Kauj ruam 1: Teeb tsa Pi

Teeb tsa Pi
Teeb tsa Pi

Ua ntej cia peb txheeb tawm software sab ntawm yam. Lub tshuab ntaus nkauj yog ua raws Logitechs nrov, tab sis so haujlwm ntawm Squeezebox players. Tus Pi khiav LogitechMediaServer thiab Squeezelite tus neeg siv ntxiv rau Jivvelite interface. Koj yuav xav tau SSH yooj yim thiab kev paub ua haujlwm kab rau cov kauj ruam hauv qab no. Yog tias koj tsis paub nrog SSH, ces OverTheWire yog qhov chaw zoo kawm paub yuav siv cov kab comand thiab SSH li cas.

Rub tawm Raspbian thiab nyem nws mus rau SD daim npav siv ib qho ntawm cov haujlwm hauv qab no:

  • Win32DiskImager (Windows)
  • ApplePi Baker (Mac)
  • Etcher (Mac thiab Windows)

Ntxig daim npav SD rau hauv Pi thiab txuas txhua qhov khoom siv (keyboard, nas, saib) thiab lub zog. Thaum khau raj rau hauv lub desktop ib puag ncig, teeb tsa wifi thiab pab kom SSH thiab GPIO ua haujlwm zoo nyob hauv qhov chaw.

Tam sim no koj tuaj yeem txuas tag nrho cov khoom siv txuas ntxiv thiab txuas ntxiv ntawm SSH los ntawm ib lub khoos phis tawj hauv tib lub network kom teeb tsa Pi.

Thaum txuas nrog ntawm SSH, siv cov lus txib hauv qab no txhawm rau nkag mus rau Raspberry Pi qhov kev txiav txim siab

sudo raspi-teeb tsa

Hloov cov lus, txheej txheem keyboard thiab tus neeg siv tus password raws li koj xav tau (xaiv tau), tom qab ntawd nthuav cov kab ke system thiab paub meej tias rov pib dua.

Tom ntej no, txuas lub vijtsam kov thiab teeb tsa cov tsav tsheb uas xav tau (nyob ntawm seb lub vijtsam twg muaj rau koj):

  • Adafruit TFT Tsav Tsheb
  • Waveshare TFT Tsav Tsheb

Thaum teeb tsa kom raug, koj yuav tsum pom lub desktop ib puag ncig ntawm lub vijtsam kov.

Txhawm rau teeb tsa lub suab paj nruag, kuv ua raws John Hagensieker phau ntawv qhia teeb tsa LogitechMediaServer, Squeezelite thiab Jivelite. Tsuas yog ua kom ntseeg tau tias tus hais lus USB txuas nrog thiab daim npav suab raug xaiv raug xaiv.

Spotify Txuas kev txhawb nqa tuaj yeem yooj yim ntxiv los ntawm tus thawj tswj hwm plugin hauv Logitech Media Server.

Kuv kuj tshem tus cursor mus tas li, rau qhov laj thawj zoo nkauj, siv:

sudo nano /etc/lightdm/lightdm.conf

thiab hloov cov kab hauv qab no

#xserver-hais kom ua = X

rau hauv

xserver -command = X -nocursor

Lub vijtsam tuaj yeem ntsuas ntsuas siv xinput calibrator raws li tau piav qhia hauv w คลื่น sib koom wiki.

Tom qab txhim kho qhov hloov pauv tsab ntawv los ntawm mausberry circuits Kuv tau hloov pauv hauv-thiab tso tawm rau GPIO20 thiab GPIO21 txij li qhov kev tso tawm ua ntej peb twb tau siv los ntawm lub taub hau ntawm lub vijtsam.

Kauj Ruam 2: Luam Ntawv Case

Luam Ntawv Case
Luam Ntawv Case

Cov ntaub ntawv yog remix/txuas ntxiv ntawm arcmatt's "Pi TFT plus Console Case" ntawm Thingiverse. Hauv Fusion 360 Kuv tau ntxiv ob lub tsev hais lus hauv qhov tsim tib yam li cov ntaub ntawv tseem ceeb thiab hloov kho lub cev tseem ceeb kom muaj ob lub phab ntsa txuas qhov thiab cov ntsiab lus txuas rau USB Hais Lus suab thiab kaw lub rooj tsav xwm kom nyab xeeb.

  • Yog tias koj xav hloov kho rooj plaub kom haum rau lwm yam khoom, rub tawm *.f3d cov ntaub ntawv.
  • Yog tias koj tsuas xav luam cov ntawv STL uas tau npaj tseg, rub tawm cov ntawv zip.

Cov ntaub ntawv STL ntawm qhov nruab nrab ntawm lub cev tseem ceeb thiab lub tsev hais lus muaj qhov khoob rau M3 txiv ntoo. Ncua qhov luam tawm ntawm qhov siab sib xws thiab ntxiv cov txiv ntoo ua ntej rov pib luam ntawv.

10% infill yuav tsum txaus rau sab nraub qaum thiab hauv ntej. Qhov nruab nrab qhov uas muaj cov txiv ntoo yuav tsum tau luam tawm ntawm qib siab ntxiv mus kom ntseeg tau tias muaj kev txhawb nqa zoo ntawm cov txiv ntoo. Ob ntawm cov txiv ntoo tawg dawb hauv ib qho ntawm kuv cov ntawv luam ntawm 10%, tawm hauv tsis muaj xov kom tuav cov ntsia hlau kom raug.

Nov yog qhov txuas rau nplooj ntawv txawv rau lub thawv ntawv

Kauj ruam 3: Electronics

Electronics
Electronics
Electronics
Electronics
Electronics
Electronics

Rau cov kauj ruam tom ntej no koj yuav tsum muaj cov txuj ci yooj yim soldering.

Qhib tus hais lus USB thiab txuas cov neeg hais lus los ntawm lub rooj sib tham suab ntawm lawv cov JST cables. Txiav thiab hle lub USB cable ntawm qhov tsim nyog ntev los ntawm lub suab board. Txhawm rau txuag chaw kuv tau siv lub USB coj ncaj qha mus rau cov ntawv xeem ntawm sab hauv qab ntawm Pi. Yog tias koj tsis tuaj yeem taug qab cov ntaub qhwv nrog lub multimeter, ntawm no yog cov npe zoo ntawm cov lej ncoo. Kuv siv PP46 hla PP48 thiab 5V muab tus pin txuas lub suab board (saib daim duab).

Npaj kev nyab xeeb kaw hluav taws xob los ntawm desoldering lub rocker hloov thiab hloov nws nrog ob qhov ntev ntawm cov xaim hluav taws xob. Muab qhov hloov pauv rau hauv qhov chaw so thiab muab cov hmoov lead dawb tso rau hauv qhov chaw.

Txiav tus txiv neej kawg ntawm micro USB cable thiab hle lub zog thiab cov ntaub ntawv coj mus. Solder lub zog liab liab ntawm USB cable rau PP2 thiab cov hlau dub rau PP5 (saib daim duab). Tus poj niam kawg ntawm micro USB cable yuav tsum tau txuas nrog tus txiv neej kawg ntawm kev nyab xeeb kaw lub rooj tsav xwm. Lub rooj tsavxwm tuaj yeem muab lo rau hauv qhov chaw hauv qab ntawm rooj plaub.

Tom qab ntawd kuv ntxiv cov kua nplaum kub rau txhua qhov ntawm cov kab laug sab kom ruaj khov thiab ntxiv qee qhov nyem nyem.

Credit rau Pi duab: Wikipedia, neeg siv: Multicherry

commons.wikimedia.org/wiki/File:Raspberry_Pi_2_Model_B_v1.1_underside_new_(bg_cut_out).jpg

Kauj Ruam 4: Rooj Sib Tham Kawg

Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg
Los Ua Ke Kawg

Kev tsim kho zaum kawg yog me ntsis fiddly, tab sis nrog cov xov hlau ntev txaus txhua yam yuav tsum haum.

Tus hais lus casing me ntsis ntawm sab me me, uas ua ke nrog lub tshuab cua tshuab tawm ntawm ib sab txhais tau tias tus hais lus sab laug tsis kaw dej nrog tus hais lus grill.

Peb lub nraub qaum tuaj yeem txuas nrog ib leeg siv M3 ntsia liaj qhov rooj. Cov ntsia hlau yuav txiav xov thawj zaug koj ntswj lawv rau hauv. Tsuav koj tsis coj lawv sib nrug ntau zaus, qhov kev sib txuas no yuav tsum muaj zog txaus.

Kaw cov kab hluav taws xob kaw rau hauv rooj plaub thiab ntsia hlau lub suab tawm mus rau qhov tsis pom kev.

Raspberry Pi tuaj yeem txuas mus rau qhov nruab nrab nrog M3 ntsia liaj qhov rooj. Nco ntsoov ntxig daim npav SD tom qab ntswj Pi rau hauv qhov chaw, vim nws loj dua me ntsis raws li lub casing. Nws tuaj yeem tso tom qab siv ob tus tweezers, los ntawm kev qhib rau sab.

Tom qab ntxiv lub vijtsam kov, txhua yam uas seem yog ntsia lub phaj pem hauv ntej.

Kuv tsis muaj lub micro USB cable ntawm tes ua ntej ua tiav kev tsim, yog li kuv tab tom tso lub Pi ib ntus txawm tias Pi lub micro USB chaw nres nkoj siv lub txhab nyiaj. Kuv yuav ntxiv qhov txuas txuas txuas uas ploj lawm tom qab taw tes.

Kuv vam tias koj nyiam qhov mini jukebox tsim. Kuv tos ntsoov yuav kuaj qhov no dhau ob peb lub asthiv tom ntej. Yog tias koj muaj lus nug lossis tswv yim txhim kho, tawm hauv kuv cov lus hauv qab no thiab kuv yuav sim rov qab rau koj sai li sai tau

Kev Sib Tw Suab 2017
Kev Sib Tw Suab 2017
Kev Sib Tw Suab 2017
Kev Sib Tw Suab 2017

Khiav Tawm Hauv Kev Sib Tw Suab 2017

Pom zoo: