Cov txheej txheem:
- Kauj Ruam 1: Tau Txais Cov Ntaub Ntawv
- Kauj Ruam 2: Npaj SD Card thiab Thauj Raspbian, thiab FBI Plugin
- Kauj ruam 3: Siv Video
- Kauj Ruam 4: Npaj Laus Saib
- Kauj ruam 5: Txuas Sensor
- Kauj Ruam 6: Ntxig Code
- Kauj Ruam 7: Kev Kho Tus Kheej
- Kauj Ruam 8: Tiav Touches
- Kauj Ruam 9: Tus Qauv
Video: DIY Harry Potter Tsiv Portrait Project: 9 Kauj Ruam (nrog Duab)
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-31 10:20
Cov hauv qab no yog cov lus qhia npaj rau cov neeg lim ntshav dawb xwb. Yog tias koj tsis yog ntshav dawb, Slytherin tshwj xeeb, koj tau ceeb toom txog qhov ua tsis tau tiav thiab swb koj yuav ntsib raws li tus neeg vwm, muggle, Hufflepuff, lossis av nkos.
Kauj Ruam 1: Tau Txais Cov Ntaub Ntawv
Siv txhua txoj kev tsim nyog kom tau txais cov ntaub ntawv no. Xav tias dawb rau Wingardium Leviosa ib yam dab tsi tawm ntawm lub khw muggle thaum lawv nraub qaum tig thiab lawv yuav tsis yog tus ntse dua.
- Raspberry Pi
- Mouse thiab keyboard
- Yam tsawg kawg yog 8 gb Micro SD card
- Saib xyuas qub thiab tso saib cov kab hluav taws xob (HDMI, VGA thiab lwm yam) thiab lub zog hluav taws xob Cov kab hluav taws xob tso tawm rau HDMI cable hloov pauv
- PIR Tsab ntawv tsa suab Sensor
- Breadboard thiab GPIO breakout board ncua ntxiv
- Soldering hlau
- Solder
- Cov xov hluav taws xob
- Laus Ncej
Kauj Ruam 2: Npaj SD Card thiab Thauj Raspbian, thiab FBI Plugin
Nov yog ib qho ntawm cov kauj ruam tseem ceeb tshaj plaws thiab cov txuj ci tseem ceeb uas siv tau zoo hauv Kev Tsaus Ntuj. Yog tias koj tuaj yeem tsim daim npav SD thiab thauj khoom Raspbian, koj nyob ib nrab ntawm kev cog qoob loo rau tus neeg dementor.
-
Txuas daim npav SD rau hauv lub computer thiab ua raws cov lus qhia los ua daim npav SD li …
- FAT yog 8gb
- exFAT32 yog 32gb
- Load Raspbian mus rau Pi
-
Rub tawm FBI plugin
Qhib davhlau ya nyob twg thiab nruab fbi los tso saib cov duab
sudo apt-tau nruab fbi
Kauj ruam 3: Siv Video
Tsuas yog qhov uas yuav tsum tau tsaus rau cov kauj ruam no yog Tus Tswv Tsaus. Xyuas kom koj muaj teeb pom kev zoo. Saum toj no tag nrho, saib zoo, ua rau mob hnyav, thiab ua rau neeg ntshai.
-
Siv cov vis dis aus ntawm yam koj xav kom txav mus rau hauv daim duab
Nco ntsoov pib thiab nres hauv qhov chaw zoo ib yam (Cov tswv yim suav nrog muaj cov duab zoo nkauj thiab ib tus neeg taug kev hauv thiab tawm ntawm tus ncej, pib zaum ntawm lub rooj zaum nrog ob txhais tes sib tsoo thiab rov qab mus rau qhov chaw zoo ib yam)
- Ua ntej koj pib txav mus los, nco ntsoov ntes cov duab qub ntawm daim duab qub, thiab teeb qhov loj me ntawm cov duab thiab yees duab raws li saib qhov ntev
- Rub tawm ob daim duab thiab yees duab mus rau Raspberry Pi thiab tso koj daim vis dis aus, hauv "Video" nplaub tshev, thiab koj daim duab, hauv "Duab" nplaub tshev
Kauj Ruam 4: Npaj Laus Saib
Ua ntej, mus rau koj lub monitor saib thiab xaiv qhov koj nyiam tshaj plaws. Qee zaum cov tsev kawm hauv nroog lossis cov lag luam yuav tshaj tawm lawv cov khoom qub. Tom ntej no, koj yuav tsum tau disassemble lub saib kom nws tsis muaj dab tsi ntawm nws lub nraub qaum. Cov kauj ruam no txawv nyob ntawm tus saib xyuas koj muaj, tab sis nws yooj yim heev uas tus neeg nyiag khoom tuaj yeem ua nws. Tso dag xwb. Muggles tsis muaj nqis thiab tsis muaj peev xwm ua dab tsi hlo li.
Kauj ruam 5: Txuas Sensor
- Ntxig peb ntu ntawm lub ntsuas cua mus rau hauv lub khob cij
-
Txuas cov xov hlau
- Thawj kab txuas mus los ntawm 5v tus pin (magenta cable), thiab txuas rau VCC tus pin ntawm lub sensor
- Qhov thib ob txuas mus los ntawm GND tus pin (kab dawb) thiab txuas rau GND tus pin ntawm lub sensor
- Peb txoj kab txuas mus los ntawm GPIO tus pin 4, chaw nres nkoj 7 (grey cable) thiab txuas rau OUT tus pin ntawm lub sensor
*Cov xov hlau tuaj yeem mus rau ib qho ntawm cov chaw nres nkoj sau ntev li lawv nyob hauv tib kab. Piv txwv li, txoj kab liab liab nyob hauv 11c mus los ntawm GPIO tus pin 4, mus rau OUT uas peb muab tso rau hauv 24b. Thawj tus tuaj yeem mus hauv 11a, 11b, 11c, lossis 11d lossis 11e. Koj tsuas yog yuav tsum xyuas kom txuas nws mus rau GPIO tus pin 4 thiab OUT chaw nres nkoj ntawm lub sensor.
Kauj Ruam 6: Ntxig Code
Cov cai no TSIS YOG koom nrog ib tus neeg uas tsis muaj qhov Cim Tsaus. Tuag Eaters tau ua haujlwm tsis tu ncua ntawm kev txhim kho qhov no thiab tsis xav tau ib qho tsis muaj nuj nqis muggle-yug lossis ntshav cov neeg ntxeev siab tso lawv cov tes me me qias neeg rau nws.
Qhib Thonny Python IDE los ntawm cov ntawv qhia zaub mov thiab muab cov lej tso rau ntawm cov ntawv txuas
#part 1 ntawm cov cai, lub cim ntsuas lub suab#!/usr/bin/pythonimport RPi. GPIO li GPIO lub sijhawm ntshuam ntshuam os
chav kawm ntes (khoom):
def _init _ (self, sensor): self.callBacks = self.sensor = sensor self.currState = False self.prevState = False
GPIO.setmode (GPIO. BOARD)
GPIO.setup (self.sensor, GPIO. IN, rub_up_down = GPIO. PUD_DOWN)
def nyeem (tus kheej):
self.prevState = self.currState self.currState = GPIO.input (self.sensor)
def printState (tus kheej):
print ("tus pin GPIO {0} yog {1}". hom ntawv (self.sensor, "HIGH" yog self.currState lwm tus "LOW"))
def subscribe (tus kheej, callBack):
self.callBacks.append (hu rov qab)
def callBack (tus kheej, xeev):
rau fn hauv tus kheej.callBacks: fn (xeev)
def pib (tus kheej):
sim: self.read () self.printState () thaum Muaj tseeb: self.read () yog self.currState! = self.prevState: self.printState () self.callBack (self.currState) time.sleep (.1)
tshwj tsis yog (KeyboardInterrupt, SystemExit):
#Txij li fbi tsis rov kho lub console kom raug thaum daim ntawv thov tawm peb ua kev tu me ntsis. os.system ('stty sane')
#part 2 ntawm cov cai, duab thiab yees duab
#!/usr/bin/python import subprocess as sp import sys
video = ["omxplayer", "filename", "-o", "both", "--win", "0 0 1680 1050", "--aspect-mode", "fill", "--no-" osd "," --orientation "," 0 "," --vol "," -600 "]
videoFile = "/home/pi/Videos/1680x1050video.mp4" luam tawm (videoFile)
def ntawmMotion (currState):
yog currState: video [1] = videoFile subVideo = sp. Popen (video) thaum subVideo.poll () tsis muaj: sijhawm.sleep (.1)
def showImage ():
os.system ("sudo fbi -T 1 -d/dev/fb0 -noverbose -once /home/pi/Pictures/1680x1050picture.jpg")
showImage ()
objDetect = ntes (7) objDetect.subscribe (onMotion) objDetect.start () os.system ("sudo killall -9 fbi")
-
Txuag cov ntaub ntawv
Peb tau khaws peb li rau hauv daim nplaub tshev npe genlab thiab npe nws Masterpiece.py
-
Txoj Cai Kuaj
Qhib davhlau ya nyob twg thiab qhib cov ntaub ntawv
cd nwb
Nab hab sej Masterpiece.py
*Nov yog qhov chaws ua haujlwm li cas.
Peb cov cai qhia tawm cov duab tsis ua haujlwm ntawm tus saib kom txog thaum lub suab ntsuas pom pom kev txav chaw thiab qhib cov vis dis aus thiab rov qab mus rau cov duab tsis tseem ceeb thawj qhov chaw tseem nyob. Peb muaj peev xwm nrhiav tau qhov qhib qhov chaws siv los ntawm Dominick Morino hauv nws Cov Possessed Portrait DIY Project, thiab ua kom yooj yim rau peb txoj haujlwm. Peb faib cov duab kos duab ua ob ntu: cov lus tsa suab sensor hais kom ua thiab tom qab ntawd cov duab/yees duab hais kom ua. Txog qhov ntsuas lub suab, peb tau xa thawj lub tsev qiv ntawv rau Raspberry Pi thiab GPIO pawg thawj coj. Koj tsis tas yuav hloov dab tsi ntawm thawj ntu ntawm cov cim ntsuas. Qhov thib ob ntawm txoj cai tau xa cov tsev qiv ntawv txuas ntxiv kom tso cai cov vis dis aus kom muaj kev cuam tshuam nrog tus lej cim hauv ntu 1.
Kauj Ruam 7: Kev Kho Tus Kheej
Nco ntsoov ntxig qhov kev hloov kho kom raug. Tau txais kev kho ntau dua li tus pas nrig los ntawm Ollivander nyob ntawm no.
Ntawm kab 54 nam piv. Txhawm rau hloov kev taw qhia los ntawm toj roob hauv pes mus rau duab hloov pauv 0, rau 90. Rau qhov piv piv tiag ntawm koj lub saib hloov 1680 1050 feem
video = ["omxplayer", "filename", "-o", "both", "--win", "0 0 1680 1050", "--aspect-mode", "fill", "--no-" osd "," --orientation "]
Ntawm kab 55 hloov lub npe video los ntawm 1680x1050video.mp4 rau koj lub npe ntawv
videoFile = "/home/pi/Videos/1680x1050video.mp4"
Ntawm kab 67 hloov daim duab npe los ntawm 1680x1050picture-j.webp" />
os.system ("sudo fbi -T 1 -d/dev/fb0 -noverbose -once /home/pi/Pictures/1680x1050picture.jpg")
Ntawm kab 71, lub ntsuas hluav taws xob txuas nrog GPIO chaw nres nkoj 4, uas yog chaw nres nkoj 7 ntawm pawg tswj hwm pawg. Yog tias koj xav txav lub ntsuas kom paub tseeb tias koj hloov nws mus rau tus lej raug
objDetect = ntes (7)
Thaum koj ua tiav nrog cov cai khaws koj cov ntaub ntawv, nco ntsoov qhov chaw koj khaws cov ntaub ntawv Qhib lub davhlau ya nyob twg cd Nias nkag mus yees duab yuav tshwm sim Thaiv tsab ntawv tsa suab sensor Video yuav pib Esc, tawm ntawm qhov project
Kauj Ruam 8: Tiav Touches
Soldering yuav tsum tau ua ntawm no. Xav tias siv lub Incendio ntxim nyiam kom ua kom nrawm cov txheej txheem cua sov rau cov hlau txuas.
- Thaum koj muaj lub ntsej muag txav chaw ua haujlwm, txhuam txhua lub xaim rau lub sensor
- Teem tus pi, thiab lub suab txav ntawm sab nraum qab ntawm tus saib thiab khawm nrog ib qho nrog cov nplaum uas koj xaiv (velcro, kua nplaum nplaum, kab xev thiab lwm yam)
Kauj Ruam 9: Tus Qauv
Ua ntej, lub vaj huam sib luag ntoo tau txiav thiab ruaj ntseg rau sab nraum qab ntawm peb lub saib xyuas siv cov cuab yeej kho vajtse uas twb tau tsim los rau hauv lub vijtsam. Peb nyuam qhuav pom cov ntsia hlau zoo ib yam thiab tau hlais cov ntoo mus rau tom qab ntawm lub saib. Yog tias koj lub ntsuas saib tsis muaj txoj hauv kev txuas nws mus rau lub vaj huam sib luag ntawm cov ntoo, lwm txoj hauv kev yuav yog los tsim cov khoom lag luam uas haum rau kev txhawb nqa nws.
Tom qab ntawd peb tau rov tsim dua ib tus thav duab los ntawm Hogsmeade tsuas yog yuav pov tawm. Peb ntsuas nws mus rau peb lub saib thiab txhawb nws nrog cov kab ntawm MDF. Cov thav duab no tau txuas rau ntawm lub vaj huam sib luag ntoo txuas rau lub saib xyuas siv epoxy, tab sis qhov yooj yim kho qhov ntxim nyiam tuaj yeem ua haujlwm ib yam.
Pom zoo:
DIY Harry Potter Tsiv Portrait Nrog Raspberry Pi: 3 Kauj Ruam
DIY Harry Potter Tsiv Portrait Nrog Raspberry Pi: Tsiv Portrait tshoov siab los ntawm Harry Potter tsos. Tsiv Portrait tau tsim los siv lub khoos phis tawj qub uas tawg. Nws tuaj yeem tsim txawm tias siv Raspberry Pi txuas nrog cov zaub lossis lub qub saib. Tsiv Portrait Frame zoo li txaus, peb tuaj yeem pom tsev neeg cov duab
Lub Neej Tiag Tsiv Tsog Portraits Los Ntawm Harry Potter !: 11 Kauj Ruam (nrog Duab)
Lub neej tiag txav Portraits Los Ntawm Harry Potter!: &Quot; Zoo kawg! Zoo kawg! Qhov no tsuas yog zoo li khawv koob! &Quot; - Gilderoy Lockhart Kuv yog tus kiv cua Harry Potter loj heev, thiab ib yam uas kuv ib txwm nyiam los ntawm Wizarding World yog cov duab txav mus los. Kuv dawm hla Kyle Stewart-Frantz's Animated Pictur
RC Tank Nrog Tsiv FPV Lub Koob Yees Duab: 9 Kauj Ruam (nrog Duab)
RC Tank Nrog Tsiv FPV Lub Koob Yees Duab: Nyob Zoo Hauv qhov kev qhia no kuv qhia koj yuav tsim lub tank tswj chaw taws teeb nrog FPV lub koob yees duab. Thaum pib kuv tsim tsuas yog lub tank RC tsis muaj lub koob yees duab FPV tab sis thaum kuv tsav nws hauv tsev kuv tsis tau pom nws nyob qhov twg. Yog li kuv tuaj nrog qhov uas kuv yuav ntxiv rau
Ua haujlwm tiag Harry Potter Wand Siv Lub Zeem Muag Computer: 8 Kauj Ruam (nrog Duab)
Tiag Ua Haujlwm Harry Potter Wand Siv Lub Zeem Muag Computer: " Txhua Yam Kev Siv Tshuab Siv Tau Zoo Tsis Txaus Siab los ntawm Khawv koob " - Arthur C. Clarke Ob peb hlis rov qab kuv tus nus tau mus ntsib Nyij Pooj thiab tau muaj kev paub ua txuj ci tiag hauv Wizarding World of Harry Potter ntawm Universal Studios ua rau
Harry Potter Rotating RGB Display: 10 Kauj Ruam (nrog Duab)
Harry Potter Rotating RGB Display: Tom qab txiav txim siab ua qee yam rau kuv tus ntxhais lub hnub yug kuv xav tias ua ib qho ntawm cov duab acrylic RGB yuav txias. Nws yog tus kiv cua ntawm Harry Potter cov yeeb yaj kiab yog li cov ntsiab lus xaiv tau yooj yim. Txiav txim siab dab tsi cov duab los siv txawm li cas los tsis yog! Kuv wi