Cov txheej txheem:

Darth Vader Tus Hais Lus: 8 Kauj Ruam (nrog Duab)
Darth Vader Tus Hais Lus: 8 Kauj Ruam (nrog Duab)

Video: Darth Vader Tus Hais Lus: 8 Kauj Ruam (nrog Duab)

Video: Darth Vader Tus Hais Lus: 8 Kauj Ruam (nrog Duab)
Video: Star Wars Jedi: Survivor - Jedi Coaching Sessions Trailer 2024, Hlis ntuj nqeg
Anonim
Image
Image
Darth Vader Tus Hais Lus
Darth Vader Tus Hais Lus

Yog tias koj yog tus kiv cua loj ntawm Star Wars cov yeeb yaj kiab, ua raws cov theem hauv qab no los ua koj tus kheej Darth Vader Tus Hais Lus. Raws li ib feem ntawm kev tsim peb yuav siv Raspberry Pi Zero W ua lub plawv ntawm txoj haujlwm, thiab I2S chav kawm D mono amplifier thiab 4 ohms hais lus, los ua si peb cov nkauj nyiam !!

Hauv kuv qhov xwm txheej, kuv muaj nkauj mp3 uas kuv tau sau ntau xyoo, uas kuv tau rub mus rau SD daim npav ntawm kuv tus Pi thiab khiav software uas hu ua Mopidy, uas yog cov nkauj txuas ntxiv tau sau hauv Python. Thiab koj tuaj yeem ua nkauj nkauj siv lub vev xaib ntawm koj lub xov tooj ntawm tes/ntsiav tshuaj/laptop raws li koj pom hauv video.

Ib qho ntxiv, yog tias koj muaj koj cov nkauj sau online hauv Spotify, SoundCloud lossis Google Play Music koj teeb tsa lub mopidy txuas ntxiv los ua nkauj ntawm koj li kev sau ntxiv rau cov nkauj ntawm Pi.

Kauj Ruam 1: Tej Yam Koj Yuav Tsum Tau Ua Kom Tiav

Yam Koj Yuav Tsum Tau Ua Kom Tiav
Yam Koj Yuav Tsum Tau Ua Kom Tiav
Yam Koj Yuav Tsum Tau Ua Kom Tiav
Yam Koj Yuav Tsum Tau Ua Kom Tiav

Nov yog cov npe khoom siv hluav taws xob uas koj xav tau

  • Raspberry Pi Zero W.
  • Adafruit I2S 3W Class D Amplifier Breakout - MAX98357A
  • Hais lus - 3 "Txoj kab uas hla - 4 Ohm 3 Watt
  • Poj Niam/Poj Niam Jumper Xov

Lwm yam uas koj xav tau

  • 3D filament Dub - 1.75 hli PLA
  • Z Poxy tshem tawm Cov Khoom Siv kom ua tiav 3D luam Vader lub taub hau

Cov cuab yeej koj yuav xav tau

  • Kub nplaum nplaum thiab phom
  • 3D Tshuab Luam Ntawv
  • 3D cwj mem los txuas cov ntu ua ke
  • Teb cov cuab yeej zoo li Dremel rau txhuam cov ntu kom nrawm dua.
  • Xacto Riam
  • ntawv xuab zeb los ntxuav cov ntawv 3D
  • Thawv los sib xyaw ua haujlwm
  • Hnab looj tes thiab tsom iav kev nyab xeeb
  • Soldering Iron thiab solder

Kauj Ruam 2: 3D Luam STL Cov Ntaub Ntawv Txuas nrog

3D Luam STL Cov Ntaub Ntawv Txuas nrog
3D Luam STL Cov Ntaub Ntawv Txuas nrog
3D Luam STL Cov Ntaub Ntawv Txuas nrog
3D Luam STL Cov Ntaub Ntawv Txuas nrog

Rub tawm STL cov ntaub ntawv txuas thiab siv 3D luam ntawv software hlais thiab 3D luam cov ntaub ntawv.

Hauv kuv qhov xwm txheej, kuv tau luam tawm STl cov ntaub ntawv siv Flashforge creator pro thiab 1.75 mm dub PLA los luam tawm. Ntxiv rau kev hlais kuv tab tom siv Slic3r nrog txheej txheej qhov siab tau teeb tsa 0.3mm thiab sau qhov ntom ntom mus rau 25 %.

Dub 1.75 mm Filament siv tau pom-https://digitmakers.ca/shop/3d-printers/filament/3d-printer-filaments-pla-black/

Kauj Ruam 3: Muab PLA Tshooj Ua Ke Siv 3D Luam Cwj mem

Muab PLA Tshooj Ua Ke Siv 3D Luam Cwj mem
Muab PLA Tshooj Ua Ke Siv 3D Luam Cwj mem
Muab PLA Tshooj Ua Ke Siv 3D Luam Cwj mem
Muab PLA Tshooj Ua Ke Siv 3D Luam Cwj mem
Muab PLA Tshooj Ua Ke Siv 3D Luam Cwj mem
Muab PLA Tshooj Ua Ke Siv 3D Luam Cwj mem

Tam sim no kom muab ib feem ua ke es tsis siv cov kua nplaum super, peb yuav siv tus cwj mem luam ntawv 3D.

Thaum koj tau luam koj qhov chaw, siv cov cuab yeej Rotary hauv kuv cov ntaub ntawv Dremel/xuab zeb los ua cov npoo ntawm cov khoom kom muab tso ua ke. Siv rab yaj phom kub los tso cov khoom ua ke, qhov no yuav ua ntu ntu ib ntus, thiab yuav ua kom yooj yim dua los siv 3D luam ntawv cwj mem kom yaj PLA sab hauv.

Tam sim no thaum sab hauv ntawm koj ib sab ua tiav, tshem tawm cov kua nplaum kub uas siv xacto riam los ntawm sab nraud raws li pom hauv daim duab saum toj no, thiab tshem tawm cov ntsiab lus los ntawm Tus Cwj Pwm mus rau sab nraud ntawm ib feem.

Nco tseg

Siv txoj hauv kev no tuaj yeem sim koj lub siab ntev !!, yog li nco ntsoov so so.

Ib qho ntxiv, nco ntsoov ua qhov no hauv thaj chaw muaj cua nkag tau zoo thiab looj tsom iav tiv thaiv koj lub qhov muag thaum ua xuab zeb.

Kauj Ruam 4: Sanding thiab Ntau Sanding

Sanding thiab ntau Sanding
Sanding thiab ntau Sanding
Sanding thiab ntau Sanding
Sanding thiab ntau Sanding
Sanding thiab ntau Sanding
Sanding thiab ntau Sanding

Tam sim no los txog qhov nyuaj, Sanding !!

Siv cov cuab yeej hloov pauv zoo li Dremel txhawm rau ua kom cov txheej txheem ua tiav thiab lawv siv cov ntawv xuab zeb. Ntxuav ib feem thaum koj ua tiav, koj yuav pom cov cim xuab zeb ntawm koj 3D luam tawm ib feem raws li tau hais los saum no, tab sis qhov ntawd yuav tsum tsis muaj teeb meem li koj tab tom ua tiav nrog ib qib uas tau hais hauv qab no.

Txij li thaum koj tau siv lub tshuab luam ntawv 3D nrog tib lub ntsiab lus koj luam STL cov ntaub ntawv nrog, txoj hauv kev no yuav tiv thaiv qhov tsis sib nrug hauv ob peb hlis, thaum piv rau yog tias koj tau siv cov kua nplaum kub.

Kauj Ruam 5: Thov Z Poxy

Thov Z Poxy
Thov Z Poxy
Thov Z Poxy
Thov Z Poxy
Thov Z Poxy
Thov Z Poxy

Raws li ib feem ntawm Z cov khoom siv poxy nws los nrog ob lub raj mis, ntawm muaj cov tshuaj thiab lwm yam tawv dua.

Kwv yees li nchuav qhov sib npaug ntawm cov tshuaj thiab cov tawv tawv rau hauv lub khob. Sib tov nws siv qhov kawg ntawm txhuam lossis ib qho ntawm koj cov ntawv luam tawm, qhov no yuav siv sijhawm li 3-4 feeb thiab tos kom cov kua hloov xim dawb. Siv cov txhuam me me thiab loj los pleev xim tus qauv, pib nrog ntu 3D luam ntawv uas muaj cov ncauj lus kom ntxaws, zoo li lub qhov muag thiab lub qhov ncauj ntawm Darth Vader Planter. Cia ib feem kom qhuav tsawg kawg 4 teev thiab ua kom nws nyob deb ntawm hmoov av.

Nov yog qhov kev nyab xeeb tshaj plaws yog tawm ntawm ib sab kom qhuav. Tsis txhob nqa ib feem ua ntej qhov ua kom qhuav tag, lossis lwm yam koj yuav kawg tso koj cov ntiv tes rau ntawm tus qauv. Yog tias koj tsis muaj Z Poxy muaj, koj tseem tuaj yeem sim XTC-3D yuav lub tuam txhab hu ua Smooth-On.

Cov lus qhia rau kev thov Z Poxy rau ntu 3D luam tawm

  • Yuav Z Poxy uas hais 30 feeb ntawm nws, yog li koj muaj sijhawm ntau los ua haujlwm nrog kev daws teeb meem ua ntej nws nyuaj.
  • Yog tias koj tab tom thov qhov no rau cov duab me me, koj yuav xav kom kub kua nplaum lub hauv paus ntawm 3D luam tawm ib feem rau ntawm cov ntoo, yog li siv txhuam yog yooj yim dua thiab koj tsis tso cov ntiv tes sau/hnab looj tes cim rau ntawm tus qauv.
  • Ib qho ntxiv, sim thiab tso koj tus qauv ntawm lub hauv paus uas koj tuaj yeem txav mus los zoo li lub thawv lossis ib qho ntoo, yog tias koj tsis muaj ib qho ntawm lawv zoo nkauj tig rooj.
  • Sim thiab siv lub khob tupperware pob tshab kom koj tuaj yeem pom qhov sib xyaw ua cov xim dawb.
  • Ua qhov no hauv thaj chaw muaj cua nkag tau zoo, txawm hais tias nws hais tias nws tsis muaj ntxhiab ntawm lub thawv, nws muaj ntxhiab tsw me ntsis rau nws
  • Siv hnab looj tes, vim cov tshuaj no tuaj yeem lo rau ntawm txhais tes ib yam li cov kua nplaum zoo thiab tuaj yeem nyuaj rau tshem tawm.
  • Sim thiab khaws koj tus qauv ntawm chav sov, kwv yees li 15-30 C thiab deb ntawm hmoov av.

Kauj Ruam 6: Kev Sib Txuas Circuit

Kev Sib Txuas Circuit
Kev Sib Txuas Circuit

Solder lub header pins ntawm Raspberry Pi Zero W thiab tseem yuav txuas tus hais lus rau +ve thiab -ve ntawm Adafruit MAX98357 I2S Class -D amplifier.

Thiab ntawm no yog tus pin txuas ntawm Raspberry Pi Zero W thiab MAX98357 I2S Class-D amplifier.

  • Vin rau pin 4 ntawm Pi 5V
  • GND pin 9 Pi GND
  • DIN rau tus pin 40 ntawm Pi
  • BCLK to pin 12
  • LRCLK rau tus pin 35

Kauj Ruam 7: Teeb Raspbian thiab Txhim Kho Mopidy Music Player ntawm Pi

Teeb tsa Raspbian thiab Txhim Kho Mopidy Music Player ntawm Pi
Teeb tsa Raspbian thiab Txhim Kho Mopidy Music Player ntawm Pi

Siv koj lub khoos phis tawj flash qhov hloov tshiab kawg ntawm Rasbian-lite img ntawm daim npav SD (Rub tawm txuas rau cov ntaub ntawv img https://www.raspberrypi.org/downloads/raspbian/). Thiab tom qab ntawd ntxiv daim npav SD rau Raspberry Pi thiab txuas koj Pi rau koj lub WiFi router thiab sau ntawv tus IP chaw nyob, tom qab ntawd SSH rau hauv koj Pi

Pib los ntawm kev ua ob kab lus hauv qab no txhawm rau hloov kho thiab txhim kho pob khoom ntawm Pi.

sudo apt-tau hloov tshiab

sudo apt-tau hloov tshiab

Tam sim no teeb tsa thiab sim Adafruit's MAX98357 I2S Class-D Mono Amp, ua raws cov lus qhia ntawm Adafruit Learning system ntawm-https://learn.adafruit.com/adafruit-max98357-i2s-class-d-mono-amp/pinouts ? view = tag nrho. Yeej yog ib feem ntawm kev teeb tsa muaj kev teeb tsa yooj yim thiab teeb tsa nyuaj, yog tias koj npaj yuav khiav txoj kev yooj yim tsuas yog rub tawm thiab khiav cov kab ntawv hauv qab no

curl -s https://raw.githubusercontent.com/adafruit/Raspberry-Pi-Installer-Scripts/master/i2samp.sh | tsoo

Txhawm rau txheeb xyuas yog tias lub plhaub tsab ntawv tau ua tiav, thiab koj tuaj yeem hnov lub suab los ntawm tus hais lus khiav

hais lus -xeem -c2 --test = wav -w /usr/share/sounds/alsa/Front_Center.wav

Thiab txhawm rau kho qhov ntim siv alsamixer hais kom ua

Teeb Mopidy ua si koj cov nkauj nyiam Tam sim no los ua koj cov nkauj nyiam peb yuav teeb Mopidy thiab lub vev xaib rau mopidy, yog li koj tuaj yeem ua koj zaj nkauj los ntawm koj lub xov tooj ntawm tes/rooj. Mopidy ua suab paj nruag los ntawm lub disk hauv zos, Spotify, SoundCloud, Google Play Music, thiab ntau dua. Koj hloov kho cov npe ntawm txhua lub xov tooj, ntsiav tshuaj, lossis khoos phis tawj siv ntau ntawm MPD thiab cov neeg siv khoom hauv web.

Tam sim no cia nruab Mopidy khiav cov lus txib hauv qab no

sudo apt-tau nruab mopidy

yog xav paub ntxiv tshawb xyuas cov ntaub ntawv ntawm - Kev teeb tsa - Mopidy 2.0.1 cov ntaub ntawv

Hloov kho mopidy.conf txhawm rau qhib ntu HTTP, MPD thiab Cov Ntaub Ntawv, ntawm no yog kuv mopidy.conf, thiab kuv cov npe hauv zos khaws cia musing yog/home/pi/Music, yog li yog tias koj npaj yuav siv.conf cov ntaub ntawv hauv qab no tsim "Nkauj" phau ntawv teev npe nyob hauv tsev

sudo nano /etc/mopidy/mopidy.conf

Kuv tau txuas kuv mopidy.conf, tsuas yog thaum koj xav ua daim ntawv theej ntawm nws.

Yog tias koj npaj yuav siv lub vev xaib app hauv xov tooj/ntsiav tshuaj, koj yuav xav tau tus vev xaib http, Kuv nyiam Mopidy-Mobile..

sudo pip nruab Mopidy-Mobile

Txhawm rau khiav mopidy ntawm khau raj khiav, thiab rov pib dua koj pi

sudo systemctl pab mopidy

sudo rov pib dua

Tsis tas li, yog tias koj npaj yuav thauj ntau cov ntaub ntawv mp3/.wav rau hauv Music nplaub tshev yav tom ntej, koj yuav tsum tau siv lub scan hais kom ua, kom cov nkauj tshwm hauv Mopidy-Mobile tus siv

sudo mopidyctl scan hauv zos

Thiab tom qab ntawd siv lub xov tooj ntawm tes qhib url hauv koj lub browser ntawm koj lub xov tooj ntawm tes/khoos phis tawj - https:// IpAddressOfPi: 6680/thiab ua si koj cov nkauj nyiam thiab nkauj, hauv kuv qhov xwm txheej kuv tau rub qee lub suab paj nruag tsim los ntawm youtube lub tsev qiv ntawv suab rau video demo, uas koj pom hauv lub screenshot saum toj no..

Kauj Ruam 8: Ntxiv Cov Khoom Siv Hluav Taws Xob rau Darth Vader 3D Luam Ntawv Ib Feem

Ntxiv Cov Khoom Siv Hluav Taws Xob rau Darth Vader 3D Luam Tshooj
Ntxiv Cov Khoom Siv Hluav Taws Xob rau Darth Vader 3D Luam Tshooj
Ntxiv Cov Khoom Siv Hluav Taws Xob rau Darth Vader 3D Luam Tshooj
Ntxiv Cov Khoom Siv Hluav Taws Xob rau Darth Vader 3D Luam Tshooj
Ntxiv Cov Khoom Siv Hluav Taws Xob rau Darth Vader 3D Luam Tshooj
Ntxiv Cov Khoom Siv Hluav Taws Xob rau Darth Vader 3D Luam Tshooj

Txhawm rau ntxiv cov khoom siv rau 3D luam tawm ntu, Kuv siv cov kua nplaum kub los txuas rau Raspberry Pi Zero thiab MAX98357 I2S Class-D amplifier thiab hla lub USB cable ntawm sab nraub qaum.

Ib qho ntxiv kuv kub glued ob tus neeg hais lus ua ke, thiab ntu no yuav tsum haum haum rau Darth Vader lub taub hau.

Tam sim no, rau Mopidy music player kom pib txhua lub sijhawm Pi tau hloov pauv, peb tuaj yeem teeb tsa Mopidy kom ua haujlwm raws li kev pabcuam, siv systemd koj tuaj yeem pab Mopidy kev pabcuam los ntawm kev khiav:

sudo systemctl pab mopidy

Qhov no yuav ua rau Mopidy cia li pib thaum lub kaw lus pib. Thiab Mopidy tau pib, nres, thiab rov pib dua ib yam li lwm qhov kev pabcuam systemd, siv

sudo systemctl pib mopidy

sudo systemctl nres mopidy sudo systemctl rov pib dua mopidy

Ib qho ntxiv, yog tias koj muaj koj cov nkauj sau online hauv Spotify, SoundCloud lossis Google Play Music koj teeb tsa lub mopidy txuas ntxiv los ua nkauj ntawm koj li kev sau ntxiv rau cov nkauj ntawm Pi.

Pom zoo: