Cov txheej txheem:

Harry Potter IR Chaw Taws Teeb Nrog Raspberry Pi: 5 Kauj Ruam
Harry Potter IR Chaw Taws Teeb Nrog Raspberry Pi: 5 Kauj Ruam

Video: Harry Potter IR Chaw Taws Teeb Nrog Raspberry Pi: 5 Kauj Ruam

Video: Harry Potter IR Chaw Taws Teeb Nrog Raspberry Pi: 5 Kauj Ruam
Video: El video de esta canción es tan Harry Potter que asusta || Wonder—Shawn Mendes [Sub. Español.] 2024, Lub Xya hli ntuj
Anonim

Los ntawm coleminer31 Ua raws ntau los ntawm tus sau:

Tsis Txaus Mesh ntawm M5Stack Core2
Tsis Txaus Mesh ntawm M5Stack Core2
Tsis Txaus Mesh ntawm M5Stack Core2
Tsis Txaus Mesh ntawm M5Stack Core2

Txog: Kuv yog tus kws tshaj lij hluav taws xob nrog kev txaus siab ua khawv koob tshwm sim thaum nias lub pob. Qee zaum koj tso cov khawv koob xiav haus luam yeeb tawm, txawm li cas los xij. Xav paub ntau ntxiv txog coleminer31 »

Cov lus qhia no qhia yuav ua li cas thiaj ua tau yooj yim Python tsab ntawv uas yog tswj los ntawm Harry Potter universal cov chaw taws teeb tswj los ntawm Noble Collection. Nws xav tau Raspberry Pi ua tus tswj hwm thiab Flirc USB IR tus txais txais ua ke nrog lub thoob thoob thoob thoob los tswj kev ua haujlwm hauv tsab ntawv.

Kuv tuaj txog ntawm qhov kev daws teeb meem no tom qab sim hloov kho ntau yam khoom siv tswj tuav uas lwm tus neeg tshaj tawm cov lus qhia rau ntawm Qhia, Hackster, thiab lwm qhov. Cov nto moo tshaj plaws ntawm no yog Rasberry Potter project tsim los ntawm Sean O'Brien (https://www.raspberrypotter.net/about). Feem ntau ntawm cov phiaj xwm tau ua rau cov phiaj xwm ua haujlwm los ntawm kev cuam tshuam IR lub teeb ci tawm ntawm qhov taub ntawm tus pas nrig, kuaj pom lub teeb pom kev zoo siv Raspberry Pi NoIR lub koob yees duab, thiab taug qab lub teeb uas siv lub khoos phis tawj pom kev sib txawv. Cov phiaj xwm no ua haujlwm, thiab qhov hloov pauv tau uas lub khoos phis tawj pom kev raws qhov ua tau zoo yog qhov ua tau zoo. Tab sis lub khoos phis tawj lub zeem muag pom kev txhua qhov tso cai rau qee qib ntawm qhov tsis pom tseeb, thiab kuv xav tau qee yam ntxiv.

Kuv lub hom phiaj kawg yog tsim kom muaj lub thawv khawv koob, tuav cov khoom muaj nqis uas kuv tus viv ncaus tuaj yeem siv los ua tus txhawb nqa hauv nws chav kawm qib ib (ob leeg kuv tus muam thiab kuv niam yog tus kws qhia, thiab lawv yog cov khawv koob tiag). Kuv pib los ntawm kev rov tsim kho qhov Raspberry Potter project, tab sis, raws li kuv tau sau tseg lawm, kuv muaj teeb meem tshem tawm qhov tsis pom tseeb. Cov chav kawm yog qhov chaw uas tsis tuaj yeem kwv yees tau, hais tsawg kawg. Muaj ntau ntau qhov txav mus los uas tuaj yeem cuam tshuam lub teeb lossis qhov ntawd yuav yog lub teeb pom kev ntawm lawv tus kheej, thiab koj tsis tuaj yeem yooj yim dim chav kawm txaus kom tshem tawm cov peev txheej uas lub khoos phis tawj pom kev algorithms yuav sim taug qab.

Kuv paub tias kuv xav tau qee yam uas tsis tuaj yeem cuam tshuam nrog cov teeb pom kev zoo hauv chav kawm. Tib lub sijhawm, kuv paub tias kuv tsis xav tsim ib yam zoo li kuv tus kheej. Hmoov zoo, Lub Tuam Txhab Nobel twb tau ua Harry Potter universal wand rau tej thaj chaw deb, thiab Flirc USB tus txais yuav muab koj lub peev xwm los cuam tshuam nrog ib qho IR tej thaj chaw deb hais kom ua nrog tus yuam sij. Los ntawm kev sau ib tsab ntawv nab nab uas tos rau qhov tshwj xeeb nias, Kuv muaj peev xwm txheeb xyuas cov lus txib xa los ntawm Harry Potter universal wand nyob deb txhua lub sijhawm nws tau ua tiav los ntawm Flirc USB tus txais. Qhov teeb tsa no tau muab kev tswj hwm kuv xav tau.

Koj tuaj yeem pom cov txiaj ntsig hauv gifs kuv tshaj tawm. Hauv cov vis dis aus no, kuv siv kuv cov ntawv harrypottercontroller.py los tsav lub cav servo, uas qhib thiab kaw lub thawv khoom uas yuav muab tso rau hauv kuv tus muam chav kawm.

Khoom siv

Rasberry Pi 3b+

www.amazon.com/CanaKit-Raspberry-Premium-C…

Flirc USB tus txais

flirc.tv/flirc-usb

Harry Potter Universal Remote Wand

www.amazon.com/HARRY-POTTER-Remote-Control..

Kauj Ruam 1: Npaj Raspberry Pi

Npaj Raspberry Pi
Npaj Raspberry Pi

Kuv siv Raspberry Pi 3 Qauv B+ rau txoj haujlwm no, tab sis cov nab nab ntawv yuav tsum ua haujlwm nrog lwm cov qauv. (Thiab nws yuav zoo li ua haujlwm nrog lwm qhov teeb tsa uas tuaj yeem ua haujlwm Python muaj chaw nres nkoj usb, ib yam nkaus.) Koj yuav xav tau cov keyboard, nas, thiab tso saib rau koj li Raspberry Pi yog tias koj tsis muaj lawv.

Thaum koj muaj koj li Raspberry Pi teeb tsa khiav, ua raws cov lus qhia no los ntawm Sparkfun kom pib nrog Python.

learn.sparkfun.com/tutorials/python-progra…

Kauj Ruam 2: Npaj Flirc USB Reciever

Npaj Flirc USB Reciever
Npaj Flirc USB Reciever

Tam sim no koj muaj Python khiav ntawm koj lub Raspberry Pi, ntsaws Flirc UCB tus txais mus rau hauv USB qhov ntawm koj lub rooj tsavxwm.

Ua raws cov lus qhia no txhawm rau txhim kho Flirc software ntawm koj li Rasberry Pi.

flirc.gitbooks.io/flirc-instructions/conte…

Kauj Ruam 3: Npaj Koj Li Harry Potter Wand

Npaj koj li Harry Potter Wand
Npaj koj li Harry Potter Wand

Koj yuav xav tau ob lub roj teeb AA thiab IR TV chaw taws teeb. Thaum koj muaj lawv, ua raws cov lus qhia no los ntawm The Noble Collection los pib ua koj rab koob, xyaum qee yam piav tes piav tes, tom qab ntawd teeb tsa qee yam taw tes kom phim tus lej uas xa los ntawm koj lub TV.

www.noblecollection.com/ItemFiles/Manual/R…

Kauj Ruam 4: Pair Koj Flirc thiab Harry Potter Wand

Pair Koj Flirc thiab Harry Potter Wand
Pair Koj Flirc thiab Harry Potter Wand

Tam sim no koj muaj koj li Flirc thiab Harry Potter wand teeb tsa, koj yuav tsum tau khub lawv. Koj tuaj yeem ua qhov no los ntawm Flirc GUI siv cov lus qhia no.

flirc.gitbooks.io/flirc-instructions/conte…

Ua raws li "Advanced Pairing" phau ntawv qhia txhawm rau sau IR cov lus txib, xa los ntawm kev tuav koj tus pas thaum nws nyob hauv Hom Kev Tswj, thiab cuam tshuam nrog nws mus rau qhov nias. Tom qab ntawd kaw qhov Flirc kaw hom, qhib Raspberry Pi lub davhlau ya nyob twg, thiab yoj koj lub wand dua, saib seb puas muaj tus nias koj qhov program tau tshwm sim hauv lub davhlau ya nyob twg.

Koj tseem tuaj yeem ua qhov no hauv lub davhlau ya nyob twg yam tsis siv GUI los ntawm kev ua raws cov lus qhia no.

flirc.gitbooks.io/flirc-instructions/conte…

Nov yog qhov kuv nyiam tshaj plaws thaum ua haujlwm ntawm txoj haujlwm, thiab nws yog txoj hauv kev kuv pom zoo yog tias koj nyiam ua haujlwm hauv Linux davhlau ya nyob twg.

Kauj Ruam 5: Teeb Koj Li Python Code (KAUJ RUAM KAWG!)

Teem Koj Tus Python Code (KAUJ RUAM KAWG!)
Teem Koj Tus Python Code (KAUJ RUAM KAWG!)

Ua ntej, rub tawm harrypottercontroller.py Python tsab ntawv hauv Cov Lus Qhia no, lossis tau txais los ntawm git repo ntawm no.

github.com/coleminer31/HarryPotterRaspberr…

Muab cov ntawv nab nab tso rau hauv phau ntawv teev npe uas koj xaiv, thiab qhib nws nrog tus kws kho koj xaiv.

Txhua yam koj yuav tsum tau ua yog hloov 'PUT YOUR CHOSEN CHARACTER HERE' nrog Flirc tus cwj pwm koj ua khub nrog koj tus pas. Tom qab ntawd hloov #DO Qee Yam Ntawm No hauv cov khawv koob thaum-lub voj nrog ua haujlwm uas koj xav khiav. (Cov Lus Qhia: koj yuav xav ua lub luag haujlwm uas ua txhaum lub voj tom qab tus yuam sij raug nias, yog li koj tuaj yeem zam lub voj tsis muaj qhov kawg thiab tso tseg tsab ntawv kom raug.)

Thiab qhov ntawd yog nws! Nws yog tus wizard, programmer. Tam sim no koj tuaj yeem tswj Python kev ua haujlwm nrog koj tus pas. Tsuas yog khiav tsab ntawv thiab muab nws yws.

Koj tuaj yeem siv qhov teeb tsa no los tsav txhua tus lej ntawm daim ntawv thov, los ntawm kev siv neeg hlau mus rau IoT. Kuv tos ntsoov pom qhov koj tsim!

Pom zoo: