Cov txheej txheem:

Graffiti Virtual: 8 Kauj Ruam
Graffiti Virtual: 8 Kauj Ruam

Video: Graffiti Virtual: 8 Kauj Ruam

Video: Graffiti Virtual: 8 Kauj Ruam
Video: The Palace of Fine Arts and Fort Point - Evening Vlog Trip 2024, Lub Xya hli ntuj
Anonim
Virtual Graffiti
Virtual Graffiti

Kuv tau pom ob peb lub tshuab kos duab virtual hauv lub vev xaib tab sis tsis tuaj yeem pom cov ntaub ntawv tshaj tawm yuav ua li cas thiaj ua tau (txawm hais tias pom nplooj ntawv kawg). Kuv xav tias nws yuav zoo rau kuv kev kos duab kos duab, yog li kuv tau ua kuv tus kheej thiab tau tshaj tawm txhua yam uas koj xav tau los ua koj tus kheej ntawm no! Nta * txhua qhov qhib thiab kho vajtse, * tus nqi <£ 100 tsis suav nrog lub projector thiab khoos phis tawj, * pom tau lub taub hau siab thiab nrug deb ntawm lub vijtsam, * cov qauv pleev xim yog tias koj txav qeeb dhau! Yog tias koj tau txais nws ua haujlwm ntawm lwm lub tshuab, thov tshaj tawm koj cov lus qhia! Cov txuj ci koj yuav xav tau * ntoo ua haujlwm los ua cov ntoo tom qab lub vijtsam, * hluav taws xob hluav taws xob thiab cov phiaj xwm Atmel AVR micro tswj (lossis arduino), * tuaj yeem teeb tsa qee qhov cov tsev qiv ntawv hauv koj lub khoos phis tawj tso cai ua haujlwm los tham nrog wiimote.

Kauj Ruam 1: Nws Ua Haujlwm Li Cas

Nws Ua Haujlwm Li Cas
Nws Ua Haujlwm Li Cas

* Cov tshuaj tsuag tuaj yeem muaj infra liab LED uas ci los ntawm lub projector screen thiab pom los ntawm wiimote lub koob yees duab. * Tus wiimote xa X thiab Y kev sib koom ua ke ntawm lub peev xwm mus rau lub khoos phis tawj ntawm lub xov tooj cua bluetooth txuas. * Lub khoos phis tawj tab tom siv qhov kev pleev xim yooj yim uas siv lub projector los "pleev xim" cov kab thaum koj kos nrog lub raj mis. Nws kuj tseem saib xyuas kev teeb tsa lub koob yees duab wiimote mus rau lub vijtsam siv 4 qhov ntsuas ntsuas qhov system. * Cov tshuaj tsuag tuaj yeem txheeb xyuas nws qhov deb ntawm lub vijtsam thiab lub taub hau siab: ntxiv rau koj nyob deb dua qhov kos kos, qhov nyuaj koj nias lub taub hau, qhov ntau dua qhov xim tsis pom.

Kauj Ruam 2: Cov Cheeb Tsam

Cov Cheeb Tsam
Cov Cheeb Tsam

Nov yog txhua qhov khoom koj xav tau ua ke:

* khoos phis tawj - xav tau kwv yees li 1.4Ghz, bluetooth thiab usb chaw nres nkoj, * ua haujlwm ib puag ncig, * virtualGraffiti software, rub tawm los ntawm "khoos phis tawj teeb tsa" kauj ruam, * nintendo wiimote - yuav ob txhais tes los ntawm ebay, * projector - nws yuav xav tau ci ntsa iab yog tias koj tab tom npaj yuav siv thaum nruab hnub lossis sab hauv nrog lub teeb, * lub vijtsam tom qab lub ntsej muag - ua rau koj tus kheej, * tshuaj tsuag tsuag tau - ua rau koj tus kheej, * tshuaj tsuag tsuag tau tuaj yeem txais - ua rau koj tus kheej. ua hauv usb-> serial) £ 21 * xov tooj cua rx/tx khub £ 9 * cov khoom siv rau lub tsev txau tuaj yeem £ 18 ntxiv rau cov thawv ntim khoom xaiv £ 12 * xaiv lub thawv rau tus txais £ 8 * nintendo wiimote - yuav ob txhais tes los ntawm ebay £ 20

Kauj Ruam 3: Rear Projection Screen

Tsheb Projection Screen
Tsheb Projection Screen

Lub vijtsam yuav tsum yog qhov tsim nyog ntawm kev pom dhau los! Yog tias nws tsis muaj pob tshab txaus, daim duab yuav tsis pom thiab infra liab LED yuav tsis pom rau lub wiimote lub koob yees duab. Yog tias nws pob tshab heev ces lub projector yuav dig muag thiab cov duab raug ntxuav tawm. (Txawm hais tias pom nplooj ntawv kawg rau txoj hauv kev los txo qhov no).

Kuv siv lycra, uas yog ncab kom kuv tuaj yeem ncab nws kom nws pob tshab dua. Tam sim no kuv tuav nws nrog tus ntiv tes xoo, tab sis kuv kawm tiav rau velcro thaum kuv nkag mus rau lub tshuab xaws. Kuv tau ua tus ncej ntoo nrog kev pab los ntawm lub rooj cob qhia thiab tus kws ntoo (ua tsaug Lou!) Kuv xav kom nws tawg kom kuv thiaj tuaj yeem nqa nws ntawm kuv lub tsheb kauj vab. Yog tias koj tab tom ua ib qho rau qhov chaw ruaj khov ces nws yuav yooj yim dua. Tsuas yog ua nws ntawm 4: 3 nam piv, thiab tawv txaus kom nyob ncaj. Kuv tau pom tib neeg zoo li thawb ntawm cov khoom siv tshuaj ntsuam kom zoo me ntsis yog li nws yuav tsum tau khov kho me ntsis.

Kauj Ruam 4: Txau Can

Txau Tau
Txau Tau
Txau Tau
Txau Tau

Nov yog qhov nyuaj tshaj plaws ntawm txoj haujlwm thiab siv sijhawm ntev tshaj plaws kom tau txais txoj cai. Qhov xwm zoo yog tias koj tsis xav tau txhua yam khoom no los ua kom muaj kev lom zem ua haujlwm. Qhov yooj yim tshaj plaws tsuas yog kom tau txais lub Circuit Court nrog lub hloov, thiab infra liab LED thiab tus tiv thaiv. Thaum koj thawb lub teeb LED teeb thiab pom thiab taug qab los ntawm wiimote lub koob yees duab.

Cov ntawv no tau tshaj lij dua, vim tias nws tseem ntsuas qhov deb ntawm lub vijtsam thiab lub taub hau siab. Ob yam no tseem ceeb heev thaum koj tab tom tsuag xim. Kuv xav ua qhov kev qhia ua haujlwm, yog li nws yog qhov tseem ceeb los ua qhov system raws li "tiag tiag" raws li ua tau (hauv kuv tus nqi txwv). Lub voj voog yog yooj yim zoo nkauj. Ua tibzoo saib daim duab txuas hauv kab ntawv kom pom koj tus kheej. Koj xav tau cov txuj ci yooj yim soldering thiab tuaj yeem tso lub Circuit Court mus rau veroboard. Tsis tas li, koj yuav tsum zoo siab nrog lub khoos phis tawj tswj cov microcontrollers. Lub tsev tsim hluav taws xob los ntawm khawb vs siv lub rooj sib tham ntawm arduino xaiv 1: yog tias koj xav siv lub arduino board hauv cov tshuaj tsuag tau. Siv arduino raws li yog thiab ib nrab tus nqi baud ntawm xov tooj cua tx hauv cov tshuaj tsuag txau. kev xaiv 2: koj xav txuag nyiaj tab sis koj tsis muaj fuse programmer. Tsim lub rooj tsavxwm thiab siv 16MHz siv lead ua sab nraud. Txo tus nqi baud raws li hauv kev xaiv 1. xaiv 3: koj xav kom txuag nyiaj ntau dua thiab koj muaj fuse programmer. Tsim lub rooj tsavxwm, tab sis tsis suav cov siv lead ua sab nraud. Siv fuse programmer los teeb tsa atmel siv nws lub moos sab hauv. Kuv ntseeg tias tus DIY programmer ua haujlwm no yuav tso cai rau koj rau program fuses. Kuv siv olimex programmer. Kev tshuaj xyuas ntawm lub Circuit Tus microcontroller ntsuas qhov tso tawm los ntawm qhov ntse 2d120x nrug deb sensor (cov ntaub ntawv zoo ntawm lub ntsuas cua ntawm no) thiab cov potentiometer tawm. Nws kuj ntsuas qhov ua haujlwm ntawm LED PWM potentiometer. Qhov no yog siv los kho cov teeb pom kev ntawm LED. IR LED Kuv tab tom siv yog 100mA thiab qhov siab tshaj plaws yoj yog 950nm (zoo rau wiimote). Lub microcontroller siv PWM los nyem LED kom nrawm heev. Peb siv IRF720 lub zog mosfet kom lub micro tsis hlawv nws cov zis. Tsis tas li kuv xav ntxiv lub peev xwm rau lub teeb ci LED yav tom ntej. Muaj ib qho xwm txheej LED uas ua rau pom txhua lub sijhawm cov ntaub ntawv tau tshaj tawm hauv xov tooj cua. Yog tias txhua yam ua haujlwm tau zoo, lub teeb no yuav tsum ci ntawm ib puag ncig 15Hz. Thaum kawg, lub xov tooj cua xa xov hluav taws xob txuas nrog tus pin 3 (tus lej digital 1 rau arduino) ntawm lub microcontroller kom peb tuaj yeem xa cov ntaub ntawv peb tab tom ntsuas mus rau lub khoos phis tawj. Koj kuj tseem xav tau lub dav hlau txuas rau lub rooj txais khoom. Kuv siv 12cm ntev peice ntawm xaim. Qhov no yog ib nrab qhov uas tau pom zoo ntawm nplooj ntawv xov xwm zoo no. Kev teeb tsa lub microcontroller Tom qab koj tau tsim lub Circuit Court, koj yuav tsum tau xa cov program (txuas nrog). Kuv siv arduino programming ib puag ncig/libaries. Koj tuaj yeem suav qhov no nrog arduino IDE, thiab tom qab ntawd ua haujlwm nws txawm li cas los xij koj ib txwm ua. Kuv lub voj voog tau ua kom yooj yim dua los ntawm kev siv sab hauv 8MHz moos ntawm micro. Yog tias koj siv qhov no koj yuav tsum teeb tsa fuse teeb tsa los siv sab hauv 8MHz calibrated RC: 1111 0010 = 0xf2 Qhov no txhais tau tias koj yuav tsum muaj tus programmer uas tuaj yeem sau fuses../avrdude -C./avrdude.conf -V -p ATmega168 -P/dev/ttyACM0 -c stk500v2 -U lfuse: w: 0xf2: m Yog tias koj tsis muaj cov programmer zoo li no (hais tias koj tsuas muaj cov arduino board), tsuas yog siv 16MHz siv lead ua nruab nrab ntawm tus pin 9 thiab 10 thiab nws yuav tsum ua haujlwm tag nrho (tsis tau sim - koj yuav xav tau lub tshuab hluav taws xob). Koj kuj tseem yuav tsum hloov kho txoj cai program kom lub transmitter baud raug txiav ib nrab. Kev Xeem Tom qab koj tau txais nws tag nrho ua ke thiab qhov program rub tawm, koj yuav tsum kho IR LED ci ci. Kuv tsuas yog xav kom ua kom pom lub teeb pom kev ntau dua yam tsis tau ci LED yog li kuv tau tawg ob peb thiab xaus nrog kwv yees li 120ma kos nruab nrab. Yog tias koj muaj lub multimeter koj tuaj yeem kho qhov no yooj yim heev, txwv tsis pub tsuas yog kho lub hwj chim ntsuas kom siab heev tab sis tsis yog txhua txoj kev! Koj kuj tseem tuaj yeem tshawb xyuas cov lus sib piv ntawm tus pin 26, 27 thiab 28 ntawm PWM kho lub zog potentiometer, qhov ntsuas qhov nrug thiab lub taub hau potentiometer. Yog tias koj muaj qhov txwv koj tuaj yeem tshawb xyuas lub tsheb nqaj hlau tawm los ntawm tus pin 3 rau hauv xov tooj cua TX module. Txheeb cov pwm tawm ntawm LED ntawm tus pin 11. Koj tuaj yeem siv lub xov tooj ntawm tes lub koob yees duab (lossis feem ntau lub koob yees duab CCD) kom pom IR LED qhib thaum koj nias lub pob nozzle.

Kauj Ruam 5: Txau Tau Txais

Txau Tau Txais
Txau Tau Txais
Txau Tau Txais
Txau Tau Txais

Yog tias koj tab tom mus tshuaj tsuag yooj yim tuaj yeem ua rau tom qab ntawd koj tsis xav tau qhov me ntsis.

Txwv tsis pub, kuv tsuas yog siv lub rooj tsav xwm arduino, nrog lub xov tooj cua txais xov tooj txuas rau tus pin 2. Qhov no ua rau nws yooj yim kom tau txais cov ntaub ntawv rau hauv lub khoos phis tawj ntawm USB -> ntu ntu ntawm lub rooj tsav xwm arduino. Yog tias kuv tab tom yuav ua ib qho kev cai lij choj kuv yuav zaum siv FTDI USB -> serial UART kev tshuaj xyuas pawg thawj coj. Koj kuj tseem xav tau lub dav hlau txuas rau lub rooj txais khoom. Kuv siv 12cm ntev peice ntawm xaim. Nov yog ib nrab qhov uas tau pom zoo ntawm nplooj ntawv xov xwm zoo no. Thauj cov duab kos graffitiCanReader2.pde rau hauv arduino. Nrog lub peev xwm tuaj yeem siv tau, koj yuav tsum pom cov xwm txheej LEDs ntawm lub peev xwm thiab lub rooj txais khoom tau txais lub teeb nyem sai. Txhua lub sijhawm LED tuaj yeem ntsais, xa cov ntaub ntawv xa mus. Txhua lub sijhawm tau txais lub rooj tsav xwm LED teeb, cov ntaub ntawv siv tau tau txais. Yog tias koj tsis pom qhov no ces muaj qee yam txuas nrog xov tooj cua txuas. Ib yam yuav tau sim yog txuas TX ntawm lub peev xwm rau RX ntawm tus txais nrog ib daim hlau. Yog tias qhov no tsis ua haujlwm ces koj yuav muaj qhov tsis sib xws hauv tus lej baud ntawm virtualwire (saib cov cai). Piv txwv tias koj tau txais ntau qhov ua rau pom ntawm lub rooj txais khoom, koj yuav tsum muaj peev xwm saib xyuas qhov no ntawm koj lub chaw nres nkoj usb. Yog tias koj saib xyuas qhov chaw nres nkoj (feem ntau /dev /ttyUSB0) ntawm 57600 koj yuav tsum pom cov ntaub ntawv tawm mus zoo li Tau Txais: FF 02 Tau Txais: FF 03… Thawj tus lej yog qhov siab, thiab tus thib ob yog nrug deb. Tam sim no koj tuaj yeem ua tiav thiab siv cov ntaub ntawv no los ua cov duab zoo nkauj! Thauj cov duab kos ua txuas (canRadioReader.pde). Pib qhov program thiab tshawb xyuas qhov ua haujlwm ntawm qhov program. Koj yuav tsum tau txais qhov zaus (uas qhia koj pes tsawg qhov hloov tshiab ib pliag tus txais tau txais - koj hais meej xav kom qhov no tsawg kawg 10Hz). Tsis tas li koj yuav tau txais kev ntsuas nrug thiab ntsuas lub taub hau. Kuaj lub peev xwm los ntawm kev txav lub taub hau lub zog thiab los ntawm kev txav ib daim npav ntawm daim npav ua ntej ntawm qhov ntsuas qhov nrug. Yog tias txhua yam ua haujlwm, tom qab ntawd txav mus rau qib tom ntej - ua kom lub khoos phis tawj npaj los tham nrog wiimote!

Kauj Ruam 6: Khoos Phis Tawj: Ua thiab Wiimote

Teeb Khoos Phis Tawj: Ua thiab Wiimote
Teeb Khoos Phis Tawj: Ua thiab Wiimote

Peb lub ntsiab ntawm no yog ua tiav kev tham nrog wiimote. Cov lus qhia no yog Linux tshwj xeeb, tab sis nws yuav tsum ua haujlwm txhua lub mac thiab windows nrog qee qhov kev tshawb fawb yuav ua li cas thiaj li tau txais wiimote cov ntaub ntawv los ua. Tom qab txhim kho kev ua tiav, Kuv pom qee cov lus qhia ntawm lub rooj sab laj, tab sis kuv tseem muaj qee qhov teeb meem. Nov yog qhov kuv tau ua:

  1. nruab ua
  2. nruab bluez cov tsev qiv ntawv: sudo apt-tau nruab bluez-utils libbluetooth-dev
  3. tsim./processing/libraries/Loc thiab./processing/libraries/wrj4P5
  4. download bluecove-2.1.0.jar thiab bluecove-gpl-2.1.0.jar thiab muab tso rau hauv./processing/libraries/wrj4P5/library/
  5. rub tawm wiiremoteJ v1.6, thiab tso.jar rau hauv./processing/libraries/wrj4P5/library/
  6. download wrj4P5.jar (Kuv siv alpha-11) thiab muab tso rau hauv./processing/libraries/wrj4P5/library/
  7. rub wrj4P5.zip thiab unzip rau hauv./processing/libraries/wrj4P5/lll/
  8. download Loc.jar (Kuv siv beta-5) thiab muab tso rau hauv./processing/libraries/Loc/library/
  9. download Loc.zip thiab unzip rau hauv./processing/libraries/Loc/lll/

Tom qab ntawd kuv tau siv txoj cai tshoov siab los ntawm Classiclll kom tau txais cov nyees khawm thiab lub cim sensor ua haujlwm. Cov kab ntawv txuas/kos duab tsuas yog kos lub voj voog uas qhov chaw thib 1 infra liab pom los ntawm wiimote.

Txhawm rau txheeb xyuas koj lub bluetooth, nyem khawm ib thiab ob ntawm wiimote, tom qab ntawd sim $ hcitool scan ntawm lub davhlau ya nyob twg. Koj yuav tsum pom lub nintendo wiimote kuaj pom. Yog tias koj tsis yog koj yuav tsum tau saib koj lub teeb tsa bluetooth ntxiv. Yog tias txhua yam zoo, ntsaws wiimote_sensor.pde (txuas nrog) program thiab pib nws. Hauv qhov xwm txheej qis dua ntawm lub vijtsam koj yuav tsum pom: BlueCove version 2.1.0 ntawm bluez sim nrhiav lub wii Nyem khawm 1 thiab 2 ntawm wiimote. Tom qab nws pom, yoj koj qhov chaw infra liab (cov tshuaj tsuag tau) nyob ib puag ncig ntawm nws xub ntiag. Koj yuav tsum pom lub voj voog liab tom qab koj txav mus! Xyuas kom qhov no ua haujlwm ua ntej txav mus. Yog tias koj tsis tuaj yeem ua haujlwm, tshawb xyuas lub rooj sib tham ua haujlwm.

Kauj Ruam 7: Teeb Nws Txhua Yam

Teem Nws Txhua Qhov
Teem Nws Txhua Qhov

Rub tawm virtualGraffiti software hauv qab no. Luam nws rau hauv koj phau ntawv teev npe sketchbook thiab tom qab ntawv ua raws cov theem no!

* Lub zog tuaj yeem txau tau, txheeb xyuas qhov xwm txheej LED lub teeb yog flashing. * qhib lub khoos phis tawj, ntsaws tshuaj tsuag tuaj yeem txais tau, * teeb tsa lub vijtsam thiab lub projector, * txheeb xyuas qhov tshuaj tsuag tuaj yeem txais cov xwm txheej LED tau ntsais muag, * pib ua thiab thauj cov program virtualGraffiti, * xyuas tias koj tau txais ob qho RX thiab TX cov lej cim qhia LEDs tau teeb ntawm lub rooj tsav xwm arduino, * nias ob lub nyees khawm ntawm wiimote, * ua 4 lub ntsiab lus ntsuas thaum ntsuas (tso tshuaj tsuag tuaj yeem hla txhua lub hom phiaj tig, tom qab ntawd nyem lub taub hau kom txog thaum sau ntawv liab). * muaj kev lom zem!

Kauj Ruam 8: Cov peev txheej, Txuas, Ua tsaug, Lub Tswv Yim

Cov Txuas Ntawm No yog cov txuas uas tsis muaj txiaj ntsig hauv kev ua txoj haujlwm no: RF cov ntaub ntawv: https://narobo.com/articles/rfmodules.html Arduino: www.arduino.cc Ua: www.processing.org Siv wii nrog ua: https://processing.org/discourse/yabb2/YaBB.pl? num = 1186928645/15 Linux: www.ubuntu.org Wiimote: https://www.wiili.org/index.php/Wiimote, https:// wiki.wiimoteproject.com/IR_Sensor#Wavelengths 4 point calibration: https://www.zaunert.de/jochenz/wii/Thanks! Tsis muaj coob leej neeg tshaj tawm lawv txoj haujlwm, txoj haujlwm no yuav nyuaj dua thiab kim dua. Ua tsaug ntau rau txhua tus neeg qhib qhov chaw, cov neeg uas tau nyiag lub wiimote, Classiclll rau ua wiimote yooj yim siv nrog kev ua, Jochen Zaunert rau cov cai los ntsuas ntsuas, ua cov neeg ua haujlwm, pab pawg arduino, Lou rau kev pab ntoo, thiab txhua tus uas tshawb nrhiav, ua thiab tom qab ntawd tshaj tawm lawv qhov kev tshawb pom online! Lwm tus neeg lub kaw lus * Kuv tsuas yog pom https://friispray.co.uk/, nrog qhib qhov software thiab yuav ua li cas * cov kab ke no tso cai siv stencils: txias! https://www.wiispray.com/, tsis muaj tus lej lossis yuav ua li cas * yrwall's virtual graffiti system, tsis muaj tus lej lossis Howto. Ideas rau kev tshawb fawb * siv 2 wiimotes ua 3D ntim taug qab thiab ua nrog deb nrug nyob hauv lub peev xwm: https://www.cl.cam.ac.uk/~sjeh3/wii/. Qhov no yuav yog qhov zoo vim tias qhov ntsuas qhov deb tam sim no yog qhov tsis muaj zog tshaj plaws ntawm qhov system. Nws kuj tseem yuav txhais tau tias peb tuaj yeem siv lub vijtsam tom hauv ntej kom raug rau cov duab tiag tiag. * siv lub wiimote hauv lub raj mis txhawm rau txheeb xyuas lub kaum ntawm cov tshuaj tsuag. Qhov no yuav ntxiv qhov tseeb rau cov qauv xim tsuag.

Pom zoo: