Cov txheej txheem:

Yuav Ua Li Cas Ua Lub Suab Nkauj React WS2812B LEDs Nrog Ntau Tus Qauv: 4 Kauj Ruam
Yuav Ua Li Cas Ua Lub Suab Nkauj React WS2812B LEDs Nrog Ntau Tus Qauv: 4 Kauj Ruam

Video: Yuav Ua Li Cas Ua Lub Suab Nkauj React WS2812B LEDs Nrog Ntau Tus Qauv: 4 Kauj Ruam

Video: Yuav Ua Li Cas Ua Lub Suab Nkauj React WS2812B LEDs Nrog Ntau Tus Qauv: 4 Kauj Ruam
Video: UA KOJ LUAG -Vichai Cheng | Maiv See Yaj (Official Music Video) Nkauj Tawm Tshiab 2023 2024, Hlis ntuj nqeg
Anonim
Yuav Ua Li Cas Ua Rau Lub Suab Nkauj Zoo Siab WS2812B LEDs Nrog Ntau Tus Qauv
Yuav Ua Li Cas Ua Rau Lub Suab Nkauj Zoo Siab WS2812B LEDs Nrog Ntau Tus Qauv

WS2812, WS2812B yog qhov ntse tswj lub teeb ci LED. nws muaj inbuild tswj nti thiab muaj 4 tus pin. V+, V-, Din & Dout. For tswj cov LEDs no peb xav siv MCU zoo li Arduino, PIC lossis Rasberry ncuav qab zib.

Kuv siv Arduino UNO rau txoj haujlwm no.

Kauj Ruam 1: Thawj Yam Koj Xav Tau

Ua Ntej Koj Xav Tau
Ua Ntej Koj Xav Tau
Ua Ntej Koj Xav Tau
Ua Ntej Koj Xav Tau
Ua Ntej Koj Xav Tau
Ua Ntej Koj Xav Tau

1- Arduino UNO lossis MEGA

2- Pib nce MIC module

3- WS2812B LED Sawb (144 LED sawb pom zoo)

4- `` Jumper xov hlau

5 - Breadboard

6 - Laub khawm hloov

Kauj ruam 2: Teeb Koj Arduino

Teeb Koj Arduino
Teeb Koj Arduino

1. Ua ntej tshaj, koj xav xa cov cai mus rau Arduino.

* Thaum koj mus tso cov cai tom qab txuas rau Circuit Arduino IDE qhia cov lus yuam kev *

* Yog tias koj xav Upload Code tom qab txuas, >> Txuas AREF tus pin & 3V3 txuas.

> Disconnect cov ntaub ntawv Tawm tus pin thiab analog IN Txuas

Ua ntej upload code ua ntej, ntxiv LIbrary Kuv Muab.

2. hloov Tus lej ntawm LEDs, Cov ntaub ntawv tawm tus lej PIN & Cov lej nkag mus sib piv raws li koj xav tau.

* Yog tias koj muaj 50 LEDs Sawb Hloov N_PIXELS 30 >>>> rau N_PIXELS 50

Kauj Ruam 3: Ua thiab Xeem Circuit thiab daws teeb meem

Ua thiab kuaj Circuit Court thiab teeb meem
Ua thiab kuaj Circuit Court thiab teeb meem

Ua ntej tshaj, koj tshem tag nrho cov khoom siv hluav taws xob thiab Pib mus rau qhov txuas hluav taws xob.

Tsis txhob hnov qab txuas AREF tus pin & 3.3V.

Yog tias koj siv 5 PIN MIC MODULE,

  1. txuas GND, V + rau 3.3V.
  2. tawm tus pin txuas rau Arduino analog input.
  3. tswj qhov nce >> nce tus pin tsis txuas nrog ib kab twg = 60db

nce tus pin txuas V+ kab = 40db

nce tus pin txuas GND kab = 50db

fais fab hauv Circuit thiab koj tuaj yeem hloov cov qauv los ntawm nias lub pob.

Kauj Ruam 4: Saib Video & Rub Tawm Cov Ntaub Ntawv

download ib daim ntawv thiab unzip.

tiny.cc/k1v1az

Pom zoo: