Cov txheej txheem:

Txhim Kho Ntse RGB LEDs: WS2812B Vs. WS2812: 6 Kauj Ruam
Txhim Kho Ntse RGB LEDs: WS2812B Vs. WS2812: 6 Kauj Ruam

Video: Txhim Kho Ntse RGB LEDs: WS2812B Vs. WS2812: 6 Kauj Ruam

Video: Txhim Kho Ntse RGB LEDs: WS2812B Vs. WS2812: 6 Kauj Ruam
Video: Arduino Battleship Prototype 2024, Hlis ntuj nqeg
Anonim
Txhim Kho Ntse RGB LEDs: WS2812B Vs. TWS 2812
Txhim Kho Ntse RGB LEDs: WS2812B Vs. TWS 2812
Txhim Kho Ntse RGB LEDs: WS2812B Vs. TWS 2812
Txhim Kho Ntse RGB LEDs: WS2812B Vs. TWS 2812
Txhim Kho Ntse RGB LEDs: WS2812B Vs. TWS 2812
Txhim Kho Ntse RGB LEDs: WS2812B Vs. TWS 2812

Tus naj npawb ntawm cov haujlwm peb tau pom ua siv Smart RGB LEDs-txawm tias nws yog ib kab, cov qauv, lossis kev cai PCBs-dhau 3 xyoos dhau los yog qhov xav tsis thoob. Qhov kev tshwm sim ntawm RGB LED siv tau mus tas li nrog kev poob qis hauv tus nqi thiab nce kev yooj yim ntawm kev siv cov khoom siv hluav taws xob no. Nthuav cov tuam txhab LED, WorldSemi tau zoo li dhau los ua tus qauv tseeb ntawm cov DIYers, cov nyiam ua haujlwm, thiab cov khoom siv hluav taws xob hnav. Lub tuam txhab WS28XX tsev neeg ntawm Smart RGB LEDs suav nrog kev tswj hwm yooj yim, yooj yim pinout thiab hneev taw, thiab lub teeb ci ntsa iab zoo kawg, txhua qhov hauv pob 5mm x 5mm. Tab sis, dab tsi tiag tiag tau ua qhov sib txawv hauv cov khoom lag luam 'DIY kev ua lag luam ua tiav yog $ 0.30 txog $ 0.40 chav tus nqi me me. Hauv qhov hloov tshiab ntawm cov LEDs no, WS2812B, WorldSemi tseem tau ua qhov kev txhim kho tseem ceeb raws li nws ua ntej, WS2812. Txij li thaum muaj cov ntaub ntawv me me hais txog qhov hloov pauv tshiab no, peb txiav txim siab los qhia luv luv los qhia txog kev tsim kho dua tshiab, thiab tshaj tawm qee qhov uas twb muaj lawm ntawm cov cuab yeej nifty no! Qib nyuaj: Pib+ (qee qhov paub nrog ntse RGB) LEDs) Lub sijhawm ua kom tiav: 5-10 feeb

Kauj Ruam 1: Cov Npe Khoom

Cov Khoom Siv
Cov Khoom Siv
Cov Khoom Siv
Cov Khoom Siv

Txhawm rau hais txog cov yam ntxwv ntawm ob qho WS2812B thiab WS2812 RGB LEDs, peb tuaj yeem siv cov khoom hauv qab no: 1 x WS2812 RGB LED (pre-soldered mus rau lub rooj sibtham me me) 1 x Solderless Breadboard 1 x Breakaway Pin Connector, 0.1 Suab, 8-Pin Txiv neej 1 x Arduino Uno R3 1 x WS2812B Lumina Shield rau Arduino Solid Core Wire (ntau yam xim; 28 AWG) thiab Cov Hluav Taws Xob Hluav Taws Xob Cov Hluav Taws Xob (Yeem) Ob qho WS2812 thiab WS2812B nqa ib qho teeb tsa tam sim no-tsav LED, ntxiv rau 3 tus tswj tus kheej LEDs; ib qho liab, ntsuab, thiab xiav. 2 cov chaw nres nkoj digital (cov ntawv tso tawm/tawm tswv yim) Nco tseg: tus tsav LED nws tus kheej kuj tseem muaj nyob hauv 6-pin Integrated Circuit (IC) daim ntawv, uas peb tuaj yeem siv txuas ncaj qha rau 'tsis ntse' RGB LEDs ntawm peb xaiv; IC hauv nqe lus nug tsis yog lwm qhov WS2811.

Kauj Ruam 2: WS2812B VS. WS2812: 4 tus pin hneev taw (✓)

WS2812B VS. WS2812: 4 tus pin hneev taw (✓)
WS2812B VS. WS2812: 4 tus pin hneev taw (✓)
WS2812B VS. WS2812: 4 tus pin hneev taw (✓)
WS2812B VS. WS2812: 4 tus pin hneev taw (✓)
WS2812B VS. WS2812: 4 tus pin hneev taw (✓)
WS2812B VS. WS2812: 4 tus pin hneev taw (✓)
WS2812B VS. WS2812: 4 tus pin hneev taw (✓)
WS2812B VS. WS2812: 4 tus pin hneev taw (✓)

Qhov pom tseeb tshaj plaws ntawm WS2812B yog txo tus naj npawb ntawm tus pin (los ntawm 6 txog 4), uas khaws qhov zoo me me kom yooj yim rau lawv siv (siv cov hlau nplua-hlau txuas) rau ~ 2mm x 1mm pawm ntawm PCB. 6 daim ntaub ntawm WS2812 qub tau ua rau nws nyuaj me ntsis rau txoj kab DO tus pin ntawm ib tus qauv mus rau DI tus pin ntawm tus tom ntej thaum sib nrug nruab nrab ntawm cov qauv tau nruj. Nrog WS2812B, kev taug qab cov kab ntawm PCB yog qhov cua, tshwj xeeb tshaj yog thaum tsim kev teeb tsa teeb tsa raws li Arduino Shield qhia hauv cov duab no. Qhov chaw ntxiv ntawm WS2812B cov ntaub qhwv tso cai rau:

  • Yooj yim khiav ntawm 3 lub cim tsim nyog: Lub zog, Hauv av, thiab Cov Ntaub Ntawv.
  • Siv cov ntawv tuab los txuas Lub Hwj Chim thiab Hauv av, uas tso cai rau kom muaj dej ntws ntau dua kom nyab xeeb ntawm PCB

Peb tuaj yeem pom hauv cov duab saum toj no yooj yim npaum li nws ua rau txoj kab 5x8 rau Lumina Shield rau Arduino siv cov tshiab LEDs-rau kev sib piv, peb suav nrog qhov qub tsim ntawm 16x16 array siv WS2812s. Cov ntaub ntawv tsim qauv rau Lumina Shield tuaj yeem pom ntawm no Github chaw cia khoom. Ib qho tseem ceeb uas yuav tsum tau nco yog tias, vim li cas peb tsis tuaj yeem nkag siab, teeb tsa rau WS2812B muaj qhov me me ntawm lub ces kaum ntawm pob ntawv qhia tus pin 3 ntau dua tus pin 1! Peb yuav tsum tau them nyiaj tshwj xeeb thaum siv cov khoom no los ntawm txhais tes, yog li peb tsis qhia tus qauv raws li peb xav tau nrog ICs raug (lossis WS2812, rau qhov teeb meem ntawd). *.tftable {font-size: 12.0px; xim: rgb (251, 251, 251); dav: 100.0%; ciam teb dav: 1.0px; ciam xim: rgb (104, 103, 103); ciam teb-tawg: tawg; } *.tftable th {font-size: 12.0px; xim tom qab: rgb (23, 21, 21); ciam teb dav: 1.0px; duav: 8.0px; ciam teb-style: khoom; ciam xim: rgb (104, 103, 103); text-align: laug; } *.tftable tr {keeb kwm yav dhau xim: rgb (47, 47, 47); } *.tftable td {font-size: 12.0px; ciam teb dav: 1.0px; duav: 8.0px; ciam teb-style: khoom; ciam xim: rgb (104, 103, 103); } *.tftable tbody tr: hover {keeb kwm yav dhau xim: rgb (23, 21, 21); } Pin # Lub Cim Cim Ua Ntej *Nthuav tawm ntawm pob qhia tus pin no. 1 VDD Lub hwj chim muab LED 2 DO Tswj cov ntaub ntawv teeb liab tso tawm 3* VSS Av 4 DIN Tswj cov ntaub ntawv teeb liab nkag mus ntxiv Lwm qhov tsim nyog hais txog yog tias Lub Hwj Chim (VDD) thiab Hauv av (VSS) pins yog kab pheeb ces kaum hla ib leeg. Yog li, cov kab txuas rau cov pins no tuaj yeem tuab heev! Txawm li cas los xij, yog tias peb ua yuam kev ntawm kev siv tus qauv 'thim rov qab', peb yuav luv zog thiab Av (tus lej # 1 thiab 3). Muaj hmoo rau peb, zoo li peb yuav pom hauv cov kauj ruam tom ntej, WorldSemi tau suav nrog kev tiv thaiv kev tiv thaiv kab mob rov qab uas yuav tiv thaiv WS2812B los ntawm kev puas tsuaj los ntawm qhov yuam kev no-peb, tau kawg, pom zoo kom zam kev ua yuam kev tag nrho:)

Kauj Ruam 3: WS2812B VS. WS2812: Teeb LEDS & Txhim Kho Xim Tsis Txaus Ntseeg (?)

WS2812B VS. WS2812: LEDS ci dua & Txhim Kho Xim Tsis Txaus Siab (?)
WS2812B VS. WS2812: LEDS ci dua & Txhim Kho Xim Tsis Txaus Siab (?)

Thaum WS2812B raug tso tawm, WorldSemi hais qhia tias nws muaj lub teeb ci ci dua thiab muaj xim zoo ib yam dua li WS2812. (Tau qhov twg los: WS2812B_vs_WS2812.pdf) Txawm li cas los xij, tshuaj xyuas cov ntaub ntawv qhia tseeb ntawm ob lub cuab yeej, peb tuaj yeem soj ntsuam qhov tshwj xeeb rau lub teeb ci ntawm LEDs zoo ib yam hauv ob qho tib si: *.tftable {font-size: 12.0px; xim: rgb (251, 251, 251); dav: 100.0%; ciam teb dav: 1.0px; ciam xim: rgb (104, 103, 103); ciam teb-tawg: tawg; } *.tftable th {font-size: 12.0px; xim tom qab: rgb (23, 21, 21); ciam teb dav: 1.0px; duav: 8.0px; ciam teb-style: khoom; ciam xim: rgb (104, 103, 103); text-align: laug; } *.tftable tr {keeb kwm yav dhau xim: rgb (47, 47, 47); } *.tftable td {font-size: 12.0px; ciam teb dav: 1.0px; duav: 8.0px; ciam teb-style: khoom; ciam xim: rgb (104, 103, 103); } *.tftable tbody tr: hover {keeb kwm yav dhau xim: rgb (23, 21, 21); } Xim Wavelength (hli) Luminous Intensity (mcd) Liab 620–630 620–630 Ntsuab 515–530 1100–1400 Xiav 465–475 200–400 Cov duab saum toj no qhia txog Arduino Uno txuas nrog plaub lub rooj sibtham. Ob ntawm lawv nqa WS2812B thaum ob leeg muaj WS2812. Peb tau sim siv cov qauv ntsuas ntsuas los txiav txim siab seb peb puas tuaj yeem pom qhov sib txawv ntawm qhov ci lossis xim zoo ib yam, tab sis cov txiaj ntsig tsis tiav. Txhawm rau kom txiav txim siab tsis meej tias ob qhov qauv sib txawv hauv qhov kev hwm no, peb yuav tsum tau ua qee qhov kev sim siv lub tshuab ntsuas hluav taws xob. Muab hais tias peb tsis muaj ib qho muaj nyob rau ntawm lub sijhawm sau ntawv no, peb tsuas tuaj yeem xa mus rau cov ntaub ntawv ntawm cov khoom lag luam cov ntaub ntawv teev tseg: WS2812.pdf thiab WS2812B.pdf

Kauj Ruam 4: WS2812B Vs. WS2812: Rov Qab Tiv Thaiv Txoj Cai Tiv Thaiv Circuit (✓)

WS2812B Vs. WS2812: Rov Qab Tiv Thaiv Kev Tiv Thaiv Circuit (✓)
WS2812B Vs. WS2812: Rov Qab Tiv Thaiv Kev Tiv Thaiv Circuit (✓)

Ib qho ntawm cov yam ntxwv tshiab uas peb muaj peev xwm sim tau ncaj qha rau pem hauv ntej yog thim rov qab tiv thaiv kev tiv thaiv kab mob suav nrog hauv kev tsim ntawm WS2812B. Raws li cov vis dis aus qhia, thim rov qab Lub Hwj Chim thiab Hauv av pins qee zaum tuaj yeem ua rau WS2812 puas tsuaj, tab sis tsis yog WS2812B tus qauv. Cov yam ntxwv no muaj txiaj ntsig zoo thaum ua haujlwm nrog cov kab uas peb ib txwm siv cov khoom siv hluav taws xob sab nraud nrog cov qhab nia siab, thiab qhov twg peb tau pom ntau qhov yuam kev tau ua thaum txuas kab. Peb tseem pom zoo ob zaug txhawm rau txheeb xyuas cov kev sib txuas thiab txuas ua ntej thov lub zog rau ib qho hluav taws xob hauv hluav taws xob, tab sis lees paub nws yog qhov zoo uas paub tias nyob rau qee lub sijhawm tsis tshua muaj uas peb ua yuam kev muaj lub tshuab tsis ua haujlwm nyob hauv qhov chaw los tiv thaiv peb cov cuab yeej muaj nqis.

Kauj Ruam 5: WS2812B VS. WS2812: Tus Txheej Txheem Sab Hauv Txhim Kho (?)

Qhov tshwj xeeb kawg uas tau suav nrog hauv WS812B yog kev sib cais ntawm ob lub ntsiab lus tseem ceeb hauv lub cuab yeej: tswj thiab teeb pom kev zoo. Los ntawm kev cais ob qhov no, cov chaw tsim khoom tshaj tawm kev txhim kho cua sov thiab kev tswj hwm zoo dua. Qhov no yog nyob deb ntawm qhov tsis meej pem ntawm cov yam ntxwv tshiab, vim tias peb tsis muaj txoj hauv kev zoo rau kev sim ntsuas cua sov ntawm PCB. Rau kev txhim kho kev ruaj ntseg hauv kev sib txuas lus thiab xa cov ntaub ntawv, peb tsis pom muaj qhov sib txawv ntawm qhov ua tau zoo ntawm WS2812 thiab WS2812B tom qab ob peb qhov kev sim yooj yim peb tau khiav nrog ob lub qauv ua ib sab.

Kauj Ruam 6: Ua Haujlwm WS2812B RGB LEDs

Kev ua haujlwm ntawm WS2812B RGB LEDs
Kev ua haujlwm ntawm WS2812B RGB LEDs

Txawm hais tias txhua qhov kev hloov pauv qhia hauv WS28XX tsev neeg tshiab kawg no, kev sib txuas lus raws cai xav tau los tswj nws cov xim thiab ci ci tseem tsis hloov pauv los ntawm nws tus thawj. Peb tseem tuaj yeem siv cov tsev qiv ntawv zoo tsim los ntawm cov kws tsim khoom los ntawm Adafruit, PJRC, thiab FastSPI qhov haujlwm. Txhawm rau kawm paub ntau ntxiv txog dab tsi tiag mus rau hauv qab lub hood ntawm qhov zoo RGB LED cov cuab yeej, peb muab tso ua ke kom ntxaws qhia qhia piav qhia kev ua raws li kev tswj hwm cov txheej txheem me ntsis (qhov xav tau). Ua tsaug ua ntej rau kev tshuaj xyuas nws!

Pom zoo: