Cov txheej txheem:

Lumos Christmas Ntoo: 3 Kauj Ruam
Lumos Christmas Ntoo: 3 Kauj Ruam

Video: Lumos Christmas Ntoo: 3 Kauj Ruam

Video: Lumos Christmas Ntoo: 3 Kauj Ruam
Video: Instant Christmas Tree 2024, Hlis ntuj nqeg
Anonim
Lumos Christmas Tree
Lumos Christmas Tree
Lumos Christmas Tree
Lumos Christmas Tree
Lumos Christmas Tree
Lumos Christmas Tree

Kuv cov menyuam thiab kuv tau tsim txoj haujlwm no kom coj me ntsis khawv koob los ntawm Universal Studios tsev nrog peb. Tsis ntev los no peb tau mus ntsib lub tiaj ua si ntsiab lus thiab yuav cov pas nrig los ntawm Ollivander lub khw muag khoom ntoo thiab muaj kev lom zem heev mus ncig lub tiaj ua si kom qhib chaw sib txawv. Kuv ib txwm xav paub yuav ua li cas cov khoom ua haujlwm, yog li kuv tau mus googling yuav ua li cas rov ua dua qhov no hauv tsev. Kuv pom ntau qhov qhia tau zoo rov tsim cov txuj ci hauv lawv tus kheej txoj hauv kev tshwj xeeb, tab sis Christmas tau nyob ib puag ncig ntawm lub ces kaum thiab kuv xav tias nws yuav yog qhov txaus siab yog tias kuv tuaj yeem koom ua ke cov khawv koob ntawm Christmas thiab kev ua khawv koob ntawm Hogwarts thiab tej zaum yuav txhawb qee tus menyuam hauv kuv tsev neeg txuas ntxiv xav txog yuav ua li cas lub cajmeem thiab kev tsim vaj tsev zoo li ua khawv koob hauv lub neej tiag. Yog li "Lumos Christmas Tree" tau yug los. Tsob ntoo no tau npaj los nyeem 8 qhov sib txawv thiab ua lub teeb thiab lub suab ua kom zoo sib xws ntawm hom ntawv uas tau "kos".

Khoom siv

Koj tuaj yeem teeb tsa qhov no los ua haujlwm nrog lwm qhov teeb tsa, tab sis ntawm no yog qhov kuv tau sim nrog: 1. I-VOM Wireless Mini Speaker nrog 3.5mm Aux Input Jack, 3W nrov nrov Portable Speaker rau iPhone iPod iPad Cellphone Tablet Tablet, nrog USB Rechargeable Yog

2. AmazonBasics USB 2.0 Cable - A -Male to Mini -B Cord - 6 Feet (1.8 Meters

3. Infrared Hmo Hmo Pom Kev IR Lub Koob Yees Duab rau Raspberry Pi 4, Pi 3b+ Video Webcam nrog Case Suits rau 3D Priter

4. Adafruit FadeCandy - Dithering USB -Controlled Driver for RGB NeoPixels [ADA1689]

5. ALITOVE 50pcs DC 12V WS2811 Led Pixel Black 12mm Diffused Digital RGB Addressable Npau Suav Xim Hloov LED Pixels Module IP68 Waterproof

6. CanaKit Raspberry Pi 4 4GB Starter Kit - 4GB RAM

7. Harry Potter wand los ntawm Universal Studios (lossis ua koj tus kheej

8. 12V cov khoom siv hluav taws xob txuas hluav taws xob rau LED Pixels https://www.amazon.com/inShareplus-Mounted-Switching-Connector-Adapter/dp/B01GD4ZQRS/ref=sr_1_8?crid=X2O2PHIZMUYN&dchild=1&keywords=12v+wall+adapter&qid = 1601237915 & sprefix = 12v+phab ntsa%2Caps%2C163 & sr = 8-8

Xaiv cov ntaub ntawv los tsim tsob ntoo:

1. Txiv lws suav Cage thav duab rau tsob ntoo:

2. Garland (Kuv siv 2.5 ntawm cov no):

3. Twist Ties (Kuv siv 2 qhov no):

Kauj ruam 1: Kev thaiv kab

Thaiv
Thaiv
Thaiv
Thaiv
Thaiv
Thaiv

Txog qhov haujlwm no kuv tau siv lub lauj kaub lws suav thiab qee daim duab los tsim kuv tsob ntoo Christmas thiab khaws kuv lub teeb kom haum zoo ib yam. Qhov no tsis yog qhov yuav tsum tau ua, txawm hais tias kuv xav tias nws ua rau cov duab pom zoo dua. Qhov tseem ceeb ntawm cov kauj ruam no yog lub koob yees duab pom kev hmo ntuj yuav tsum muaj qhov pom meej ntawm tus tuav tes, thiab txhua lub tshuab hauv sab hauv yuav tsum muaj cua txaus txaus. Kuv siv cov hlua sib txuas los txuas txhua yam ua ke. Kuv tau txuas lub txiv lws suav tawb rau ntawm daim duab los qhia thiab raspberry pi, tus hais lus, thiab lub koob yees duab pom kev hmo ntuj tau txuas rau daim ntawv los hauv paus. Garland raug mob ib ncig ntawm lub tawb lws suav kom npog sab hauv, ua tib zoo saib xyuas nws tawm ntawm lub koob yees duab saib, qee qhov kev txiav yuav tsim nyog los ua qhov no. Kuv tau siv txog 30 ko taw ntawm cov khaub ncaws los qhwv kuv 33 "siab, 12" txoj kab uas hla txiv lws suav tawb ntoo.

Kauj ruam 2: Nruab Software

Txoj haujlwm no tau sim nrog qhov hloov tshiab kawg ntawm Raspian Buster nrog lub desktop version: 4.19. Koj tuaj yeem rub tawm qhov hloov tshiab kawg ntawm

1. OpenCV: Ua raws cov lus qhia ntawm no blog tshaj tawm los teeb tsa OpenCv thiab ib puag ncig virtual:

2. Ua: Ua raws li cov lus qhia hauv kab lus blog no txhawm rau txhim kho software ntawm raspberry pi:

3. FadeCandy: Ua raws cov lus qhia ntawm fadecandy github readme https://github.com/scanlime/fadecandy txhawm rau clone fadecandy thiab teeb tsa fadecandy server. Koj yuav npaj txav mus thaum koj tuaj yeem tswj hwm koj lub teeb los ntawm kev nkag mus rau fcserver ntawm https:// localhost: 7890/

4. Clone "Lumos Christmas Tree" qhov chaw los ntawm:

5. Tsim kom muaj lub teeb pom kev ua haujlwm tau ua tiav: Kuv tau suav nrog cov ntaub ntawv tsim nyog los tsim cov teeb tsa ua duab, tab sis vim tias java executables loj heev, koj yuav tsum tau sau lawv cais. Hauv qab no yog cov lus txib kom ua (hloov/tsev/pi/repos/rau txhua qhov chaw koj clone txoj haujlwm no):

exec/usr/local/bin/processing-java --sketch =/home/pi/repos/lumos-the-christmas-tree/strip50_flames --output =/home/pi/repos/lumos-the-christmas-tree/ incendio --platform = linux --export

exec/usr/local/bin/processing-java --sketch =/home/pi/repos/lumos-the-christmas-tree/strip50_water --output =/home/pi/repos/lumos-the-christmas-tree/ aguamenti --platform = linux --export

exec/usr/local/bin/processing-java --sketch =/home/pi/repos/lumos-the-christmas-tree/strip50_light --output =/home/pi/repos/lumos-the-christmas-tree/ lumos --platform = linux --export

exec/usr/local/bin/processing-java --sketch =/home/pi/repos/lumos-the-christmas-tree/strip50_spazzy --output =/home/pi/repos/lumos-the-christmas-tree/ tawg --platform = linux --export

Kauj ruam 3: Khiav qhov program

Khiav qhov Program
Khiav qhov Program
Khiav qhov Program
Khiav qhov Program

Lub hauv paus ntawm github suav nrog kev lees paub kev sau rau cov ntawv sau rau ntawm daim ntawv tshaj tawm saum toj no. Muaj cov lus qhia ntawm github readme yog tias koj xav sim qhia koj tus kheej kev sau ntawv. khiav lumos.py los pib qhov program Kev lees paub qhov ua haujlwm zoo tshaj plaws nyob rau hauv lub teeb qis, yog tias koj muaj teeb meem nrog cov duab wandtracing thaws thoob plaws lub vijtsam, txheeb xyuas lub qhov rai debug kom pom tias nws tau khaws ib qho teeb meem tsis raug, cov no yuav yog pom nrog lub voj voog liab ntawm qhov screen.

Pom zoo: