Cov txheej txheem:

Lub Teeb Censored Christmas Star: 5 Kauj Ruam
Lub Teeb Censored Christmas Star: 5 Kauj Ruam

Video: Lub Teeb Censored Christmas Star: 5 Kauj Ruam

Video: Lub Teeb Censored Christmas Star: 5 Kauj Ruam
Video: Teen Titans Go! | Opposite Gender Teen Titans! | @dckids 2024, Hlis ntuj nqeg
Anonim
Image
Image

Credit:

Qhov kev tsim hnub qub Christmas no yog los ntawm qhov txuas saum toj no, uas yog lub hnub qub Christmas loj dua siv WS2811 yam tsis muaj lwm txoj haujlwm ib sab ci. Txawm li cas los xij, feem ntau ntawm kuv tus lej tsim qauv ua raws qhov nws muab, yog li kuv tseem xav muab nws qhov txiaj ntsig rau kuv txoj haujlwm. Yog tsis muaj nws cov nyiaj pab, Kuv tsis tuaj yeem ua tiav kuv tus kheej txoj haujlwm. Cov khoom lag luam ntawm txoj haujlwm no yuav ci hauv qhov tsaus ntuj ib puag ncig thiab yuav tso tseg nws qhov kev ua kom zoo li qhov ci ci ib puag ncig nce ntxiv.

Kauj Ruam 1: Npaj Koj Cov Khoom

Khoom npe:

  1. Arduino Leonardo
  2. Arduino Breadboard
  3. 8 dhia xov hlau (txiv neej rau txiv neej)
  4. Ntoo ntoo (30cm X 30cm)
  5. Ntoo Pom
  6. Photoresistor
  7. 220-ohm resistor
  8. WS2812 sawb (1 meter)

Kauj Ruam 2: Tsim Cov Cai

Luam cov cai ntawm qhov txuas no:

Rub tawm adafruit neopixel zip ntawm qhov txuas no txhawm rau sau nws hauv koj lub tsev qiv ntawv Arduino:

Rau qhov txuas thib ob, rub tawm cov ntawv tshiab tshaj plaws.

Kauj Ruam 3: Cov Hluav Taws Xob thiab Cov Hnub Qub Ntoo

Cov voj voog thiab Cov Hnub Qub Ntoo
Cov voj voog thiab Cov Hnub Qub Ntoo

Ntoo Lub Hnub Qub Tsim:

  1. Txiav lub hnub qub ntoo los ntawm daim ntoo (10cm txhua sab, 2cm dav, 1cm tuab)
  2. Khi WS2812 rau nws nrog daim kab xev scotch, tsis txhob kaw nws ib sab, lossis lwm qhov ci ci yuav tsawg dua

Tsim Circuit Court:

Tsuas yog rau daim ntsuab (simulated WS2812), koj tuaj yeem ua raws tag nrho cov Circuit Court. Yog tias koj xav hloov chaw D tus pin, hloov kho kab thib 6 ntawm txoj cai. Txoj hauv kev txuas WS2812 yuav raug qhia nyob rau ntu tom ntej ntawm qhov kev qhia no.

Kauj ruam 4: Kev sib txuas

Kev sib txuas
Kev sib txuas

Txhawm rau txuas cov hlua dhia nrog WS2812, koj yuav tsum ua raws li cov lus qhia ntawm nws. Saib cov tooj liab ntawm kuv WS2812. Nws qhia tias xaim dawb yuav tsum txuas rau GND, xaim ntsuab yuav tsum txuas rau D tus pin, thiab xaim liab yuav tsum txuas nrog 5V. Yog li txhawm rau tso cai rau peb cov hlua ua raws txoj cai qhia, koj yuav tsum paub tseeb tias txhua lub xaim txuas nrog txoj cai dhia hlau ntawm peb Arduino Leonardo thiab lub khob cij.

Kauj ruam 5: Kev ua haujlwm

Tom qab txuas cov xov hlau, koj ua tiav koj cov khoom. Lub hnub qub yuav ci nws tus kheej thaum lub teeb ci ntsa iab poob mus rau qhov tshwj xeeb. Raws li qhov tshwm sim, koj tsis tas yuav siv nws, tsuas yog txuas cov xov hlau tom qab ntawd koj lub teeb censored Christmas Star tau ua tiav.:)

Pom zoo: