Cov txheej txheem:

LED Nws Loj Hlob: 6 Kauj Ruam (nrog Duab)
LED Nws Loj Hlob: 6 Kauj Ruam (nrog Duab)

Video: LED Nws Loj Hlob: 6 Kauj Ruam (nrog Duab)

Video: LED Nws Loj Hlob: 6 Kauj Ruam (nrog Duab)
Video: Tau kev seev vim ruam tsis deev. 9/28/2017 2024, Hlis ntuj nqeg
Anonim
LED Nws Loj
LED Nws Loj

Cov lus qhia no yog ua tiav rau TUDelft chav kawm TCD los ntawm cov kws qhia ntawv Kev Tsim Kho. Lub teeb no tau tsim los txhawb kev loj hlob ntawm cov nroj tsuag thiab yog li ua rau kev ua liaj ua teb hauv nroog nkag mus tau rau pej xeem coob dua.

Kauj Ruam 1: Kauj Ruam 1. Koj Xav Tau Dab Tsi?

Khoom siv

  • Arduino uno Neopixel Jewel - 7 x WS2812 5050 RGB LED nrog cov tsav tsheb
  • 3 Cov xov hluav taws xob ntawm kwv yees li 20 cm txhua
  • Round aluminium bar rau tig - qhov siab: 50 hli, txoj kab uas hla 45 hli
  • 1 hli tuab PETG phaj- 40 x 40 mm
  • Bison tix kua nplaum
  • Kev cais kab xev

Khoom siv

  • Cov cuab yeej siv cuab yeej
  • Tig tshuab dhos
  • Laser txiav
  • Arduino program
  • Illustrator

Kauj Ruam 2: Kauj Ruam 2. Tig Lub Tsev

Kauj Ruam 2. Tig Lub Tsev
Kauj Ruam 2. Tig Lub Tsev

Txhawm rau ua vaj tsev koj xav tau qee qhov kev paub dhau los ntawm kev hloov aluminium. Qhov ntau thiab tsawg tau qhia hauv daim duab. Ua raws cov theem no:

  1. Muab cov txhuas txhuas tso rau hauv lub tshuab dhos nrog 10 mm tsau
  2. Pib nrog tig txoj kab sab nraud mus rau 40 mm meej rau qhov ntev ntawm 35 mm
  3. Laum ib lub qhov taub 14 hli, tob 35 hli
  4. Laum ib lub qhov taub 30 hli, tob 25 hli
  5. Tig sab hauv ntawm lub tsev kom tau txais phab ntsa tuab ntawm 8 hli mus rau qhov tob ntawm 27 hli
  6. Tig sab hauv ntawm lub tsev kom tau txais phab ntsa tuab ntawm 5 hli mus rau qhov tob ntawm 25 hli
  7. Tig sab hauv ntawm lub tsev kom tau txais phab ntsa tuab ntawm 3 hli rau qhov tob ntawm 1 hli
  8. Ua kom du tag nrho cov npoo thiab txhuam lub tsev tag nrho tab sis tshwj xeeb yog sab hauv kom ua rau lub teeb pom kev zoo.
  9. Cais tus thawj 30 hli ntawm vaj tse los ntawm daim ntawm txhuas uas tseem nyob rau hauv lub claw. Ua qhov no kom zoo kom tsis txhob ua vaj tsev puas.

Kauj Ruam 3: Kauj Ruam 3. Laser Txiav Diffuser

Lub diffuser yog ua los ntawm PETG phaj ntawm 1 hli tuab. Ua raws cov theem no:

  1. Pib nrog xuab zeb blasting phaj translucent ntawm ob sab. Kuv siv iav hmoov rau qhov no.
  2. Ua hauv cov duab piv txwv lub voj voog nrog txoj kab uas hla 34 hli
  3. Muab cov ntaub ntawv xa mus rau lub tshuab txiav laser thiab laser txiav cov duab ncig

Kauj Ruam 4: Kauj Ruam 4. Sib Sau Cov Khoom Siv Hluav Taws Xob

Kauj Ruam 4. Sib dhos Cov Khoom Siv Hluav Taws Xob
Kauj Ruam 4. Sib dhos Cov Khoom Siv Hluav Taws Xob
Kauj Ruam 4. Sib dhos Cov Khoom Siv Hluav Taws Xob
Kauj Ruam 4. Sib dhos Cov Khoom Siv Hluav Taws Xob

3 lub xov tooj hluav taws xob yuav tsum tau muab muag rau Neopixel LED lub nplhaib zoo li qhia hauv daim duab. Tom qab qhov no txuas cov xov hlau mus rau Arduino board thiab txuas Arduino board rau lub khoos phis tawj.

Kauj Ruam 5: Kauj Ruam 5. Tshaj Tawm Txoj Cai rau Arduino

Siv cov cai hauv qab no hauv Arduino thiab xa nws mus rau Arduino board:

#include #ifdef _AVR_ #include #endif

// Txuas rau tus pin 6 ntawm Arduino #define PIN 6

// Tus lej ntawm pixels ntawm lub nplhaib neopixel #txhais NUMPIXELS 7

Adafruit_NeoPixel pixels = Adafruit_NeoPixel (NUMPIXELS, PIN, NEO_GRB + NEO_KHZ800);

int ncua sij hawm = 500; // ncua rau ib nrab thib ob

void teeb tsa () {

pixels.begin (); // Qhov no pib ua lub tsev qiv ntawv NeoPixel. }

void voj () {

// Rau txheej txheej NeoPixels thawj NeoPixel yog 0, thib ob yog 1, txhua txoj kev mus txog rau suav cov pixels rho tawm ib qho.

rau (int i = 0; i

// pixels. Color siv RGB qhov tseem ceeb, los ntawm 0, 0, 0 txog 255, 255, 255 // Sau rau hauv tus lej RGB hauv qab no ntawm 0 txog 255 // Qhov sib xyaw ua ke zoo tshaj plaws ntawm lub teeb yog thaum tsuas yog Liab thiab Xiav LED tau qhib rau pixels.setPixelColor (i, pixels. Color (255, 0, 255)); // Lub teeb liab

pixels.show (); // Qhov no xa qhov hloov tshiab pixel xim rau kho vajtse.

ncua (ncua sij hawm); // Ncua sijhawm rau lub sijhawm (hauv milliseconds).

} }

Kauj Ruam 6: Kauj Ruam 6. Sib Sau Ua Lub Teeb

Kauj Ruam 6. Sib Sau Ua Lub Teeb
Kauj Ruam 6. Sib Sau Ua Lub Teeb
Kauj Ruam 6. Sib Sau Ua Lub Teeb
Kauj Ruam 6. Sib Sau Ua Lub Teeb
  1. Kaw lub Neopixel LED ntiv nplhaib rau hauv lub tsev nrog Bison kua nplaum thiab cia cov xov hlau tawm mus rau lub qhov hauv qab
  2. Qhwv cov xov hlau nrog daim kab xev cais yog tias tsim nyog thiab txuas cov xov hlau mus rau Arduino
  3. Kua nplaum rau ntawm lub phaj diffuser los ntawm kev siv cov kua nplaum tsawg.
  4. Txuas lub arduino mus rau lub zog siv hluav taws xob thiab tso lub teeb ze rau ntawm tsob ntoo txhawm rau txhawb nws txoj kev loj hlob

Pom zoo: