Cov txheej txheem:

First_Encounter_: 10 Kauj Ruam
First_Encounter_: 10 Kauj Ruam

Video: First_Encounter_: 10 Kauj Ruam

Video: First_Encounter_: 10 Kauj Ruam
Video: Vim kuv siab qeeb - Dav Dub (Official MV) | nkauj tawm tshiab 2021 - 2022 2024, Kaum ib hlis
Anonim
Image
Image
Thawj_Encounter_
Thawj_Encounter_
Thawj_Encounter_
Thawj_Encounter_

First_Encounter_ yog Arduino raws kev sib tham sib txhim kho, tsim rau chav Kawm Kev Sib Cev Sib Cais Tsim thiab Kev Ua Haujlwm ntawm KTH hauv Stockholm. First_Encounter_ yog kev kos duab dai uas suav nrog, hauv peb qhov xwm txheej, 20 daim duab peb sab. Txij li cov cai siv yog hloov pauv ib yam nkaus, nws yog nyob ntawm koj thiab kev suav lub peev xwm ntawm Arduino los txiav txim siab pes tsawg daim duab peb sab uas koj xav tau rau koj daim ntawv.

Ua haujlwm hnyav ntawm koj txoj haujlwm tom ntej yuav tsum muaj nkauj, qhov no yog First_Encounter_ playlist:

  • Koj Tseem Tsis Tau Pom Dab Tsi Li - Bachman -Turner Overdrive
  • Khoom Kub - Donna Lub Caij Ntuj Sov
  • Koj Oughta Paub - Alanis Morissette
  • Txiv qaub ntoo - Fools Garden
  • Qhov muag tsis pom los ntawm Lub Teeb - Manfred Mann's Earth Band
  • Ntau Tshaj Li Qhov Xav Tau - Boston
  • Los Ua Ke - The Beatles
  • Pumped Up Kicks - Txhawb Cov Tib Neeg
  • Hlau rau Hlau - Razorlight
  • Cov lus - Bee Gees
  • Zaum Kawg - Suav Teb

Kauj Ruam 1: Khoom Kub

Cov khoom siv uas koj xav tau. Tus nqi pes tsawg koj xav tau yuav nyob ntawm tus naj npawb ntawm daim duab peb sab koj xav ua:

  • Ntoo rau laser txiav, 4mm tuab
  • Milky dawb acrylic rau laser txiav (2mm)
  • Woodglue
  • Ntawv xeb
  • NeoPixels LED-strip, 30 LED ib lub 'meter', 6 meter (180 LED's)
  • Aluminium ntawv ci
  • Cov xov hluav taws xob - ± 70 meters ntau xim
  • Daim Kab Xev Hluav Taws Xob
  • Servos - 10x
  • Screw Terminals - 170 siv
  • Cov Ntsia Hlau me ± 8 hli ntev - 80 siv
  • Arduino UAS
  • MPR121 Capsense breakout board - 2x
  • PCA9685 Servo breakout board
  • Ntaub dub
  • Kub nplaum
  • 5V 12A Lub hwj chim

Kauj ruam 2: Koj Oughta Paub

Koj Oughta Know
Koj Oughta Know
Koj Oughta Know
Koj Oughta Know

Qhov tuab ntawm ob lub acrylic thiab ntoo nrog rau qhov loj ntawm daim duab peb sab yog qhov tseem ceeb heev.

Txawm hais tias muaj 5mm tuab Neopixel LED-strips, peb xav tias lawv tsis ci txaus rau lub hom phiaj. Peb siv 10mm dav LED-strips thiab 2mm tuab acrylic, ntxiv txog 12mm hauv tag nrho. Yog li cov tuab ntawm phab ntsa yuav tsum yog 12 hli ib yam nkaus, rau qhov tsim los ua haujlwm, hauv peb cov ntaub ntawv ua rau 3 txheej ntawm 4mm ntoo.

Qhov loj ntawm daim duab peb sab kuj tseem nyob ntawm LED-strip koj muaj lossis tus nqi uas koj txaus siab ua kom haum. Peb xav tau 9 LED ib daim duab peb sab, thiab mus nrog Neopixel kab txaij ntawm 30 LED ib lub 'meter' kom haum rau daim duab peb sab loj dua thiab txo tus nqi ntawm cov laug. Nrog qhov teeb tsa 3 LED yuav haum haum hauv daim duab peb sab yam tsis xav tau kev siv tshuaj ntxiv. Nrog tus qauv 60 LED's rau ib lub 'meter' yob, koj yuav tsum ua cov voos me me lossis siv ntau LED ib sab lossis cov xov hlau txuas ntawm ib qho LED.

Kauj Ruam 3: Txiv qaub ntoo

Txiv qaub ntoo
Txiv qaub ntoo
Txiv qaub ntoo
Txiv qaub ntoo
Txiv qaub ntoo
Txiv qaub ntoo

Cov ntaub ntawv ntawm First_Encounter_ suav nrog tag nrho 5 daim, uas peb txiav nrog lub tshuab txiav laser. Cov phaj pem hauv ntej dawb yog ib daim ntawm cov kua mis dawb acrylic, cov phab ntsa ntawm rooj plaub tau tsim los ntawm 3 tus neeg daim duab peb sab thiab thaum kawg muaj cov ntoo thav duab. Nrog rau cov theem no muaj cov ntawv Illustrator uas tuaj yeem siv rau laser txiav cov duab.

Rau txhua daim duab peb sab uas koj xav tau, koj xav tau cov kua nplaum ua daim duab peb sab ua ke. Daim duab peb sab loj tshaj plaws mus rau hauv qab thiab qhov tsawg tshaj plaws nyob rau sab saum toj los ua tus ntaiv zoo ib yam. Ua kom ntseeg tau tias sab hauv ntawm phab ntsa zoo li tiaj tau yog tias tsis yog LED-sawb yuav tsis haum.

Tom qab cov kua nplaum tau qhuav lawm, xuab zeb sab nrauv ntawm phab ntsa thiab ob sab ntawm lub phaj rov qab ntawm lub kaum sab xis ib puag ncig 30 degrees. Qhov no yuav tso cai rau kev txav chaw peb xav kom muaj. Sim ua kom nws sib npaug thiab zoo ib yam li ua tau kom ntseeg tau tias muaj kev txav mus los. Yog tias koj xav tau koj tuaj yeem (tshuaj tsuag) pleev xim ntoo tam sim no kom ua tiav zoo dua thaum kawg.

Kauj Ruam 4: Qhov muag tsis pom kev

Qhov muag tsis pom lub teeb
Qhov muag tsis pom lub teeb
Qhov muag tsis pom kev
Qhov muag tsis pom kev
Qhov muag tsis pom lub teeb
Qhov muag tsis pom lub teeb
Qhov muag tsis pom lub teeb
Qhov muag tsis pom lub teeb

Peb Neopixels tuaj nyob rau hauv cov dej uas tsis muaj dej, uas yuav tsum tau muab tshem tawm kom cov hlua kom haum rau hauv daim duab peb sab. Txiav cov LED-kab hauv qhov ntev uas koj xav tau rau koj daim duab peb sab, hauv peb li 9 LED ntev. Ntawm cov lus nkag sab, raws li qhia los ntawm cov xub, cov xaim hluav taws xob txuas rau tag nrho peb qhov kev sib cuag (dub = hauv av, daj = cov ntaub ntawv hauv, liab = cov ntaub ntawv tawm hauv daim duab). Ntawm qhov tod tes, qhov tso tawm sab, tsuas yog xaim hlau rau 'cov ntaub ntawv tawm' hu rau taw tes (ntsuab = cov ntaub ntawv tawm hauv daim duab). Nco ntsoov tias cov xov hlau khiav ib sab ntawm LED-sawb (saib daim duab), txwv tsis pub lawv yuav tsis haum! Cov xov hlau yuav tsum yog ntev li 12cm.

Rhais qhov kawg nrog cov kab xev hluav taws xob txhawm rau tiv thaiv kev luv luv, vim tias lawv yuav raug nias ua ke.

Thaum kawg, tom qab txhua pab pawg ntawm 3 LED khoov kab txaij ntawm cov lus txiav tawm los ua ib daim duab peb sab.

Kauj Ruam 5: Ntau Tshaj Li Qhov Xav Tau

Ntau Tshaj Li Kev Xav
Ntau Tshaj Li Kev Xav
Ntau Tshaj Li Kev Xav
Ntau Tshaj Li Kev Xav
Ntau Tshaj Li Kev Xav
Ntau Tshaj Li Kev Xav

Txoj hauv kev uas First_Encounter hnov qab yog los ntawm kev nkag siab lub peev xwm lossis lub ntsej muag. Txhawm rau txhawm rau ua haujlwm kom raug raws li qhov xav tau peb xav tau cov hlau loj, zoo dua tooj liab. Txawm li cas los xij lub tshuab luam ntawv pheej yig dua, peb thiaj li siv cov ntawv ci txhuas.

Cov ntawv txhuas yuav tsum tau muab tais rau hauv daim duab peb sab, tshwj xeeb tshaj yog me ntsis loj dua qhov chaw hauv phab ntsa. Peb tau mus nrog 24 txheej rau peb cov version. Txoj hauv kev yooj yim tshaj plaws yog siv daim duab peb sab khib nyiab los ntawm phab ntsa, cov no yog qhov loj me ntawm sab hauv ntawm phab ntsa, yog li yog koj quav nws kom raug, daim duab peb sab yuav loj tuaj me ntsis.

Muab lawv tso rau hauv S-puab raws li qhia hauv daim duab, qhov no ua rau nws yog ib txoj hauv kev yooj yim rau quav daim duab peb sab. Qhov kawg ntawm S-duab koj yuav tsum tau nthuav ob ntawm ob sab ntawm daim duab peb sab, qhov no yuav ua rau nws quav tom qab. Tom ntej no kos cov ntawv txhuas uas koj yuav tsum tau txiav thiab tom qab ntawd siv txiab los txiav nws. Qhov no ua rau qhov txiav kom huv dua thaum siv rab riam.

Thaum koj pib folding, koj tuaj yeem siv ib qho ntawm daim duab peb sab pov tseg kom tau txais qhov kwv yees loj ntawm thawj (ob peb) quav txoj cai. Thaum quav, khaws sab sab ntawm cov ntawv ci sab hauv thiab sab hauv sab nraud, LED-lub teeb tau txais kev pom zoo dua sab nraud li no.

Tom ntej no ua lub qhov (koj tuaj yeem siv daim ntawv yooj yim qhov puncher yog tias tsim nyog) hauv daim duab peb sab quav, kwv yees nyob rau qhov chaw ib yam li lub qhov nyob hauv qab phaj. Khawb rov qab ob ntawm cov txheej txheem thiab txuas ib lub xaim nrog qhov loj stripped part. Rov qab daim duab peb sab thiab xyuas kom cov hlau tawm ntawm lub qhov tom qab. Ib feem ntawm txoj hlua yuav tsum tsis pub ntev tshaj 10cm. Thaum kawg ntxiv qee daim kab xev (hluav taws xob) rau ntawm ntug ntawm lub qhov, qhov no tiv thaiv lawv los ntawm ripping thaum cov xov hlau raug thawb hla6

Kauj Ruam 6: Tuaj Ua Ke

Tuaj Ua Ke
Tuaj Ua Ke
Tuaj Ua Ke
Tuaj Ua Ke
Tuaj Ua Ke
Tuaj Ua Ke
Tuaj Ua Ke
Tuaj Ua Ke

Ua ntej txuas ntxiv nws yuav yog qhov muaj txiaj ntsig zoo los ntsuas yog tias LED-strips raug muag kom raug.

Txoj hauv kev yooj yim tshaj plaws ntawm kev sib dhos yog muab cov phab ntsa zeb peb tog nyob rau ntawm lub rooj, nrog rau sab dav tshaj plaws. Muab daim duab peb sab acrylic tso rau hauv phab ntsa thiab xyuas kom nws txav mus rau ntawm lub rooj. Tom ntej no muab tso rau hauv LED-sawb thiab lo nws tag nrho ua ke los ntawm sab hauv nrog rab yaj phom kub.

Tom ntej no, muab daim kab xev hluav taws xob hla cov ntug, txhawm rau tiv thaiv kev sib tsoo ntawm txhuas thiab LED-strip. Rub cov xov hlau los ntawm LED-sawb hla lub qhov nyob hauv txhuas thiab kab xev txhuas rau daim duab peb sab.

Tam sim no coj daim ntaub thiab teeb tsa lub ntsej muag uas koj xav ua nrog cov ntawv thav duab ntawm daim duab peb sab. Tawm me me ntawm qhov chaw nruab nrab ntawm daim duab peb sab kom nce kev txav mus los. Tom qab ntawd muab cov kua nplaum tso rau sab nraub qaum rau ntawm qhov chaw ntawd thiab txiav daim ntaub me ntsis ntawm qhov chaw ntawm lub phaj rov qab.

Thaum kawg rub cov xov hlau hla thiab ntswj cov voos plaub hauv qhov chaw.

Kauj Ruam 7: Pumped Up Kicks

Pumped Up Kicks
Pumped Up Kicks
Pumped Up Kicks
Pumped Up Kicks
Pumped Up Kicks
Pumped Up Kicks

Tam sim no tias txhua yam tau sib sau ua ke, peb yuav ntxiv kev txav mus rau tus qauv. Kev txav mus los yuav raug tswj los ntawm tag nrho 10 servos. Peb kuj ntxiv cov ntsia hlau txuas rau sab nraum qab ntawm txhua daim duab peb sab, txoj hauv kev no tuaj yeem ua tau ntau dua lossis tsawg dua thiab kho tau yooj yim. Daim ntawv ceeb toom tseem ceeb ntawm no, yog kom ntseeg tau tias cov xov hlau tawm ntawm cov ntsia hlau txuas mus rau sab saum toj thaum dai, txhawm rau kom tsis txhob cuam tshuam nrog kev txav mus los.

Vim yog qhov kev txhawj xeeb hnyav peb txiav txim siab kaw kab xev rau ib qho me me ntawm cov ntoo thiab ntsia hlau daim ntawd mus rau daim duab peb sab. Peb kuj muab 5V kev sib txuas thiab kev sib txuas hauv av ntawm ob qho tib si servo thiab LED-sawb ntawm txhua daim duab peb sab hauv tib lub dav hlau ntsia hlau, txoj hauv kev no tsuas yog ib qho 5V xaim thiab ib lub xov hlau hauv av hla mus los ntawm txhua daim duab peb sab.

Kauj Ruam 8: Hlau rau Hlau

Hlau rau Hlau
Hlau rau Hlau
Hlau rau Hlau
Hlau rau Hlau
Hlau rau Hlau
Hlau rau Hlau
Hlau rau Hlau
Hlau rau Hlau

Cov txheej txheem thaiv zoo li nyuaj heev, tab sis qhov tseeb nws yog qhov ua tau zoo heev. Lub zog tau muab faib ua 5 pawg, 1 pab pawg rau Arduino thiab pawg laug cam thiab 4 pawg rau kev teeb tsa tag nrho. Cov naj npawb ntawm cov duab peb sab pib ntawm daim duab peb sab laug sab saud, yog saib los ntawm sab xub ntiag. Qhov no yog vim li cas tus lej hauv cov phiaj xwm zoo li rov qab.

Hauv qhov tseem ceeb los ntawm txhua lub vaj huam sib luag, 4 xov hlau nce mus rau saum:

  • 2 xov hlau rau lub zog (5V thiab hauv av) ntawm ob qho tib si LEDs thiab qee zaus siv.
  • 1 xaim rau lub capsense cov ntaub ntawv tso tawm
  • 1 xaim rau servo cov ntaub ntawv nkag

Nws yog ib qho tseem ceeb heev uas thawj daim duab peb sab capsense xaim, txuas nrog rau thawj lub capsense board thiab thawj lub ntsiab lus nkag. Lawv yuav tsum ua kom raug, txwv tsis pub lub teeb pom kev ntawm LED yuav tsis ua haujlwm zoo. Cov LED tau txuas nrog hauv kab (ntsuab xaim hla hla lub voos peb sab), yog li lub capsense thiab vaj huam sib luag tus lej yuav tsum sib haum, tib yam kuj tseem muaj tseeb rau servo motors.

Peb tau teeb tsa lub zog siv hluav taws xob thiab ntau lub tshuab ntsia hlau rau ntawm tus ncej ntoo, txoj hauv kev no qhov cuam tshuam ntawm kev txav mus los ntawm kev sib txuas yuav raug txo qis.

Thaum txoj hlua txuas tiav koj tuaj yeem tso rau ntawm lub taub hau servo thiab txuas lawv mus rau lub voos xwmfab txuas nrog.

Kauj Ruam 9: Cov lus

Cov lus
Cov lus

Nov yog Arduino Code

Muab tus naj npawb ntawm daim duab peb sab uas koj tsim ntawm no:

#define N_TRIANGLES 20

Muab tus naj npawb ntawm servos koj siv ntawm no:

#define N_SERVOS 10

Muab tus naj npawb ntawm LED koj siv ntawm no:

#txhais N_LEDs 180

Cov duab nrawm koj xav tau (Daim duab peb sab tig dawb):

#define hueSpeed 2

Kauj Ruam 10: Zaum Kawg

Zaum Kawg
Zaum Kawg
Zaum Kawg
Zaum Kawg
Zaum Kawg
Zaum Kawg
Zaum Kawg
Zaum Kawg

Ua tsaug thiab muaj kev lom zem

Pom zoo: