Cov txheej txheem:

Tutorial to Interface RGB Led WS2812B Nrog Arduino UNO: 7 Cov Kauj Ruam (nrog Duab)
Tutorial to Interface RGB Led WS2812B Nrog Arduino UNO: 7 Cov Kauj Ruam (nrog Duab)

Video: Tutorial to Interface RGB Led WS2812B Nrog Arduino UNO: 7 Cov Kauj Ruam (nrog Duab)

Video: Tutorial to Interface RGB Led WS2812B Nrog Arduino UNO: 7 Cov Kauj Ruam (nrog Duab)
Video: How To Control WS2812B Individually Addressable LEDs using Arduino 2024, Hlis ntuj nqeg
Anonim
Tutorial to Interface RGB Led WS2812B Nrog Arduino UNO
Tutorial to Interface RGB Led WS2812B Nrog Arduino UNO

Qhov kev qhia no yuav qhia koj qee qhov pib ntawm kev siv Sparkfun RGB Led WS2812B nrog Arduino UNO

Kauj ruam 1: Taw qhia

Nqe lus piav qhia:

Nov yog pawg thawj coj tawm rau WS2812B RGB LED. WS2812B (lossis "NeoPixel") yeej yog RGB LED nrog WS2811 ua rau sab xis rau hauv LED! Txhua qhov tsim nyog pins tau tawg mus rau 0.1 "spaced headers rau cov mov ci yooj yim.

Kev qhia tshwj xeeb:

1. Loj: 50mm x 50 mm2. Xim xim: Liab, Ntsuab, Xiav

3. Saib lub kaum sab xis: 120 degrees

4. Liab: (620-630nm) @ 550-700mcd

5. Ntsuab: (515-530nm) @ 1100-1400mcd

6. Xaj: (465-475nm) @ 200-400mcd

7. Qhov piav qhia:

VCC - Cov tswv yim hluav taws xob 5V

GND - Ib qho, hauv av, 0V siv cov khoom siv hluav taws xob.

DI - Cov ntaub ntawv los ntawm microcontroller los rau hauv tus pin no.

DO - Cov ntaub ntawv raug hloov pauv ntawm tus pin no, kom txuas nrog cov tswv yim ntawm lwm lub pixel lossis sab laug yog tias nws yog qhov txuas kawg hauv cov saw.

Kauj Ruam 2: Tus Kheej Txhais

Pin Txhais
Pin Txhais

Kauj Ruam 3: Kev Kho Vajtse

Kev Kho Vajtse
Kev Kho Vajtse
Kev Kho Vajtse
Kev Kho Vajtse

Kauj Ruam 4: Qauv Qauv Cai

Txhawm rau kom tau txais txiaj ntsig, thov rub cov qauv coj los piv rau hauv qab no.

Kauj Ruam 5: Suav nrog Adafruit_NeoPixel.h Library

Suav nrog Adafruit_NeoPixel.h Library
Suav nrog Adafruit_NeoPixel.h Library
Suav nrog Adafruit_NeoPixel.h Library
Suav nrog Adafruit_NeoPixel.h Library

Nyem skecth ces pom suav nrog lub tsev qiv ntawv thiab nyem tswj lub tsev qiv ntawv. Tom ntej no, tshawb adafruit neopixel thiab nruab qhov hloov tshiab kawg

Kauj Ruam 6: Upload Source Code

Rub tawm Source Code
Rub tawm Source Code
Rub tawm Source Code
Rub tawm Source Code

Qhib qhov chaws. Nco ntsoov com ntawm arduino UNO thiab com chaw nres nkoj zoo ib yam thiab thov xaiv cov pawg thawj coj yog Arduino UNO.

Nyem upload.

Pom zoo: