Cov txheej txheem:

Movie Tracker - Raspberry Pi Powered Theatrical Release Tracker: 15 Cov Kauj Ruam (nrog Duab)
Movie Tracker - Raspberry Pi Powered Theatrical Release Tracker: 15 Cov Kauj Ruam (nrog Duab)

Video: Movie Tracker - Raspberry Pi Powered Theatrical Release Tracker: 15 Cov Kauj Ruam (nrog Duab)

Video: Movie Tracker - Raspberry Pi Powered Theatrical Release Tracker: 15 Cov Kauj Ruam (nrog Duab)
Video: Настя и Арбуз с вымышленной историей для детей. 2024, Hlis ntuj nqeg
Anonim
Image
Image
Lub Tswv Yim
Lub Tswv Yim

Movie Tracker yog ib qho clapperboard zoo li, Raspberry Pi-powered Release Tracker. Nws siv TMDb API los luam daim ntawv tshaj tawm, lub npe, hnub tso tawm thiab cov lus pom ntawm cov yeeb yaj kiab yuav los tom ntej hauv koj cheeb tsam, nyob rau lub sijhawm tshwj xeeb ncua sijhawm (piv txwv li cov yeeb yaj kiab tso tawm lub lim tiam no) ntawm cov ntawv kub. Muaj LED nyob tom qab ntawm lub rooj tsavxwm uas teeb thaum muaj kev tshaj tawm tshiab. Tsis tas li, Nws muaj ob lub hlau nplaum kom koj tuaj yeem xa cov yeeb yaj kiab uas koj xav saib hauv lub rooj tsavxwm.

Tus qauv

Hauv thawj kauj ruam, Kuv yuav tham txog Lub Tswv Yim tom qab txoj haujlwm no. Tom ntej no, Kuv yuav muab koj cov npe ntawm txhua ntu & cov cuab yeej siv los tsim txoj haujlwm no. Tom qab ntawd kuv yuav qhia koj yuav teeb tsa koj li Raspberry Pi li cas los ua qhov haujlwm no. Tom qab muab cov lus qhia rau koj ib qib zuj zus kuv yuav xaus cov lus qhia no nrog cov lus qhia daws teeb meem thiab ntu tom ntej yog dab tsi.

Cia peb pib!

Kauj Ruam 1: Lub Tswv Yim

Kuv yog tus nyiam ua yeeb yaj kiab loj, Kuv ib txwm khaws kuv daim pib thiab muab lawv tso rau hauv kuv phau ntawv teev npe. Muaj ib hnub kuv xav tias "Nws yuav zoo heev yog tias daim pib ua yeeb yaj kiab muaj daim ntawv tshaj tawm ntawm lawv." Yog li txoj haujlwm no pib nrog kuv luam daim ntawv tshaj tawm rau kuv phau ntawv teev npe. Tom qab ntawd kuv tau ntxiv Hnub Tso Tawm ntawm daim ntawv loj loj yog li kuv tuaj yeem nco qab thaum Nws tau tso tawm thiab qhov hloov zuj zus mus rau hauv pawg phiaj xwm ua yeeb yaj kiab.

Kauj Ruam 2: Cov Cuab Yeej & Qhov

Cov Cuab Yeej:

  • 3D tshuab luam ntawv
  • Soldering Hlau
  • Laum
  • Pliers
  • Daim npog qhov ncauj
  • Xim Tsuag Xim Xim

Qhov:

  • Raspberry Pi 3 (Kuv tau nyob ib puag ncig no tab sis Raspberry Zero zoo dua vim tias nws loj)
  • Khawm Khawm (5mm)
  • Adafruit Thermal Tshuab Luam Ntawv & thermal ntawv yob
  • Ntsuab LED (5mm)
  • 330-ohm resistor
  • Tin ntawv (0.5 hli)
  • 3 x (30mm M3 ntsia liaj qhov rooj & txiv ntseej)
  • 4 x (15mm M3 ntsia liaj qhov rooj & txiv ntseej)
  • 4 x (5x5mm M3 tso cua sov)

3D Luam Qhov Chaw:

  • board.stl
  • boardLid.stl
  • clapperBottom.stl
  • clapperLids.stl
  • clapperTop.stl
  • daim duab peb sab.stl

Kauj Ruam 3: Teeb Koj Raspberry Pi

Teeb Koj Raspberry Pi
Teeb Koj Raspberry Pi

Txhim kho Raspbian

Txhawm rau kom Pi ua haujlwm nrog peb txoj haujlwm peb yuav tsum xub teeb tsa daim npav SD uas nws yuav khau raj rau. Yog tias koj yog tus pib koj tuaj yeem tshawb xyuas cov lus qhia ntxaws no:

www.instructables.com/id/Setting-Up-Raspberry-Pi-3/

Tom ntej no koj yuav tsum pab kom SSH ntawm koj li Raspberry Pi, dua li muaj cov ncauj lus qhia ntxaws txog qhov no, www.instructables.com/id/How-To-Use-SSH-with-Raspberry-Pi-2/

Pab kom SSH yuav pab peb nkag mus rau Raspberry Pi nyob deb yog li peb tsis tas yuav siv cov keyboard & saib xyuas txhua lub sijhawm.

Tam sim no nkag mus rau koj li raspberry pi nrog SSH thiab ua raws cov theem hauv qab no.

Thermal Tshuab Luam Ntawv Lub Tsev Qiv Ntawv

Txhawm rau siv lub tshuab luam ntawv cua sov nrog koj li Raspberry koj yuav tsum xub teeb tsa lub tsev qiv ntawv uas Adafruit tau muab.

Ua ntej tsim daim nplaub tshev los npaj txhua cov ntaub ntawv ntawm txoj haujlwm no yooj yim los ntawm:

mkdir zaj yeeb yaj kiab-tracker-project

thiab nkag mus rau hauv phau ntawv ntawd los ntawm:

cd zaj yeeb yaj kiab-tracker-project

tam sim no cia nruab lub tsev qiv ntawv xav tau. Peb yuav siv git txhawm rau rub tawm txhua tus lej ntawm rau raspberry pi. Nruab ib lub tsev qiv ntawv tshuab luam ntawv cua sov los ntawm:

git clone

Movie Tracker Code

Nruab Qhov Movie Tracker Code los ntawm:

git clone

tam sim no rau peb cov cai ua haujlwm, nws yuav tsum nyob hauv tib lub nplaub tshev nrog lub tshuab luam ntawv cua sov. kom tau txais lawv hauv tib daim ntawv ua ntej nkag mus rau Movie Tracker nplaub tshev los ntawm:

cd zaj duab xis-tracker

thiab tom qab ntawd luam cov ntawv mus rau lub tsev qiv ntawv luam ntawv cua sov los ntawm:

cp tracker.py/tsev/pi/Pyhton-Thermal-Tshuab Luam Ntawv

tam sim no koj cov cai tau npaj rau kev hloov kho.

Nco tseg: txoj cai yuav tsis ua tam sim no vim nws yuav tsum tau kho nrog tus yuam sij API.

Kauj Ruam 4: Movie DB API

Movie DB API
Movie DB API

Peb yuav siv TMDb kom tau txais cov ntaub ntawv ua yeeb yaj kiab rau txoj haujlwm no. TMDb yog lub platform zoo uas yog siv dawb uas koj tuaj yeem tsim cov npe yeeb yaj kiab thiab lwm yam. Txhawm rau siv qhov kev pabcuam no koj yuav tsum xub tsim ib tus as khauj thiab ua raws cov lus qhia ntawm no kom tau txais koj tus lej API.

Kauj Ruam 5: Kho Txoj Cai

API Ntsiab

Nkag mus rau koj li Raspberry Pi siv SSH thiab mus rau daim nplaub tshev uas koj muab cov ntawv tracker.py tso rau tam sim no txhawm rau kho cov ntaub ntawv siv:

sudo nano tracker.py

hauv cov ntawv koj yuav pom qhov chaw ntawm API Ntsiab qhia raws li [YOUR_API_KEY]. Luam tus yuam sij uas koj tau txais los ntawm TMDb thiab muab tso rau ntawm no. Tam sim no koj cov cai tau npaj ua kom yooj yim sim nws los ntawm:

nab hab sej tracker.py

Nws yuav tsum tau txais cov ntaub ntawv tso tawm tshiab kawg thiab luam tawm ntawm lub console. Yog tias tsis txheeb xyuas Troubleshooting guide thaum kawg ntawm cov lus qhia no.

Yog tias koj xav siv tus tracker nrog nws cov chaw teeb tsa ua ntej koj tuaj yeem hla ntu tom ntej.

Kev Kho Ntxiv Ntxiv

Hauv nws qhov kev teeb tsa tsis raug, tus tracker yuav hloov kho tshiab txhua hnub kom tau txais cov ntaub ntawv tshaj tawm tshiab thiab yuav khaws nws yog tias hnub tso tawm yog nyob rau ntawm 10 hnub. Koj tuaj yeem hloov cov chaw no rau koj nyiam. los ntawm kev hloov kab no:

Hnub tim = 10

Kauj Ruam 6: Los Ua Ke - Khoom Siv Hluav Taws Xob

Los ua ke - Electronics
Los ua ke - Electronics

Tom qab txuas cov khoom siv hluav taws xob raws li qhia hauv daim duab peb yuav sim txhua ntu kom ntseeg tau tias lawv ua haujlwm.

Thermal Tshuab Luam Ntawv

Nkag mus rau hauv Thermal tshuab luam ntawv lub tsev qiv ntawv tais ceev tseg thiab khiav:

cd Python-Thermal-Tshuab Luam Ntawv

nab hab sej tshuab raj testest.py

qhov no yuav tsum luam daim ntawv xeem Kuv muaj teeb meem tshawb xyuas lub tshuab luam ntawv thiab kuaj dua.

LED

Tsim cov ntawv tshiab “LED_Test.py” los ntawm kev ntaus cov hauv qab no:

nano LED_Test.py

thiab luam qhov no rau hauv cov ntawv:

ntshuam RPi. GPIO li GPIOimport lub sij hawm GPIO.setmode (GPIO. BCM) GPIO.setwarnings (Cuav) GPIO.setup (18, GPIO. OUT) luam "LED rau" GPIO.output (18, GPIO. HIGH) time.sleep (1) luam tawm "LED tawm" GPIO.output (18, GPIO. LOW)

Thaum koj khiav cov cai no los ntawm:

sudo python LED_Test.py

LED yuav tsum teeb. Yog tias tsis muaj teeb meem nrog koj LED

Kauj Ruam 7: Thawj Tsab Ntawv & Xeem

Thawj Tsab Ntawv & Xeem
Thawj Tsab Ntawv & Xeem

Koj tsis xav tau 3D casing rau txoj haujlwm no. Koj tuaj yeem siv nws raws li qhia hauv daim duab ntawm nws theem ua qauv.

Tam sim no cia peb sim tus tracker. Khiav lub tracker los ntawm:

sudo python tracker.py

Koj yuav tsum pom cov npe yeeb yaj kiab yuav los tom ntej ntawm kab hais kom ua. Tam sim no nias lub pob thiab tos rau lub tshuab luam ntawv kom tiav luam ntawv. xyuas yog tias muaj qhov ua yuam kev ntawm cov ntaub ntawv ntawm nplooj ntawv. Yog tias tsis yog koj qhov phiaj xwm npaj rau rooj plaub.

Kauj Ruam 8: Luam 3D

3D Luam
3D Luam

Luam tawm txhua daim ua ntej sib dhos lawv tau pom zoo.

Lub tshuab luam ntawv kuv siv yog TEVO Tornado nrog cov chaw hauv qab no:

  • Nozzle: 0.4 hli
  • Cov ntsiab lus: 20 %
  • Khoom siv: PLA

Nco ntsoov ua cov xuab zeb ua ntej pleev xim rau lawv.

Kauj Ruam 9: Npog & pleev xim

Npog & pleev xim
Npog & pleev xim
Npog & pleev xim
Npog & pleev xim
Npog & pleev xim
Npog & pleev xim

Txhua daim kab xev xiav ntawm daim npog ntsej muag yog 20mm txoj kab uas hla. Kuv pom lub kaum sab xis ntawm kab txaij.

Kauj Ruam 10: Sib dhos - Clapper

Sib dhos - Clapper
Sib dhos - Clapper
Sib dhos - Clapper
Sib dhos - Clapper

Kuv siv daim ntawv tin thiab txiav nws nrog Dremel hauv cov duab no. Qhov nro ntawm cov tin tau kho los ntawm khoov nws. Koj kuj tseem tuaj yeem siv lwm qhov chaw tuaj, Nws tsis tas yuav yog tin.

Kauj Ruam 11: Sib dhos - Pawg Thawj Coj

Los Ua Ke - Pawg Thawj Coj
Los Ua Ke - Pawg Thawj Coj
Los Ua Ke - Pawg Thawj Coj
Los Ua Ke - Pawg Thawj Coj
Los Ua Ke - Pawg Thawj Coj
Los Ua Ke - Pawg Thawj Coj
Los Ua Ke - Pawg Thawj Coj
Los Ua Ke - Pawg Thawj Coj

Siv cov hlau txuas los ua kom sov-haum cov ntxig

Kauj ruam 12: Soldering

Soldering
Soldering
Soldering
Soldering

Solder tus tiv thaiv rau LED thiab siv cua sov-ntsws los npog nws. Koj tsis tas yuav khawm lub pob, Kuv tau siv ob lub jumper txuas los txuas rau Raspberry Pi.

Kauj Ruam 13: Rooj Sib Tham Kawg & Kuaj

Rooj Sib Tham Kawg & Xeem
Rooj Sib Tham Kawg & Xeem
Rooj Sib Tham Kawg & Xeem
Rooj Sib Tham Kawg & Xeem
Rooj Sib Tham Kawg & Xeem
Rooj Sib Tham Kawg & Xeem

Kuv tau siv lub pob pingpong kom nthuav cov coj. Nws ua haujlwm zoo li khawv koob. Koj tsuas yog yuav tsum tau siv lub qhov me me thiab haum rau coj hauv lub pob raws li qhia hauv daim duab.

Kauj ruam 14: Teeb meem

+ Tshuab luam ntawv tau nyam thiab nres luam ntawv

- qhov no tuaj yeem yog vim lub chaw xa khoom siv hluav taws xob, sim siv ib qho nrog qhov loj dua tam sim no

+ Tsis tuaj yeem tau txais cov ntaub ntawv los ntawm API

- Muaj kev txwv niaj hnub rau kev siv API. Yog tias koj siab dua qhov txwv lawv yuav txiav qhov nkag ntawm koj tus yuam sij. Feem ntau, Qhov txwv txwv rov pib dua hnub kawg.

Tsis txhob ua siab deb tawm lus Yog tias koj muaj teeb meem. Kuv mam sau lawv thiab sim teb lawv ntawm no.

Kauj Ruam 15: Dab Tsi Ntxiv

Dab Tsi Ntxiv
Dab Tsi Ntxiv

Hauv qib no, kuv yuav teev qee yam uas kuv muaj hauv kuv lub siab. Tab sis tsis pom lub sijhawm/peev txheej los ntxiv rau lawv. Xav tias xav ntxiv ntau Lub Tswv Yim lossis txoj hauv kev los txhim kho txoj haujlwm no hauv cov lus:

  • Nws pib txiav, yog li koj tsis tas yuav txiav daim ntawv txhua lub sijhawm.
  • Kev suav sau cov npe, tsuas yog cov yeeb yaj kiab uas nyob ntawm koj daim ntawv teev npe saib yuav luam tawm.
  • RGB LEDs tuaj yeem hloov xim rau lwm hom (txaus ntshai+liab thiab lwm yam)
  • Ib phab ntsa yuav zoo.

Qhov no tsis yog qhov Project tiav. Kuv vam tias ntau ntawm koj sim tsim lawv tus kheej consoles yog li peb tuaj yeem txhim kho qhov no ua ke.

Yog tias koj muaj lus nug nug tam sim ntawd! & qhia kuv txog koj qhov kev tsim!

IoT Kev Sib Tw
IoT Kev Sib Tw
IoT Kev Sib Tw
IoT Kev Sib Tw

Khiav Tawm hauv IoT Challenge

Pom zoo: