Cov txheej txheem:

Levitating LED Teeb: 6 Cov Kauj Ruam (nrog Duab)
Levitating LED Teeb: 6 Cov Kauj Ruam (nrog Duab)

Video: Levitating LED Teeb: 6 Cov Kauj Ruam (nrog Duab)

Video: Levitating LED Teeb: 6 Cov Kauj Ruam (nrog Duab)
Video: 😳 The rope is invisible 2024, Kaum ib hlis
Anonim
Levitating LED Teeb
Levitating LED Teeb

Koj puas tau ua si ib puag ncig nrog cov hlau nplaum thiab sim ua kom lawv levitate? Kuv paub tseeb tias peb coob leej muaj, thiab txawm hais tias nws yuav zoo li ua tau, yog tias ua tib zoo ua, tom qab ib ntus koj yuav paub tias nws yeej ua tsis tau. Qhov no yog vim Earnshaw's Theorem, uas ua pov thawj tias nws tsis tuaj yeem levitate ib yam khoom nrog tsuas yog cov khoom siv ferromagnetic. Txawm li cas los xij, peb muaj kev daws teeb meem. Hloov chaw ntawm kev siv cov hlau nplaum, peb yuav levitate lub teeb siv qhov tsis pom kev hu ua tensegrity, ua lub teeb uas zoo li nws tau ntab!

Kauj Ruam 1: Cov khoom siv

Khoom siv
Khoom siv
Khoom siv
Khoom siv
Khoom siv
Khoom siv

Txhawm rau ua lub teeb no, muaj ntau yam khoom siv xav tau:

Electronics:

  • Arduino Nano Board
  • Jumper xov hlau
  • 24 LED Nplhaib
  • 9V Roj Teeb
  • 9V roj teeb txuas

Cov Khoom Siv Hniav:

  • Cardboard (los yog ntoo, yog tias siv laser txiav)
  • Kab nuv ntses (ib qho yuav tsum ua haujlwm, thiab sim xaiv ib qho kom pob tshab li sai tau)

Lwm tus:

  • Roj hmab band
  • Kub kua nplaum phom
  • Kub nplaum nplaum
  • Cov cuab yeej siv cuab yeej
  • Velcro

Kauj Ruam 2: Sib sau Cov Khoom Siv Hluav Taws Xob

Sib sau Electronics
Sib sau Electronics
Sib sau Electronics
Sib sau Electronics
Sib sau Electronics
Sib sau Electronics
Sib sau Electronics
Sib sau Electronics

Ua ntej peb yuav tsum sib sau ua ke cov khoom siv hluav taws xob. Qhov no yog qhov yooj yim thiab tuaj yeem ua tiav nrog ob peb kauj ruam:

  1. Solder lub 9V roj teeb txuas rau Arduino Nano board. Qhov no tuaj yeem nyuaj me ntsis, tab sis nws yog qhov tseem ceeb rau kev ua tiav ntawm txoj haujlwm vim tias lub zog tsis txaus muab rau pawg thawj coj yuav ua rau nws ua haujlwm tsis raug. Txuas cov xaim liab rau VIN tus pin, thiab txuas cov xaim dub mus rau ib qho ntawm GND pins ntawm lub rooj tsavxwm.
  2. Muab cov pins tso rau sab nraum qab ntawm lub nplhaib LED. Ntawm cov 24 LED rings, feem ntau yog 4 qhov chaw rau cov laug, tab sis hauv txoj haujlwm no, peb tsuas yog siv 3: DI, VCC, thiab GND. Ib feem DO yuav tsis siv rau hauv txoj haujlwm no. Muab nws nrog cov xaim taw qhia rau hauv lub nplhaib, vim sab nrauv ntawm lub nplhaib yuav muab zais tom qab ib daim ntawv, tab sis yog tias cov xaim hluav taws xob xaim tau xaim hauv qhov tsis raug, nws yuav tawm los ntawm lub teeb.
  3. Txuas cov xov hlau mus rau Nano. DI yuav tsum txuas nrog D5 tus pin, VCC txuas nrog 5V, thiab GND rau GND, ntawm lub nplhaib LED thiab Arduino Nano, feem.

Thiab koj tau ua tiav nrog cov khoom siv hluav taws xob!

Kauj Ruam 3: Tensegrity Sculpture

Tensegrity Sculpture
Tensegrity Sculpture
Tensegrity Sculpture
Tensegrity Sculpture
Tensegrity Sculpture
Tensegrity Sculpture

Txog qhov haujlwm no, peb tab tom siv tensegrity, uas yog lo lus siv los piav qhia txog kev ua kom nruj siv qee yam hauv qhov chaw. Yog tias koj tsuas yog xav tsim cov duab puab, tom qab ntawd koj tuaj yeem rub tawm Adobe Illustrator cov ntaub ntawv, ua rau txiav laser, lossis saib daim duab thiab txiav tawm hauv cov duab los qhia koj tus kheej.

Yog tias koj xav nkag siab tias qhov no ua haujlwm li cas, tom qab ntawv nyeem hauv qab no!

Cov duab puab tensegrity siv kab nuv ntses los ua kom nws zoo li zoo li cov khoom nqa. Hauv daim duab piav qhia, txoj haujlwm ntawm txhua ntawm 6 kab tau hais meej, hauv cov xim sib txawv. Cov liab ntev dua yog cov uas ua rau sab saum toj tsis txhob poob. Cia peb hu cov no "cov txheej txheem kab". Tom qab ntawd peb muaj cov kab xiav, uas luv dua li cov liab, tuav rau sab saum toj. Cia peb hu cov no "kab levitation".

Hauv peb cov duab puab nruj, cov kab levitation yog cov uas tuav tus qauv. Vim hais tias sab saum toj xav txav mus los vim yog lub ntiajteb txawj nqus, txoj kab nqes yuav tsum tuav tus qauv nce. Thaum lawv txuas nrog, lawv nruj heev, tuav ib sab saum toj ntawm cov qauv. Muaj ib qho ntawm cov no ntawm ob ntawm plaub sab ntawm cov duab puab, txawm hais tias hauv kev xav, ib qho txaus los tuav cov qauv.

Txawm li cas los xij, yog tias koj sim txuas tsuas yog cov kab levitation, koj yuav pom tias nws poob yooj yim dua. Qhov no vim tias sab saum toj tau txuas los ntawm tsuas yog ob lub ntsiab lus, uas tsis txaus los muab cov qauv ruaj khov. Xav txog ib qho sawaw. Nws tau txuas los ntawm ib kab, tso cai rau nws txav mus los dawb. Hauv peb qhov xwm txheej, peb muaj cov ntu sab saum toj txuas los ntawm ob lub ntsiab lus, thiab ob lub ntsiab lus tsim kab, yog li sab saum toj ntawm peb cov duab puab nruj, nrog tsuas yog cov kab levitation, tsuas yog pom.

Nov yog qhov uas cov kab teeb tsa tuaj ua si. Cov kab no tseem nruj, thiab lawv tuav tus qauv hauv txoj haujlwm. Yog hais tias sab saum toj ntawm tus qauv leans nyob rau hauv ib qho kev taw qhia, cov qauv kab hauv lwm qhov kev taw qhia yuav tuav tus qauv nyob hauv qhov chaw, ua rau cov qauv ua kom ruaj khov.

Txawm hais tias nws zoo li khawv koob, muaj qhov laj thawj ntau tom qab tag nrho cov duab puab!

Kauj Ruam 4: Sib Sau Cov Qauv

Sib dhos Cov Qauv
Sib dhos Cov Qauv
Sib dhos Cov Qauv
Sib dhos Cov Qauv
Sib dhos Cov Qauv
Sib dhos Cov Qauv
Sib dhos Cov Qauv
Sib dhos Cov Qauv

Tam sim no nws yog lub sijhawm los teeb tsa cov qauv kom muaj lub teeb txuas rau nws. Qhov no yog qhov yooj yim:

  1. Nrhiav cov hauv paus. Lawv ib txwm yog cov xwm txheej loj tshaj plaws.
  2. Muab daim "caj npab" tso rau. Xyuas kom lawv txhua tus ntsib tib txoj kev qhia thaum saib ntawm lawv ib sab. Qhov no ua kom ntseeg tau tias cov qauv nruj yuav tuaj yeem sib sau ua ke raws li tau npaj tseg.
  3. Muab ib qho ntawm ib sab tso rau. Qhov no tso cai rau peb kom ntseeg tau tias daim caj npab tsis raug thawb deb dhau thaum peb muab nws lo rau, thiab ua kom ntseeg tau tias tag nrho cov hauv paus ntawm cov qauv tuaj yeem ua raws.
  4. Sib sau ua ke ntawm cov qauv. Cov ntawv yuav tsum poob rau qhov chaw raws nraim, thiab nrog qee qhov gluing, koj yuav xaus nrog yam uas tau hais los saum no.

Tom qab ua qhov ntawd, nws yog lub sijhawm los txuas cov kab nuv ntses rau cov qauv.

  1. Siv cov kua nplaum kub, lo plaub daim kab nuv ntses rau txhua lub ces kaum ntawm ib feem ntawm cov qauv. Xyuas kom lawv txhua tus zoo ib yam nkaus.
  2. Muab cov kab nuv ntses tso rau ntawm cov ces kaum ntawm lwm yam qauv. Kuv pom nws yooj yim rau lo yog tias tag nrho cov qauv tau tso tseg, yog li kuv tsis tas yuav tuav nws nrog kuv txhais tes.
  3. Kaw cov kab "levitation" hauv qhov chaw. Thawb sab saum toj thiab hauv qab kom deb li deb raws li koj tuaj yeem ua tau, tom qab cov kua nplaum tau txias, thiab lo ob kab nuv ntses kawg nyob nruab nrab, txuas caj npab ntawm tus qauv.

Yog tias koj tau ua qhov no deb, tom qab ntawd txoj haujlwm zoo! Koj tau ua tiav ntau txoj haujlwm lawm:)

Tam sim no peb yuav tsum teeb lub teeb. Qhov no yog ib qho yooj yim heev:

  1. Kaw lub nplhaib LED mus rau qhov ncig "lub log" nrog ob lub qhov nyob hauv nruab nrab. Ua kom ntseeg tau tias cov yas txhawb rau cov xov hlau jumper nyob sab hauv lub voj voog sab nraud.
  2. Kaw ob daim voj ua ke. Kuaj thawj daim "log" nrog lub voj voog ua tiav nrog ob qhov nyob hauv nruab nrab. Cov no ua rau sab saum toj ntawm peb lub teeb levitating.
  3. Khi lub roj teeb rau daim duab plaub kawg. Daim ntawv no muaj lub qhov ua rau lub roj teeb 9V, thiab khi nws, nrog rau Arduino Nano pawg thawj coj, nrog cov hlua roj hmab. Nco ntsoov tsis txhob siv kua nplaum ntawm no: lub roj teeb yuav tuag thaum kawg thiab koj yuav tsis muaj dab tsi siv!
  4. Nqa ib daim ntawv B5 thiab lo rau nws ib ncig ntawm lub teeb. Qhov no ua haujlwm zoo li lub teeb pom kev, thiab nws tseem yuav thaiv cov neeg saib kom pom lub rooj tsavxwm thiab lub roj teeb hauv lub teeb.
  5. Koj tuaj yeem muaj qee yam dai tawm hauv qab ntawm lub teeb. Hauv ob peb ntawm kuv cov duab, kuv tau sim siv luv, txiav cov quav quav los tsim cov chandelier, tab sis tom qab ntawd kuv tau muab nws tshem tawm vim tias nws zoo li kuv cov duab. Koj tuaj yeem muaj tswv yim nrog qhov koj tso ntawm no!
  6. Muab lo rau sab saum toj ntawm lub teeb rau lub log kawg. Nco ntsoov, ntxiv, tias txhua daim ntawm txoj kab nuv ntses yog qhov ntev tib yam.
  7. Kua nplaum velcro rau sab saum toj ntawm lub log thib ob thiab mus rau hauv qab ntawm ib sab saum toj ntawm cov qauv. Qhov no yuav tuav lub teeb nyob rau hauv qhov chaw thaum nws tau nce. Kev siv velcro tso cai rau koj coj nws mus thiab muab lub roj teeb tshiab rau thaum koj xav tau.

Kauj ruam 5: Coding

Coding!
Coding!
Coding!
Coding!

Tam sim no ntawm no yog qhov lom zem: coding dab tsi koj xav kom lub teeb zoo li! Kuv tau siv lub teeb RGB tig ntawm no, tab sis xav tias dawb los tsim txhua yam koj xav tau, thiab muaj tswv yim nrog nws!

Kuv paub kuv tau piav qhia txhua feem ntawm txoj cai ntawm nws tus kheej hauv kuv qhov kev qhia zaum kawg, tab sis lub sijhawm no, Kuv suav nrog txhua qhov kev piav qhia hauv cov lus hauv kab lus. Thaum koj tshawb xyuas cov cai, nco ntsoov qhov kuv tau tsim: lub teeb zaj sawv tig. Yog tias qhov kev piav qhia tsis zoo txaus (Kuv tsis paub yuav piav qhia nws li cas ntxiv), koj tuaj yeem rov qab saib cov vis dis aus suav nrog thaum pib. Koj tuaj yeem pom cov cai hauv qab no, lossis rub tawm los ntawm Arduino Tsim lub vev xaib txuas hauv qab no!

Arduino Tsim Txuas

(Tsis tas li, yog tias tib neeg txaus kom kuv piav qhia txoj cai kom ntxaws, tej zaum kuv yuav ua qee yam txog nws …)

Levitating_Lamp.ino

#suav nrog// suav nrog lub tsev qiv ntawv los siv lub nplhaib LED
#definePIN5 // tus pin uas lub nplhaib LED txuas nrog
#defineNumPixels24 // tus lej ntawm pixels hauv lub nplhaib. muaj cov nplhaib nrog 8 LEDs, lossis koj tuaj yeem siv cov hlua LED nrog Neopixels. Tsuas yog nco ntsoov qhia seb koj muaj pes tsawg LEDs!
Adafruit_NeoPixel pixels (NumPixels, PIN, NEO_GRB + NEO_KHZ800); // tshaj tawm lub teeb pom kev hu ua pixels. Txoj cai yuav xa mus rau lub nplhaib LED zoo li qhov no.
#defineDELAYVAL20 // qhov no txiav txim siab ntev npaum li cas lub rooj tsavxwm yuav tsum tos ua ntej lub teeb tig. Yog tias koj ua qhov no me dua, tom qab ntawd zaj sawv xim yuav tig nrawm dua.
int r [NumPixels]; // qhov no yog tus nqi liab rau txhua lub LEDs
int g [NumPixels]; // qhov no yog tus nqi ntsuab rau txhua lub LEDs
int b [NumPixels]; // qhov no yog tus nqi xiav rau txhua lub LEDs
constint qhov sib txawv = 31; // qhov no teeb tsa tus nqi ci ci. Tus lej ntau tshaj yog 31, tab sis txhua tus lej x qhov twg 0 <x <32 yuav ua haujlwm.
/////// Teem qhov pib txoj haujlwm ntawm lub teeb ////////
voidsetLights () {
int R = 8*diff, G = 0, B = 0; // thawj txoj haujlwm ntawm tag nrho cov LEDs
rau (int i = 0; i <8; i ++, R- = diff, G+= diff) {
r = R;
g = G;
b = 0;
}
rau (int i = 0; i <8; i ++, G- = diff, B+= diff) {
g [i+8] = G;
b [kuv+8] = B;
r [i+8] = 0;
}
rau (int i = 0; i <8; i ++, B- = diff, R+= diff) {
r [kuv+16] = R;
b [kuv+16] = B;
g [i+16] = 0;
}
}
/////// Ua tiav teeb tsa thawj txoj haujlwm ntawm LEDs ////////
voidsetup () {
pixels.begin (); // qhib lub pixel khoom
teebLight (); // teeb tsa thawj txoj haujlwm ntawm LEDs
}
int idx = 0; // teeb tsa thawj txoj haujlwm ntawm LED kev sib hloov
voidloop () {
/////// teeb xim ntawm txhua tus LEDs ////////
rau (int kuv = 0; kuv <numpixels; kuv ++) = "" {
pixels.setPixelColor (i, pixels. Color (r [(i+idx)%24], g [(i+idx)%24], b [(i+idx)%24]));
pixels.show ();
}
/////// ua tiav teeb cov xim ntawm LEDs ////////
ncua (DELAYVAL); // tos DELAYVAL milliseconds
idx ++; // txav qhov kev sib hloov ntawm LEDs los ntawm ib qho
idx%= 24; // mod tus nqi los ntawm 24. Qhov no txwv tus nqi ntawm idx rau ntawm 0 thiab 23, suav nrog
}

saib rawLevitating_Lamp.ino tuav nrog ❤ los ntawm GitHub

Kauj ruam 6: Ua kom tiav

Ua tiav!
Ua tiav!
Ua tiav!
Ua tiav!
Ua tiav!
Ua tiav!

Tam sim no nws yog lub sijhawm los teeb lub teeb, lo lub velcro rau tus qauv, thiab tua lub teeb: nws yog lub sijhawm ua yeeb yam. Xav tias yuav hloov pauv qhov koj xav tau, thiab qhia rau ntiaj teb tias koj tau tsim dab tsi nrog txoj haujlwm no!

Hmoov zoo thiab Khaws Tshawb Nrhiav!

Pom zoo: