Cov txheej txheem:

DIY Digital Out of Body Experience: 6 Kauj Ruam
DIY Digital Out of Body Experience: 6 Kauj Ruam

Video: DIY Digital Out of Body Experience: 6 Kauj Ruam

Video: DIY Digital Out of Body Experience: 6 Kauj Ruam
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Hlis ntuj nqeg
Anonim
DIY Digital Out of Body Experience
DIY Digital Out of Body Experience

Hauv qhov kev qhia no, koj yuav kawm paub tsim lub kaw lus uas tso cai rau koj pom zoo li koj nyob qhov twg. Kuv hu qhov digital no tawm ntawm lub cev kev paub vim thawj zaug kuv xav txog cov txheej txheem no yog thaum kuv tau xyaum yoga thiab kuv xav tias nws yuav ntxim nyiam heev los xyaum thaum pom kuv tus kheej nrog 3d tus neeg saib, zoo li hauv qee qhov vis dis aus. Thaum kawg kuv kuj xav tias nws tuaj yeem yog lub cuab yeej nthuav los xav txog ntawm tus kheej, saib kuv tus kheej los ntawm sab nraud, ua qhov cuab yeej pab kuv coj qee qhov nrug deb thiab tsuas yog saib kuv qhov kev xav, kev xav thiab kev xav. Tab sis tus pib yogi thiab xav hauv kuv tsis yog cov neeg raug kom coj kuv mus nrog txoj haujlwm no. Thaum kawg nws yog tus gamer/player kuv yog tus xav tias qhov haujlwm no yuav yog ib qib zoo ntxiv rau kev tsim lub xov tooj neeg hlau tswj los ntawm thawj tus neeg saib ta ua qee yam ntawm cov neeg hlau mobile ua ntej pom kev sib tw!

Kauj Ruam 1: Yam Koj Yuav Tsum Tau

Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau
Yam Koj Yuav Tsum Tau
  1. 2xRaspberry Pi 3 qauv B txhua tus nruab nrog lub koob yees duab thiab ntsuas kab (15cm thiab 30cm)
  2. Lub roj teeb thaiv, 2 lub roj teeb thiab usb rau 2xmini-USB cable txuas rau Raspberry's (Kuv siv ob lub 10650 roj teeb thaiv nrog USB tso tawm, 2xLiitoKala Lii-35A 18650 roj teeb, thiab cov hlua no)
  3. 240x140x5mm daim ntawm MDF ntoo (lossis lwm yam ntoo sib xws nrog laser txiav)
  4. Nkag mus rau lub laser cuter
  5. M2 ntsia hlau thiab ntsia hlau
  6. Lub computer nrog nab
  7. Lub smartphone nrog chrome
  8. Ib daim npav google lossis cov kab ke tso cai rau koj kom tau txais VR kev paub los ntawm koj lub xov tooj (Kuv tau txais ednet Virtual Reality Brille uas tau sib xws nrog xov tooj ntawm qhov ntev txog 159.2 mm x 75.2 mm los ntawm qhov kuv nyeem)

Kauj Ruam 2: Tau Rapsberry Pi txhawm rau Kaw Cov Duab Live thiab Qhia Tawm

Ua ntej cia peb paub tseeb tias peb lub koob yees duab Pi txuas rau ntawm Raspberry Pi. Ua tiav? Ntawd yog qhov kho vajtse rau theem no. Cia peb txuas ntxiv nrog software ib feem.

Hais txog qhov muag muag, yog tias koj nyob hauv kuv rooj plaub thiab koj tsis muaj OS teeb tsa ntawm koj li PI thiab tias koj tsis muaj cov keyboard ntxiv, nas thiab tshuaj ntsuam, tom qab ntawd cia peb rub raspbian lite ntawm no thiab ua raws cov kauj ruam yooj yim piav qhia ntawm no: https://www.taygan.co/blog/2018/03/08/setup-a-rasp… Yog tias txhua yam mus tau zoo, tam sim no koj tus Pi txuas nrog koj WIFI, koj paub nws tus IP chaw nyob thiab koj txuas nrog nws los ntawm ssh.

Siv ssh cia ua Pi qhia qhov nws pom. Rau qhov no peb yuav siv UV4L. Txog qhov no ua raws cov kauj ruam ntawm cov vev xaib hauv qab no: https://raspberry-valley.azurewebsites.net/UV4L/. Yog tias koj tau ua tiav nrog UV4L teeb raws li tau piav qhia hauv kab ntawv txuas, tam sim no koj yuav tsum tuaj yeem pom cov vis dis aus nyob ntawm koj lub raspberry ntawm koj lub computer. Txhawm rau qhov no yooj yim mus rau koj tus browser ntawm qhov chaw nyob https:// raspberryip: 8080/kwj, hloov "raspberryip" los ntawm ip ntawm raspberry pi uas koj pom los ntawm lanScan.

Tam sim no nws yog rau ib ntawm peb ob lub qhov muag . Yuav ua li cas lwm tus? Xijpeem peb rov ua cov txheej txheem qub, ib qho peb clone dab tsi ntawm peb raspberry pi mus rau lwm daim npav SD. Txhawm rau paub ntau ntxiv txog qhov kev xaiv thib ob koj tuaj yeem tshawb xyuas qhov no github:

Thiab koj mus, koj yuav tsum tam sim no muaj koj ob lub raspberry pi sib koom lawv cov vis dis aus nyob ntawm lub network hauv zos! Peb tau tawm ntawm lub qhov muag ua haujlwm, tam sim no cia peb daws qhov teeb meem me me strabisme thiab cia peb ua rau peb cov kab ke me me nqa tau!

Kauj Ruam 3: Ua Nws Portable: Laser Txiav thiab Mount

Ua Nws Portable: Laser Txiav thiab Mount
Ua Nws Portable: Laser Txiav thiab Mount
Ua Nws Portable: Laser Txiav thiab Mount
Ua Nws Portable: Laser Txiav thiab Mount
Ua Nws Portable: Laser Txiav thiab Mount
Ua Nws Portable: Laser Txiav thiab Mount

Txhawm rau ua kom lub koob yees duab zoo dua qub, Kuv tau tsim cov qauv ntoo uas kuv tuaj yeem ntsia tau lub raspberry Pis lub koob yees duab thiab lub roj teeb tiv thaiv. Tus qauv tsim tau txuas ntawm no ua cov ntaub ntawv svg. Tej zaum koj yuav tsum hloov kho txoj haujlwm ntsia hlau rau daim npog roj teeb nyob ntawm koj daim thaiv thiab/lossis tus qauv tsim nyob ntawm koj cov ntoo tuab.

Thaum koj tau txais txhua yam txiav:

  1. Mount lub koob yees duab ntawm sab laug ntawm qhov tsim (8 M2 screws ntawm 5 mm, 8 M2 screws ntawm 8 mm, thiab 8 bolts ntawm 8 mm)
  2. Mount lub roj teeb thaiv (4 M2 screws ntawm 5 mm, 4 M2 screws ntawm 8 mm, thiab 4 bolts ntawm 8 mm)
  3. Mount raspberry pi "pawg" raws li qhia hauv daim duab saum toj no (4 M2 screws ntawm 5 mm, 4 M2 screws ntawm 8 mm, 4 txiv neej-poj niam bolts ntawm 5mm lossis ntau dua, 4 21mm bolts). Nco tseg: Kuv tsis muaj 21mm ntsia hlau yog li kuv tau ua kuv li nrog 16 tus ntsia liaj qhov rooj thiab 5 tus txiv neej-txiv neej ntsia liaj qhov rooj.

Lus ceeb toom: qhov ntev ntawm cov ntsia liaj qhov rooj txhais ntawm no tuaj yeem hloov pauv, tsuas yog yam tsuas yog ua kom ntseeg tau tias qhov kev ncua deb ntawm raspberry Pis loj txaus kom tsis txhob muaj qhov luv …

Them koj lub roj teeb Lithium siv lub roj teeb tiv thaiv lub mini-usb txuas, thiab teeb cov ntoo ua ke raws li qhia hauv daim duab saum toj no. Koj npaj tau txuas koj lub roj teeb tiv thaiv rau cov txiv pos nphuab! Thiab tsis tas yuav tsum tau ssh-ing ntxiv, sai li peb tau txhawb lub zog raspberry pi nws tam sim no faib cov vis dis aus online sai li sai tau thaum nws pib ua tsaug rau UV4L. Kis tau tshaj!

Kauj Ruam 4: Pom Duab Lub Stereo

Pom lub suab tso suab
Pom lub suab tso suab

Tam sim no peb muaj ob daim duab uas nkag mus tau los ntawm lub network hauv zej zog, peb pom tias peb tuaj yeem saib lawv ib tus zuj zus siv qhov chaw nyob https:// raspberryip {1, 2}/stream/ntawm qhov browser. Puas yog peb tuaj yeem sim qhib ob nplooj ntawv ntawm peb tus browser? Tsis yog peb yuav tsis! 1. Qhov ntawd yuav dhau mus dhau qhov 2. uas yuav tsis ua haujlwm raws li nws cov zaub yuav mus pw tom qab qee lub sijhawm! Cov kauj ruam no yuav qhia koj yuav daws cov teeb meem ntawd li cas.

Ua ntej peb pom dab tsi tom qab qhov chaw nyob siv ua ntej. Yog tias koj txheeb xyuas cov cai html ntawm nplooj ntawv uas tau qhib, koj yuav pom tias cov kwj uas tau qhia ntawm nplooj ntawv suav nrog

tag nrog lub hauv paus txhais ua https://raspberryip/stream/video.mjpeg. Vim li ntawd cov kauj ruam kawg tuaj yeem yooj yim heev. Ib txoj hauv kev tuaj yeem ua haujlwm rau hauv app nrog ob lub Webviews los qhia cov duab kwj tawm, ib qho yooj yim dua yog kom khiav lub server hauv zos ntawm peb lub khoos phis tawj uas yuav ua rau nplooj ntawv html zoo ib yam li "https:// raspberryip/stream/" tsuas yog hais tias nws yuav tso cai rau koj saib ob qho kwj dej tsis yog ib qho, thiab ua kom lub cuab yeej tsaug zog.

Peb teeb tsa lub server li cas? Tsis muaj dab tsi yooj yim dua nrog nab hab sej. Tsim cov ntawv tais ceev tseg uas koj muab cov ntaub ntawv index.txt thiab NoSleep.txt uas koj yuav hloov npe ua index.html thiab NoSleep.js. Hauv index.html, tshawb rau ob

cim npe thiab hloov raspberry ips nrog koj li. Qhov no yuav yog nplooj ntawv html uas qhia peb ob daim duab ntws nrog javascript tso cai rau nws nyob twj ywm. Tam sim no koj xav ua nplooj ntawv no nkag mus rau koj lub xov tooj ntawm tes, qhov twg nab nab tau txais ua ke: muab cov ntaub ntawv server.py nyob rau hauv tib lub nplaub tshev thiab pib sau ntawv siv cov lus txib sej server.py (Nco ntsoov tias tsab ntawv no tau tshaj nrog nab nab 3, yog tias koj siv nab hab sej 2 koj yuav tau hloov server.py thiab hloov socketserver los ntawm SocketServer).

Qhov ntawd yog nws koj tuaj yeem nkag mus rau lub suab tso suab los ntawm ib lub cuab yeej nrog lub browser txuas nrog koj lub network hauv zej zog. Sim nws tawm, tau txais ip ntawm koj lub computer thiab qhib https:// computerip: 8080. Tej zaum koj yuav pom peb yam:

  • Nws zoo heev peb yuav luag nyob ntawd!
  • Nws tsis nyob hauv puv npo,
  • Nws mus pw thaum kawg.

Ua li cas? Raws li koj tuaj yeem nyeem ntawm no lub luag haujlwm kom qhib lub hom pw tsis tsaug zog xav tau kev ua dummy kom raug hu. Txhawm rau hwm qhov kev xav tau no kuv txuas qhov nyem rau ntawm thawj daim duab rau txoj haujlwm no. Raws li qhov tshwm sim yooj yim nyem rau ntawm thawj daim duab thiab koj yuav tsum pom qhov ceeb toom qhia rau koj tias tsis muaj kev pw tsaug zog tau qhib thiab nplooj ntawv yuav tsum tam sim no nyob rau hauv puv npo ib yam.

Qhov ntawd yog nws! Tam sim no koj yuav tsum muaj peev xwm tso koj lub xov tooj rau hauv koj lub mloog pob ntseg VR thiab pom dab tsi tshwm sim nyob rau ntawm koj tus Pi! Los yog nws?

Kauj Ruam 5: Txhim Kho Txhua Yam

Qhov tseeb, yog tias koj Pi's thiab network zoo ib yam li kuv, qhov koj pom hauv koj lub mloog pob ntseg yuav ua tau txawv txawv vim tias yuav muaj qee qhov qeeb qeeb. Yog li kom ua tiav nrog lub kaw lus du peb daws qhov teeb meem kawg no. Yuav daws qhov ncua sij hawm li cas? Kuv yooj yim kwv yees tias qhov teeb meem tuaj yeem tshwm sim los ntawm kev sib zog hauv lub sijhawm tiag tiag los ntawm Pi's uas yog kev suav ntau dhau, ib qho los ntawm kev sib txuas wireless uas kuv yuav tsis ntseeg. Xijpeem, los daws nws koj tuaj yeem ua qee yam yooj yim heev uas yog txhawm rau txo qhov kev daws teeb meem thiab me ntsis uas koj cov duab tau txais thiab cim rau ntawm Pi's.

Txhawm rau hloov cov kev ntsuas no, rov qab los rau koj lub davhlau ya nyob twg thiab nkag mus rau koj li Raspberry Pi's. UV4L siv cov ntaub ntawv teeb tsa. Cov ntaub ntawv no yog /etc/uv4l/uv4l-raspicam.conf. Txhawm rau kho nws ntaus cov lus txib sudo nano /etc/uv4l/uv4l-raspicam.conf. Tam sim no koj tuaj yeem teeb tsa qhov dav, qhov siab thiab qhov ntau npaum li koj nyiam. Kuv siv qhov dav qhov dav = 320, qhov siab = 240 thiab kev ntsuas = 40 thiab tau txais kev sib kis tau zoo nrog cov ntawd.

Kauj ruam 6: Txaus siab rau

Qhov tsuas yog tshuav ua tam sim no tau teeb tsa qhov system uas koj xav kom nws ua, muab koj lub xov tooj tso rau hauv koj daim duab los qhia, thiab ua koj qhov kev sib tham yoga, xav txog qhov muag, npias npias nrog koj cov phooj ywg, lossis xijpeem! Koj yuav xav tau qee lub sijhawm (1 lossis 2 feeb) txhawm rau siv rau lub koob yees duab kev taw qhia uas yuav hnov thaum xub thawj zoo li koj tam sim muaj teeb meem strabismus. Ib txoj hauv kev rau kuv kom siv tau sai yog ua ntej tsom mus rau cov khoom ze thiab tom qab ntawd txav mus rau qhov ntxiv.

Kuv xav txog ob peb qhov txuas ntxiv uas tuaj yeem nthuav:

  • ua kom nws tuaj yeem pom sab nraum koj lub tsev, uas yog ua kom cov kwj nkag tau los ntawm sab nraum koj lub network.
  • muab nws tso rau hauv lub xov tooj ntawm tes neeg hlau los ua kev sib tw drone!

Raws li tus kws qhia ntawv kuv xav tias txoj haujlwm no tuaj yeem nthuav kom paub ntau ntxiv txog:

  • Raspberry Pi, dab tsi yog cov khoom siv hauv computer, dab tsi yog OS system,
  • Cov ntsiab lus dav dav hauv network, nrog IP hauv thiab sab nraud, HTTP raws tu qauv,
  • HTML thiab javascript.

Kuv vam tias phau ntawv qhia no uas yog kuv thawj zaug pom meej txaus yam tsis hnyav rau nyeem.

Pom zoo: