Cov txheej txheem:

LEGO Dots Light-Up Belt: 6 Kauj Ruam (nrog Duab)
LEGO Dots Light-Up Belt: 6 Kauj Ruam (nrog Duab)

Video: LEGO Dots Light-Up Belt: 6 Kauj Ruam (nrog Duab)

Video: LEGO Dots Light-Up Belt: 6 Kauj Ruam (nrog Duab)
Video: Glitter and be gold ๐ŸŒŸ Building using only gold Lego pieces - build challenge 2024, Kaum ib hlis
Anonim
Image
Image

LEGO #LetsBuildTogether tshawb, tsim thiab qhia koj li LEGO kev tsim.

Khoom siv

Cov khoom siv kho vajtse

  • LEGO Dots x 16
  • Pixelblaze V2 x1
  • SK9822 LEDs
  • AAA Roj Teeb Nrog x 1
  • AAA roj teeb x3
  • Kester Solder x 1
  • 30AWG Silicone Npog Stranded Core Hlau x 4

Cov cuab yeej siv tes

  • Soldering hlau
  • Pab Tes Tes Thib Peb Cov Cuab Yeej Cuab Yeej (xaiv tau, tab sis pab tau)

Kauj Ruam 1: Kauj Ruam 1: LEGO Tsis Yog Ib Zaug Ntawm Lub Rooj

Kauj Ruam 1: LEGO Tsis Yog Ib Leeg Nyob Ntawm Lub Rooj
Kauj Ruam 1: LEGO Tsis Yog Ib Leeg Nyob Ntawm Lub Rooj

LEGO #LetsBuildTogether tshawb, tsim thiab qhia koj li LEGO kev tsim.

Kuv nyiam siv yam khoom rau lawv lub hom phiaj tsis xav tau, thiab LEGO tsis muaj qhov tshwj xeeb. Kuv xav siv LEGO Dots kab tshiab thiab ntxiv qee qhov LEDS los muab nws qee qhov flare.

  • LEDs: Kuv siv SK9822 LEDs koj tseem tuaj yeem siv Adafruit's DotStar LEDs. Koj xav tau 4 tus pin nkag (tsis yog 3 zoo li cov kab neopixel raug). 2 ntawm tus pin yog rau lub zog, 1 rau moos, thiab 1 rau cov ntaub ntawv.
  • Xws li: Kuv siv ElectroMage's Pixelblazev2 WiFi LED tus tswj kom tuaj yeem hloov kho cov qauv LED sai dua AP (Access Point) hom. Nws nrawm thiab koj tuaj yeem yooj yim sau cov qauv LED tshiab hauv lub vev xaib raws tus kws kho mob nyob.

Kauj Ruam 2: Kauj Ruam 2: Cov Neeg Ntseeg Kev Ntseeg

Kauj Ruam 2: Solder Believer
Kauj Ruam 2: Solder Believer
Kauj Ruam 2: Solder Believer
Kauj Ruam 2: Solder Believer
Kauj Ruam 2: Solder Believer
Kauj Ruam 2: Solder Believer
Kauj Ruam 2: Solder Believer
Kauj Ruam 2: Solder Believer

Koj muaj ob peb qhov kev xaiv sib txawv los txuas cov kab hluav taws xob LED. Kuv mus nrog qhov kev xaiv 2 rau txoj haujlwm no.

  • Qhov Xaiv 1: Ncaj cov xov hlau ncaj qha mus rau kab txaij LED tom qab ntawd mus rau Pixelblazev2 maub los ncaj qha
  • Qhov Xaiv 2: Ncaj cov kab xaim ncaj qha mus rau kab txaij LED thiab txuas lub 5 hli ntsia hlau lub dav hlau txuas mus rau Pixelblazev2 maub los thiab txuas cov xov hlau LED mus rau lub davhlau ya nyob twg thaiv.

Kauj Ruam 3: Kauj Ruam 3: Txuas Cov Hluav Taws Xob LED rau Terminal Thaiv ntawm Pixelblazev2 Tus Tswj

Kauj Ruam 3: Txuas Cov Hluav Taws Xob LED rau Terminal Thaiv ntawm Pixelblazev2 Tus Tswj
Kauj Ruam 3: Txuas Cov Hluav Taws Xob LED rau Terminal Thaiv ntawm Pixelblazev2 Tus Tswj

Txuas cov xov hlau LED uas koj tau siv rau lub davhlau ya nyob twg thaiv thiab kaw cov ntsia hlau nrog tus ntsia hlau. Xyuas kom tseeb tias cov kab hluav taws xob LEDs txuas nrog lub davhlau ya nyob twg raug.

  • 5V - 5V
  • CLK - CO
  • DAT - IB
  • GND - NCO

Kauj Ruam 4: Kauj Ruam 4: Hwj chim

Pixelblazev2 thiab LED sawb tuaj yeem siv tau los ntawm micro USB ntawm Pixelblazev2 maub los. Lub zog USB txuas nrog sab hauv mus rau 5v lub davhlau ya nyob twg, thiab tag nrho cov kev kos tam sim no yuav tsum khaws cia hauv qab 1.8A (nws koj tsis paub tseeb saib lub zog ntsuas ntawm USB fais fab mov koj npaj rau siv).

Kauj Ruam 5: Kauj Ruam 5. Tswj cov LEDs

Kauj Ruam 5. Tswj cov LEDs
Kauj Ruam 5. Tswj cov LEDs
Kauj Ruam 5. Tswj cov LEDs
Kauj Ruam 5. Tswj cov LEDs

Txuas koj lub zog siv rau Pixelblazev2 uas yuav teeb tsa lub maub los cia rau teeb tsa hom, tus tswj hwm tsim lub network WiFi tshiab uas pib nrog "pixelblaze_" ua raws tus lej hexadecimal. Ntawm no koj tuaj yeem teeb tsa tus tswj kom khiav hauv AP (Access Point) hom (uas yog qhov kuv tau ua rau txoj haujlwm no).

Txuas rau koj lub Pixelblazev2 network los ntawm lub khoos phis tawj lossis lub xov tooj ntawm tes, tom qab ntawd WiFi Manager screen yuav tsum tshwm ntawm koj lub computer lossis ntaus ntawv. Yog tias lub vijtsam tsis qhib cia koj tuaj yeem qhib qhov browser thiab mus rau

Xaiv hom LED: APA102/SK9822/DotStar.

Muaj cov qauv LED ua ntej, lossis yog tias koj xav tau kev sib tw koj tuaj yeem sau koj tus kheej cov qauv.

Advanced hom: Sau koj tus kheej cov qauv. Tus kws kho mob tuaj yeem siv JSON array lossis ntau pawg ntawm JavaScript. 4 Pixels, ib qho ntawm txhua lub ces kaum: sab laug saum toj, sab xis saum toj, hauv qab sab xis, thiab hauv qab sab laug

JavaScript Code

Pom zoo: