Cov txheej txheem:

Pib Nrog NeoPixel / WS2812 RGB LED: 8 Kauj Ruam (nrog Duab)
Pib Nrog NeoPixel / WS2812 RGB LED: 8 Kauj Ruam (nrog Duab)

Video: Pib Nrog NeoPixel / WS2812 RGB LED: 8 Kauj Ruam (nrog Duab)

Video: Pib Nrog NeoPixel / WS2812 RGB LED: 8 Kauj Ruam (nrog Duab)
Video: Pib Tshiab Nrog Kuv- hu: CM XIONG Feat.NIKKI THAO [ Official Audio] 2023 2024, Hlis ntuj nqeg
Anonim
Image
Image
Pib Nrog NeoPixel / WS2812 RGB LED
Pib Nrog NeoPixel / WS2812 RGB LED
Pib Nrog NeoPixel / WS2812 RGB LED
Pib Nrog NeoPixel / WS2812 RGB LED
Pib Nrog NeoPixel / WS2812 RGB LED
Pib Nrog NeoPixel / WS2812 RGB LED

[Ua Si Video]

Hauv Cov Lus Qhia no, peb yuav tshawb nrhiav txog qhov chaw nyob RGB LED (WS2812) lossis nrov npe hu ua Adafruit NeoPixel. NeoPixel yog tsev neeg ntawm cov nplhaib, ib daim kab xev, cov laug cam & cov nplais ntawm cov nplaim taws, cov xim me me LEDs. Cov no yog cov saw hlau los ntawm ib mus rau tom ntej yog li koj tuaj yeem muaj zog thiab ua haujlwm ntev ntawm NeoPixels ua ke los tsim txoj hlua tsis kawg ntawm LEDs. Koj tuaj yeem siv cov kab ntawv LED no txhawm rau ntxiv teeb pom kev zoo rau ib qho ntawm koj txoj haujlwm.

Koj tuaj yeem pom tag nrho kuv cov phiaj xwm ntawm:

Lawv tuaj nrog me me 5050 (5mm x 5mm) nto-pob pob uas suav nrog peb lub teeb ci ci (Liab, Ntsuab, thiab Xiav) thiab cov tsav tsheb sib xyaw ua ke (WS2811). Nws xav tau tsuas yog ib qho ntaub ntawv nkag los tswj lub xeev, qhov ci, thiab xim ntawm tag nrho peb lub LEDs. Los ntawm kev txuas cov ntaub ntawv tso tawm tus pin rau cov ntaub ntawv nkag tus pin ntawm kab ntawv tom ntej, nws muaj peev xwm daisy saw cov LEDs rau txoj kev xav yam tsis xav tau ntev.

Nrog kev sib txuas ua ke ntawm RGB qhov tseem ceeb (0 - 255) koj tuaj yeem tsim tawm tsuas yog hais txog ib qho xim, yog li qhov kev nkag siab tswj tau RGB LED yog thoob ntiaj teb LED.

Kauj Ruam 1: Qhov Chaw thiab Cov Cuab Yeej Siv

Qhov Chaw thiab Cov Cuab Yeej Siv
Qhov Chaw thiab Cov Cuab Yeej Siv

Qhov:

1. 8 x 8 Neo Matrix (Banggood)

2. Arduino Uno (Amazon)

3. 5V /2A Fais Fab Khoom (Amazon)

4. DC Jack (Amazon)

5. Jumper Wires (Amazon)

6. 8 x 32 Saj zawg zog WS2812 Matrix (Sparkfun)

Cov Cuab Yeej:

1. Soldering Iron (Amazon)

2. Hlau Cutter / Stripper (Amazon)

Kauj Ruam 2: Hom RGB LED Sawb

Hom RGB LED Sawb
Hom RGB LED Sawb
Hom RGB LED Sawb
Hom RGB LED Sawb

Muaj 2 hom loj ntawm RGB LED sawb: Analog sawb thiab Digital Sawb

1. Analog sawb:

Txhua lub LEDs hauv cov kab sib txuas tau txuas nrog ua ke, yog li nws ua haujlwm zoo ib yam tri-xim LED. LED strips yog tias koj tsis tuaj yeem tswj tus kheej LED cov xim.

Ntawm txhua kab ntawv no koj yuav pom (ntawm sab laug mus rau sab xis) ua ntej LED, ua raws los ntawm SMD tus tiv thaiv.

2. Digital sawb:

Ib txoj kab digital yog qhov koj hais rau txhua tus LED ib tus zuj zus thiab ua haujlwm sib txawv. Lawv muaj cov nti rau txhua LED, txhawm rau siv cov kab txaij koj yuav tsum xa cov ntaub ntawv digitally coded rau cov chips. Vim tias qhov nyuaj ntxiv ntawm cov nti, lawv kim dua.

Daim ntawv ceeb toom cov xub qhia cov ntaub ntawv qhia yog tias koj txuas lub kab rov tav rov qab nws yuav tsis ua haujlwm.

Kauj Ruam 3: Hom Chaw Nyob RGB LED Sawb

Hom Chaw Nyob RGB LED Sawb
Hom Chaw Nyob RGB LED Sawb
Hom Chaw Nyob RGB LED Sawb
Hom Chaw Nyob RGB LED Sawb
Hom Chaw Nyob RGB LED Sawb
Hom Chaw Nyob RGB LED Sawb
Hom Chaw Nyob RGB LED Sawb
Hom Chaw Nyob RGB LED Sawb

Chaw nyob LED tuaj nrog tus lej sib txawv xws li WS2801, WS2811, WS2812 lossis WS2812B. Yog tias koj yog tus tshiab rau hom LED no, koj yuav tsis meej pem ntawm lawv Yog li cia peb txheeb xyuas lawv ua ntej. Yeej WS2801 thiab WS2811 yog lub npe IC uas tuaj yeem tswj tau ntau tshaj 3 LEDs. Txawm li cas los WS2812 yog qhov hloov kho tshiab uas WS2811 IC tau koom ua ke ncaj qha rau hauv 5050 RGB LED pob. Tus qauv tshiab tshaj plaws yog WS2812B.

Hauv qhov kev qhia no peb yuav siv tus qauv tshiab WS2812B.

Cov Duab Duab: Adafruit, Sparkfun, Polou

Kauj Ruam 4: WS2801 thiab WS2811 / WS2812 Pins

WS2801 thiab WS2811 / WS2812 Pins
WS2801 thiab WS2811 / WS2812 Pins
WS2801 thiab WS2811 / WS2812 Pins
WS2801 thiab WS2811 / WS2812 Pins

WS2801 tus qauv muaj 4 tus lej nkag (Vcc, GND, Cov Ntaub Ntawv, Moos) qhov WS2811 thiab WS2812 tus qauv tsuas muaj 3 tus pin

(Vcc, GND thiab Cov Ntaub Ntawv)

PIN - WS2801

5V -> Hwj chim (+5V)

CI -> Cov teeb liab moos

CO -> Cov teeb liab moos

DI -> Cov ntaub ntawv tawm tswv yim

Ua -> Cov Ntaub Ntawv Tso Tawm

GND -> Hauv av

PIN WS 2812

5V -> Hwj chim (+5V) CI -> N/A

CO -> N/A

DI -> Cov ntaub ntawv tawm tswv yim

Ua -> Cov Ntaub Ntawv Tso Tawm

GND -> Hauv av

Kauj Ruam 5: Lub Hwj Huam Fais Fab

Hwj chim Mov
Hwj chim Mov

Ua ntej koj pib ib txoj haujlwm LED sawb, thawj qhov koj yuav tsum xav txog yog Power Supply. One ntawm cov RGB LED muaj 3 LEDs (Liab, Xiav thiab Ntsuab). Peb paub ib qho LED kos kwv yees li 20mA tam sim no ntawm nws qhov ci tshaj plaws. Yog li ib zaug WS2812 LED tuaj yeem kos 3 x 20mA = 60mA ntawm qhov ci tshaj plaws - dawb.

Kuv puas tuaj yeem khiav ncaj qha los ntawm Arduino?

Cov lus teb tsuas yog TSIS YOG. Raws li tus nqi tam sim no xav tau rau tag nrho cov kab txaij yuav muaj ntau dua li koj Arduino tuaj yeem ua tau.

Koj xav tau kev tswj hwm lub hwj chim cais rau nws. Qhov fais fab yuav tsum muab qhov hluav taws xob raug, thiab muaj peev xwm muab tau tam sim no txaus. Hauv feem ntau ntawm WS2812 daim kab xev, lub zog ua haujlwm yog 5 volts DC.

Piv txwv: Rau WS2812 8 x 8 matrix (64 LEDs) koj xav tau 64 x 60mA = 3840 mA (3.84 A) ntawm txhua qhov LED teeb rau nws qhov ci tshaj plaws (Xim Dawb). Tab sis nws tsis pom zoo, khaws qhov ci qis kom tau txais lub neej siab tshaj.

Kuv tuaj yeem pom zoo kom teeb ci ci qis dua 50 %. Yog li koj xav tau 3.84 x 0.5 = 1.92A

Yog li los ntawm kev noj qee cov paj tau pom zoo cov khoom siv hluav taws xob yog 5V / 2A.

Kauj Ruam 6: Npaj Lub Hwj Huam Fais Fab

Npaj Lub Hwj Huam
Npaj Lub Hwj Huam
Npaj Lub Hwj Huam
Npaj Lub Hwj Huam
Npaj Lub Hwj Huam
Npaj Lub Hwj Huam
Npaj Lub Hwj Huam
Npaj Lub Hwj Huam

Nws yog qhov yooj yim heev los tswj WS2812B LED sawb yam tsis muaj kev sib txuas ntxiv thiab cov khoom sib cais. Yog tias koj muaj Arduino, 5V cov khoom siv hluav taws xob thiab ob peb jumper xov hlau ces koj tuaj yeem ua si nrog nws.

Npaj Npaj Lub Hwj Huam:

Kuv siv 5V/2A tswj lub zog siv rau kev ua haujlwm NeoPixel LEDs.

Peb xav tau ob txoj kev sib txuas GND: ib qho mus rau kab txaij LED thiab lwm qhov rau Arduino. So kuv tau siv ob lub xov hlau mus rau lub dav hlau tsis zoo thiab ib lub xaim mus rau qhov dav dav ntawm DC nkaus.

Arduino Kev Sib Txuas:

Kev Sib Txuas Arduino yog qhov yooj yim heev.

LED Sawb DIN -> Arduino D6

Fais Fab Khoom GND -> Arduino GND

Yog tias koj siv lub zog hluav taws xob sab nraud los ua kom muaj zog ob qho tib si LED sawb thiab Arduino, tom qab ntawd koj yuav tsum txuas 5V mov rau Arduino 5V tus pin.

Kev Xyaum Zoo raws li Adafruit:

1. Ntxiv lub capacitor loj (1000 µF, 6.3V lossis siab dua) hla cov + thiab - cov dav hlau. Qhov no tiv thaiv qhov pib ua ntej ntawm tam sim no los ntawm kev puas lub pixels.

2. Ntxiv rau 300 txog 500 Ohm resistor ntawm koj tus microcontroller tus pin cov ntaub ntawv thiab cov ntaub ntawv nkag mus rau thawj NeoPixel tuaj yeem pab tiv thaiv qhov hluav taws xob me me uas tuaj yeem ua rau koj thawj pixel puas. Thov ntxiv ib qho ntawm koj lub micro thiab NeoPixels.

3. Thaum txuas NeoPixels mus rau ib lub zog siv hluav taws xob lossis microcontroller, ib txwm txuas ib puag ncig (-) UA NTEJ YUAV UA LI CAS XWB. Conversely, disconnect av kawg thaum sib cais.

Kauj Ruam 7: Tsav 8x8 Neo Matrix

Tsav tsheb 8x8 Neo Matrix
Tsav tsheb 8x8 Neo Matrix
Tsav tsheb 8x8 Neo Matrix
Tsav tsheb 8x8 Neo Matrix
Tsav tsheb 8x8 Neo Matrix
Tsav tsheb 8x8 Neo Matrix

LED matrix muaj 64 RGB LEDs uas siv WS8211 tus tsav tsheb. Txhua lub pixel yog qhov chaw nyob tus kheej thiab koj yuav xav tau tsuas yog ib tus pin Arduino los tswj txhua lub LEDs.

Nyob rau sab nraub qaum ntawm lub matrix muaj ob qhov chaw nres nkoj: Cov tswv yim (3pins) thiab cov zis (3pins).

Qhov chaw nres nkoj nkag tau txuas nrog Arduino thiab 5V lub zog hluav taws xob sab nraud. Qhov kev sib txuas yog raws li hauv qab no

Matrix Arduino Cov

DIN D6 hli

GND GND

Matrix Fais Fab Khoom

5V-5V

GNDGND

Nco tseg: Koj yuav tsum tsis txhob hnov qab txuas GND ntawm ob qho khoom siv hluav taws xob thiab Arduino.

Tam sim no fais fab tuag hauv Circuit Court thiab xa cov cai los saib ob peb cov duab. Kuv tau teeb tsa qhov ci ci ntawm LEDs txog li 30%.

Arduino Txoj Cai:

Cov cai thiab cov tsev qiv ntawv tau txuas nrog hauv daim ntawv zip rub tawm nws. Koj tuaj yeem saib cov vis dis aus kom paub siv Software li cas.

Kauj Ruam 8: Tsav Tsheb Yooj Yim 8X32 WS2812 RGB MATRIX

Tsav Tsheb Yooj Yim 8X32 WS2812 RGB MATRIX
Tsav Tsheb Yooj Yim 8X32 WS2812 RGB MATRIX
Tsav Tsheb Yooj Yim 8X32 WS2812 RGB MATRIX
Tsav Tsheb Yooj Yim 8X32 WS2812 RGB MATRIX

Lub 8x32 Flexible matrix yog qhov txias heev Kuv tau xaj nws los ntawm Sparkfun. Koj tuaj yeem tsim cov duab kos, ua si, lossis tseem koom nrog lawv rau hauv qhov kev lom zem e-textiles project. Nyob rau txhua qhov ntawd, ua tsaug rau nws txoj kev thim rov qab, qhov LED Matrix no tuaj yeem khoov thiab khoov kom haum rau yuav luag txhua qhov nkhaus.

Kev sib txuas nrog arduino zoo ib yam li lwm qhov NeoPixel LED matrix / Sawb.

Lub Matrix tuaj nrog cov xov tooj cua dav hlau, yog li tsis tas yuav tsum tau siv lub tshuab ziab khaub ncaws.

Daj: GND

Liab: +5V

Ntsuab: Cov ntaub ntawv

Yog tias koj nyiam qhov kab lus no, tsis txhob hnov qab hla nws nrog! Ua raws kuv rau ntau qhov haujlwm DIY thiab tswv yim. Ua tsaug !!!

Pom zoo: